LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / pr83605.c
blobc680f0ce91f76e91e04b3a32734306df0c2013a4
1 /* PR tree-optimization/83605 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -ftrapv -fexceptions -fnon-call-exceptions" } */
5 int a;
7 int
8 foo (int x)
10 int b = a;
12 int c;
13 int *d = (x == 0) ? &c : &b;
15 for (a = 0; a < 2; ++a)
16 c = (x + b) < a;
18 return *d;