diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-03-24 19:52:54 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-03-24 19:52:54 +0000 |
commit | e7450f5dbd5bed63b8ef9db86350a8fc3db011e8 (patch) | |
tree | 61d7b8565db05760fb505fa9c25af4ed13e48bbf /test/Sema/function.c | |
parent | 6256d3654533547a7996170647c21a859cb441e1 (diff) |
Make sure to use RequireCompleteType rather than testing for
incomplete types. RequireCompleteType is needed when the type may be
completed by instantiating a template.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r-- | test/Sema/function.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c index c240896adf..aec76a26eb 100644 --- a/test/Sema/function.c +++ b/test/Sema/function.c @@ -59,4 +59,5 @@ void f1static() { register void f2register(int); // expected-error{{illegal storage class on function}} } -struct incomplete_test a(void) {} // expected-error{{result type for function definition cannot be incomplete}} +struct incomplete_test a(void) {} // expected-error{{incomplete result type 'struct incomplete_test' in function definition}} \ + // expected-note{{forward declaration of 'struct incomplete_test'}} |