annotate gcc/testsuite/g++.old-deja/g++.law/init3.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-do assemble }
kono
parents:
diff changeset
2 // GROUPS passed initialization
kono
parents:
diff changeset
3 // init file
kono
parents:
diff changeset
4 // From: thayer@moose.cs.columbia.edu (Charles Thayer)
kono
parents:
diff changeset
5 // Date: Wed, 30 Sep 92 02:38:17 EDT
kono
parents:
diff changeset
6 // Subject: small bug
kono
parents:
diff changeset
7 // Message-ID: <9209300638.AA22334@moose.cs.columbia.edu>
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 int main() {
kono
parents:
diff changeset
10 int offset;
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
11 char buf[offset]=""; // { dg-error "6:ISO C\\+\\+ forbids variable length array .buf" } ansi forbids variable arrays
111
kono
parents:
diff changeset
12 }