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

struct A
{
  // constexpr operator int () { return 1; }
};

constexpr A a = A();

int ar[a]; // { dg-error "has non-integral type" }
OpenPOWER on IntegriCloud