summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/ext/vlm2.C
blob: 3a0b335262c1bff59b52479ba0b390e04eda366c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-options "" }

int n;

struct Y
{
  void f () {
    typedef int X[n];
    struct Z {
      X x; // { dg-error "variably modified" }
    };
  }
};