diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/pr69320-2.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr69320-2.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr69320-2.c b/gcc/testsuite/gcc.c-torture/execute/pr69320-2.c new file mode 100644 index 00000000000..b85672ce528 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr69320-2.c @@ -0,0 +1,35 @@ + +#include <stdlib.h> + +int a, *c, d, e, g, f; +short b; + +int +fn1 () +{ + int h = d != 10; + if (h > g) + asm volatile ("" : : : "memory"); + if (h == 10) + { + int *i = 0; + a = 0; + for (; a < 7; a++) + for (; *i;) + ; + } + else + { + b = e / h; + return f; + } + c = &h; + abort (); +} + +int +main () +{ + fn1 (); + exit (0); +} |