LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / pr45644.c
blob3741020d93c4a73ae9ad849b178129c531868da8
1 /* Verify that we do not IPA-SRA bitfields. */
2 /* { dg-do run } */
3 /* { dg-options "-O2" } */
4 /* { dg-require-effective-target int32plus } */
6 extern void abort (void);
8 struct S
10 int j : 8;
11 int i : 24;
12 int l;
15 static int __attribute__((noinline)) foo (struct S *s)
17 int z = s->i;
18 if (z != 777)
19 abort ();
20 return 0;
23 int __attribute__((noinline)) bar (struct S *s)
25 return foo (s);
28 int main (int argc, char *argv[])
30 struct S s;
31 s.j = 5;
32 s.i = 777;
33 s.l = -1;
35 return bar (&s);