blob: 8813963f973928026923026582b4bfdc013ebf69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* { dg-do compile } */
int bob;
struct a
{
int foo;
};
int main(void)
{
struct a bar;
bob(5); /* { dg-error "called object 'bob\\({anonymous}\\)' is not a function" } */
bar.foo(); /* { dg-error "called object 'bar.foo\\({anonymous}\\)' is not a function" } */
}
|