summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/pr28291.C
blob: 1b3b9f40a1fa238c5e1d17a8bd0037233368a8a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Test to make sure we do not ICE on this invalid program.

// { dg-do compile }
// { dg-options "" }

struct A
{
  static int i;
  int j;
};

A a = { i:0 }; // { dg-error "non-static data member" }