blob: 78d033727a2e73e7f348154bfb12e5ff8fc0639c [file] [log] [blame]
// PR c++/84588
void foo()
{
if (int bar()); // { dg-error "condition declares a function" }
for (;int bar();); // { dg-error "condition declares a function" }
while (int bar()); // { dg-error "condition declares a function" }
if (int a[]); // { dg-error "condition declares an array" }
for (;int a[];); // { dg-error "condition declares an array" }
while (int a[]); // { dg-error "condition declares an array" }
}