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

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" }
OpenPOWER on IntegriCloud