summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/elab1.C
blob: 92fcd1ca69c425fafdb98dff4b983a02102121b0 (plain)
1
2
3
4
5
6
7
8
9
namespace Name {

    typedef void *(*Function)( void *, int ); // { dg-error "previous declaration" }

    struct Foo {
      struct Function xyz[5]; // { dg-error "" }
    };

}