☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ice7.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-ice7.C
code
plain
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;