diff options
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.brendan/crash49.C')
-rwxr-xr-x | gcc_arm/testsuite/g++.old-deja/g++.brendan/crash49.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.brendan/crash49.C b/gcc_arm/testsuite/g++.old-deja/g++.brendan/crash49.C new file mode 100755 index 0000000..98a580d --- /dev/null +++ b/gcc_arm/testsuite/g++.old-deja/g++.brendan/crash49.C @@ -0,0 +1,12 @@ +// Build don't link: +// GROUPS passed old-abort +#include<iostream.h> + +const int keys = 10; +const int key[keys] = {6, key[1], 2, keys, 1, 7, 6, key[2], key[8]}; + +void main() +{ // ERROR - return type for main + for(int i = 0; i < keys;) cout << key[i++] << " "; + endl(cout); +} |