1 // { dg-do compile { target c++11 } } 2 Foo(int i)3constexpr int Foo (int i) 4 { 5 return (i ? Foo (i - 1): 0) + i; 6 } 7 8 static int a = Foo (0); 9 static int b = Foo (1); 10 static int d = Foo (3); 11 static int c = Foo (2); 12 static int e = Foo (4); 13 static int g = Foo (6); 14 static int f = Foo (5); 15