Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/diagnostic/variably-modified-type-1.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-options "" } void foo () { int n; typedef int X[n]; struct Z { X x __attribute__((unused)); // { dg-error "7:data member may not have variably modified type" } void bar (X x __attribute__((unused))); // { dg-error "17:parameter may not have variably modified type" } }; }