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

struct A			// { dg-error "non-static data member" }
{
  int i = (A(), 42);		// { dg-message "required here" }
};

A a;