Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
20040920-1.c
blob: a38ff8889304ad0fb506ad1cc979e831c2aa294d [
file
] [
log
] [
blame
]
/* { dg-do compile } */
int
bob
;
struct
a
{
int
foo
;
};
int
main
(
void
)
{
struct
a bar
;
bob
(
5
);
/* { dg-error "called object 'bob' is not a function" } */
bar
.
foo
();
/* { dg-error "called object 'bar.foo' is not a function" } */
}