diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/torture/pr115928.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr115928.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr115928.c b/gcc/testsuite/gcc.dg/torture/pr115928.c new file mode 100644 index 0000000..4379fa9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr115928.c @@ -0,0 +1,23 @@ +/* { dg-additional-options "-fgcse-sm" } */ + +int a[1], b, c; +struct { + int d; + int e; + int : 8; +} f[1]; +static int g; +char h, i, j; +void k(int l) { b = 5 ^ a[b ^ (l & 5)]; } +void m(long l) { k(c >> 6); } +int main() { + g++; + if (b) { + h = 5 && j; + if (h) + h -= i; + m(f[g].d); + m(f[g].e); + } + return 0; +} |