Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/parse/cond6.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 // PR c++/84588 | |
2 | |
3 void foo() | |
4 { | |
5 if (int bar()); // { dg-error "condition declares a function" } | |
6 | |
7 for (;int bar();); // { dg-error "condition declares a function" } | |
8 | |
9 while (int bar()); // { dg-error "condition declares a function" } | |
10 | |
11 if (int a[]); // { dg-error "condition declares an array" } | |
12 | |
13 for (;int a[];); // { dg-error "condition declares an array" } | |
14 | |
15 while (int a[]); // { dg-error "condition declares an array" } | |
16 } |