summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/nsdmi6.C
blob: f88a347426ad87347530058c12cd6686908e8191 (plain)
1
2
3
4
5
6
7
8
// Origin PR c++/51477
// { dg-do compile { target c++11 } }

struct A
{
    typedef int int T; // { dg-error "two or more data types in declaration" }
    struct T x[1] = { 0 }; // { dg-error "incomplete type|forward" }
};