summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/fold1.C
blob: 23d34546e0b108e2d70a7086b2813717459b62e3 (plain)
1
2
3
4
5
6
7
8
// PR middle-end/27384
// { dg-do compile }

struct A
{
    static const int i = i;  // { dg-error "not declared" }
    int x[i];		     // { dg-error "constant-expression" }
};