diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51354.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51354.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51354.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51354.c new file mode 100644 index 000000000..5b2abb0d4 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr51354.c @@ -0,0 +1,17 @@ +/* PR target/51354 */ + +extern void abort (void); + +typedef int __attribute__ ((aligned (32))) ai; + +void foo (int *x, ai * y); + +int +bar (int x) +{ + if (x == 12346) + return 24; + ai i; + foo (__builtin_alloca (x), &i); + return 128; +} |