diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58539.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58539.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58539.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58539.c new file mode 100644 index 000000000..a016150f1 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr58539.c @@ -0,0 +1,20 @@ +/* { dg-do compile } */ +/* { dg-options "-g" } */ + +int a, b; + +extern void baz (int); + +int foo (int p) +{ + return p ? p : 1; +} + +void bar () +{ + int *c = &a, *d = &a; + for (b = 0; b < 12; b++) + *d |= 1; + foo (*c); + baz (*c && 1); +} |