LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / ipa / vrp4.c
blob941f80e00b23e702ee63c8006e6c9fb28a1c106e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-cp-details -fdump-tree-vrp1" } */
4 static __attribute__((noinline, noclone))
5 int foo (int *p)
7 if (!p)
8 return 0;
9 *p = 1;
12 struct st
14 int a;
15 int b;
18 int bar (struct st *s)
21 if (!s)
22 return 0;
23 foo (&s->a);
24 foo (&s->b);
27 /* { dg-final { scan-ipa-dump "Setting nonnull for 0" "cp" } } */
28 /* { dg-final { scan-tree-dump-times "if" 1 "vrp1" } } */