summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C
blob: e0664da28dd808ac563ad73101e85395ab35ba9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// GROUPS passed old-abort
#include<iostream>

const int keys = 10;
const int key[keys] = {6, key[1], 2, keys, 1, 7, 6, key[2], key[8]};

void main()  // { dg-error "must return .int" }
{
        for(int i = 0; i < keys;) std::cout << key[i++] << " ";
        std::endl(std::cout);
}