aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/enum18.C
blob: de16596dfea01b53575ea0d43aa0f4237dc3d98d (plain)
1
2
3
4
5
6
7
8
// PR c++/47277
// { dg-do compile { target c++11 } }

int main(void) {
  enum e {};
  e ev;
  ev.e::~e_u();	// { dg-error "e_u. has not been declared" }
}