PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / redecl-14.c
blob1bf1d96eadc13749682cd4467844d30994da8063
1 /* Some incompatible external linkage declarations were not diagnosed.
2 Bug 21342. Test type in inner scope is correct. */
3 /* Origin: Joseph Myers <joseph@codesourcery.com> */
4 /* { dg-do compile } */
5 /* { dg-options "" } */
7 typedef int IA[];
8 typedef int IA5[5];
9 typedef IA *IAP;
10 typedef IA5 *IA5P;
11 extern IAP a[];
12 void
13 f (void)
16 extern IA5P a[];
17 sizeof (*a[0]);
19 extern IAP a[];
20 extern IAP a[5];
21 sizeof (*a[0]); /* { dg-error "invalid application of 'sizeof' to incomplete type 'IA' {aka 'int\\\[\\\]'}" } */