Debian Codegraph @

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

raw
1 // { dg-do compile { target c++11 } }
2
3 struct A
4 {
5 A();
6 A(const A&);
7 bool empty();
8 };
9
10 constexpr int ellipsis(...) { return 1; }
11
12 static_assert(ellipsis(A().empty()), "Error"); // { dg-error "non-constant condition|empty" }