Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/init3.C

raw
1 // { dg-do assemble }
2 // GROUPS passed initialization
3 // init file
4 // From: [email protected] (Charles Thayer)
5 // Date: Wed, 30 Sep 92 02:38:17 EDT
6 // Subject: small bug
7 // Message-ID: <[email protected]>
8
9 int main() {
10 int offset;
11 char buf[offset]=""; // { dg-error "6:ISO C\\+\\+ forbids variable length array .buf" } ansi forbids variable arrays
12 }