summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-ellipsis2.C
blob: 0bb6904061f9a62aa8dee4359cc55d28052cc303 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-options -std=c++0x }

struct A
{
  A();
  A(const A&);
  bool empty();
};

constexpr int ellipsis(...) { return 1; }

static_assert(ellipsis(A().empty()), "Error"); // { dg-error "non-constant condition|empty" }