summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/init4.C
blob: f877f2a87d2069fdcabe9bcfa8153b5abb71a1ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }

class error {
public:
  error(int) {}
};

class foo {
  const error x = 1; // { dg-error "" } initialization of non-static data member
};