summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/anon4.C
blob: 571f4ae65fb6a176c53b49109659255d93cfc7fa (plain)
1
2
3
4
5
6
7
8
// PR c++/27951
// { dg-do compile }

void foo()
{
    int i;             // { dg-error "previously" }
    union { int i; };  // { dg-error "redeclaration" }
}