Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.robertl/eb76.C

raw
1 // { dg-do assemble }
2 // { dg-options "-fno-short-enums" }
3 // { dg-skip-if "" int16 }
4 // the template operator!= interferes. It should be in a namespace.
5
6 #include <utility>
7
8 enum T {
9 V1
10 };
11
12 struct X {
13 T t : 31;
14 };
15
16 void
17 f(X& v) {
18 if( v.t != V1 ) { // complains about taking address of bitfield
19 }
20 }