Daily bump.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-condition.C
blobe81acba68ae1bd612bfa40d225ff25f6a857eef7
1 // { dg-do compile { target c++11 } }
2 // Core DR 948
4 constexpr int something() { return 3; }
6 int main() {
7   if (constexpr long v = something()) {}
8   if (static long v = something()) { } // { dg-error "'static' invalid" }