Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/constexpr-dr1684.C

raw
1 // DR 1684
2 // { dg-do compile { target c++11 } }
3
4 struct A {
5 A(int);
6 constexpr int foo() { return 0; } // { dg-error "literal" "" { target c++11_only } }
7 };