2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / error30.C
blob2df0e64075cfd246729ee39c9f1d3eff8aedc5c3
1 // PR c++/35336
2 // { dg-do compile }
3 // { dg-bogus "not supported by" "" { target *-*-* } 0 }
5 struct A
7   int i : 2;
8 };
10 void foo (bool b)
12   A a;
13   (a.i || b) ();        // { dg-error "cannot be used as" }