☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-compound.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-compound.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
constexpr int f()
4
{
5
{ // { dg-error "compound-statement" "" { target { c++11_only } } }
6
return 1;
7
}
8
{ } // { dg-error "compound-statement" "" { target { c++11_only } } }
9
}