* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
[official-gcc.git] / gcc / testsuite / g++.dg / other / array4.C
blob97ccc986d61ef05f4f48aef47155fcd1a168deb1
1 // PR C++/28906: new on an array causes incomplete arrays to
2 // become complete with the wrong size.
3 // The sizeof machineMain should be 5 and not 100.
4 // { dg-do run }
7 extern char machineMain[];
8 void sort (long len)
10   new char[100];
12 char machineMain[] = "main";
13 int main(void)
15   if (sizeof(machineMain)!=sizeof("main"))
16     __builtin_abort();