xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.other/crash6.C (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1 // Build don't link:
2 // Special g++ Options: -O2
3 
4 struct E
5 {
6   int f(int);
7 };
8 
ha()9 void ha()
10 {
11   enum {X = 0};
12 
13   int A, C;
14 
15   E vList[10];
16 
17   A = (C + 1) % 3;
18   vList[1].f(A);
19 }
20