Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
// { 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 "6:ISO C\\+\\+ forbids variable length array .buf" } ansi forbids variable arrays }