summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/typeck1.C
blob: 574fd7e2836cedf15e84bcf418e170cbb035e39b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do assemble  }

extern int a[][];   // { dg-error "" } invalid multidimensional array
extern int b[7][];  // { dg-error "" } invalid multidimensional array
extern int c[][7];  // OK

extern int (*i)[];  // { dg-error "" } previous declaration
extern int (*i)[7]; // { dg-error "" } conflicting types for `i'

extern int m[];
extern int m[7];    // OK

void f(int (*j)[3])
{
  extern int (*k)[];
  f(k);             // { dg-error "" } passing wrong type
}