summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/init3.C
blob: 92f4ed79ddb83d97fd2a6bb8d71d9459cd30df41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do assemble  }
// GROUPS passed initialization
// init file
// From: thayer@moose.cs.columbia.edu (Charles Thayer)
// Date:     Wed, 30 Sep 92 02:38:17 EDT
// Subject:  small bug
// Message-ID: <9209300638.AA22334@moose.cs.columbia.edu>

int main() {
int offset;
char buf[offset]=""; // { dg-error "" } ansi forbids variable arrays
}