// RUN: clang -fsyntax-only -verify %s

struct foo; // expected-note 3 {{forward declaration of 'struct foo'}}

struct foo a();
void b(struct foo);
void c();

void func() {
  a(); // expected-error{{return type of called function ('struct foo') is incomplete}}
  b(*(struct foo*)0); // expected-error{{argument type 'struct foo' is incomplete}}
  c(*(struct foo*)0); // expected-error{{argument type 'struct foo' is incomplete}}
}

Add testcase for incomplete call/return types for calls.
Add testcase for incomplete call/return types for calls.



git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@67486 91177308-0d34-0410-b5e6-96231b3b80d8
