Reset branch to trunk.
[official-gcc.git] / trunk / gcc / testsuite / g++.dg / expr / bitfield9.C
blob177f65b8800dbfc74b6040bb7799c9e709685920
1 // PR c++/32346
2 // { dg-do run }
3 // { dg-options "-Wno-overflow" }
5 extern "C" void abort();
7 struct S {
8   long long i : 32;
9 };
11 void f(int i, int j) {
12   if (i != 0xabcdef01)
13     abort();
14   if (j != 0)
15     abort();
18 void g(S s) {
19   f(s.i, 0);
22 int main() {
23   S s;
24   s.i = 0xabcdef01;
25   g(s);