aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C
blob: 98a580d3cb1fb380f79fe27dfd13cdd817eb9ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
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);
}