diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr37102.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr37102.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr37102.c b/gcc/testsuite/gcc.c-torture/execute/pr37102.c new file mode 100644 index 000000000..32c18ba88 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr37102.c @@ -0,0 +1,25 @@ +extern void abort (void); + +unsigned int a, b = 1, c; + +void __attribute__ ((noinline)) +foo (int x) +{ + if (x != 5) + abort (); +} + +int +main () +{ + unsigned int d, e; + for (d = 1; d < 5; d++) + if (c) + a = b; + a = b; + e = a << 1; + if (e) + e = (e << 1) ^ 1; + foo (e); + return 0; +} |