blob: 81f7ba6d382f7362dc7143356b5ff9713cf5f02c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// PR c++/20148
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" }
void foo()
{
if (({int c[2];})) ; // { dg-error "7: error: ISO C.. forbids|20: error: could not convert" }
}
void bar()
{
if (({})); // { dg-error "7: error: ISO C.. forbids|11: error: could not convert" }
}
|