summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/extern-C-1.C
blob: 60a634832f11a9d537a5a0096c2f982fa275858d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c++/4754 */
/* { dg-do compile } */
// GCC 3.2 got very confused by the nested extern "C" blocks, and thought 
// there was a storage class specifier on 'int i'.

extern "C"
{
    extern "C" struct Test
    {
        int i;
    };
}