comparison 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
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
6 // Subject: small bug 6 // Subject: small bug
7 // Message-ID: <9209300638.AA22334@moose.cs.columbia.edu> 7 // Message-ID: <9209300638.AA22334@moose.cs.columbia.edu>
8 8
9 int main() { 9 int main() {
10 int offset; 10 int offset;
11 char buf[offset]=""; // { dg-error "" } ansi forbids variable arrays 11 char buf[offset]=""; // { dg-error "6:ISO C\\+\\+ forbids variable length array .buf" } ansi forbids variable arrays
12 } 12 }