Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-ice7.C

raw
1 // PR c++/57827
2 // { dg-do compile { target c++11 } }
3
4 struct C
5 {
6 constexpr int fun (int x)
7 {
8 return x + 1;
9 }
10
11 int a = 2;
12 int b = fun(a);
13 };
14
15 C c;