diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/crash6.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/crash6.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash6.C b/gcc/testsuite/g++.old-deja/g++.other/crash6.C new file mode 100644 index 000000000..6c1b7f69e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/crash6.C @@ -0,0 +1,19 @@ +// { dg-do assemble } +// { dg-options "-O2" } + +struct E +{ + int f(int); +}; + +void ha() +{ + enum {X = 0}; + + int A, C; + + E vList[10]; + + A = (C + 1) % 3; + vList[1].f(A); +} |