diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20020807-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20020807-1.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020807-1.c b/gcc/testsuite/gcc.c-torture/compile/20020807-1.c new file mode 100644 index 000000000..c1cc81504 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20020807-1.c @@ -0,0 +1,33 @@ +int x; + +static int +__attribute__ ((noinline)) +foo (void) +{ + return 0; +} + +static void +__attribute__ ((noinline)) +bar (void) +{ +} + +static inline void +baz (void) +{ + char arr[x]; + +lab: + if (foo () == -1) + { + bar (); + goto lab; + } +} + +void +test (void) +{ + baz (); +} |