diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/990208-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/990208-1.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/990208-1.c b/gcc/testsuite/gcc.c-torture/execute/990208-1.c deleted file mode 100644 index 37a11472962..00000000000 --- a/gcc/testsuite/gcc.c-torture/execute/990208-1.c +++ /dev/null @@ -1,46 +0,0 @@ -/* As a quality of implementation issue, we should not prevent inlining - of function explicitly marked inline just because a label therein had - its address taken. */ - -#ifndef NO_LABEL_VALUES -static void *ptr1, *ptr2; - -static __inline__ void doit(void **pptr, int cond) -{ - if (cond) { - here: - *pptr = &&here; - } -} - -static void f(int cond) -{ - doit (&ptr1, cond); -} - -static void g(int cond) -{ - doit (&ptr2, cond); -} - -static void bar(void); - -int main() -{ - f (1); - bar(); - g (1); - -#ifdef __OPTIMIZE__ - if (ptr1 == ptr2) - abort (); -#endif - - exit (0); -} - -void bar(void) { } - -#else /* NO_LABEL_VALUES */ -int main() { exit(0); } -#endif |