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