]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/conversion/bitfield7.C
c-decl.c (start_decl): Adjust quoting and hyphenation in diagnostics.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / conversion / bitfield7.C
1 // PR c++/33984
2 // { dg-do compile }
3
4 struct S
5 {
6 unsigned int bar : 3;
7 } s;
8
9 int foo (unsigned int &);
10 int foo (double);
11
12 int
13 main ()
14 {
15 return foo (s.bar); // { dg-error "cannot bind bit-field" }
16 }