blob: 3f01660bf9889026494416e93bd9bb043be8944c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// Testcase for ambiguity between function and variable declaration (8.2).
// Build don't link:
struct A {
A (int, int);
int k;
};
void f ()
{
int i[2], j;
A a (int (i[1]), j); // gets bogus error - late parsing XFAIL *-*-*
A b (int (i[1]), int j); // function
a.k = 0; // gets bogus error - late parsing XFAIL *-*-*
b (i, j);
}
|