☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-condition.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-condition.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
// Core DR 948
3
4
constexpr int something() { return 3; }
5
6
int main() {
7
if (constexpr long v = something()) {}
8
if (static long v = something()) { } // { dg-error "'static' invalid" }
9
}