diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/20101010-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20101010-1.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20101010-1.c b/gcc/testsuite/gcc.dg/20101010-1.c new file mode 100644 index 00000000000..8d74bbf5a1d --- /dev/null +++ b/gcc/testsuite/gcc.dg/20101010-1.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -fno-crossjumping" } */ + +int foo (void) +{ + int len; + if (bar1 (&len)) + { + char devpath [len]; + if (bar2 (devpath) == len) + return len; + } + return -1; +} |