Debian Codegraph @

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

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 }