OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ellipsis2.C
1 // { dg-options -std=c++0x }
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" }