aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/invalid-decl.c
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-11 18:46:21 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-11 18:46:21 +0000
commit58408bc4ead86b08af56cd06fc966fd858b48b2d (patch)
tree0223532edc535ef21cb0eaaf21eb8c715f4b732d /test/Sema/invalid-decl.c
parent48026d26fb58e413544874eead5491b1452e2ebf (diff)
Tighten up the "cannot return array or function type" diagnostic to
say either "array type" or "function type", whichever it is. No reason to make the user guess. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/invalid-decl.c')
-rw-r--r--test/Sema/invalid-decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Sema/invalid-decl.c b/test/Sema/invalid-decl.c
index 7f471a1526..a5e7ad3b1e 100644
--- a/test/Sema/invalid-decl.c
+++ b/test/Sema/invalid-decl.c
@@ -6,7 +6,7 @@ void test() {
// PR2400
-typedef xtype (*x)(void* handle); // expected-error {{function cannot return array or function type}} expected-warning {{type specifier missing, defaults to 'int'}} expected-warning {{type specifier missing, defaults to 'int'}}
+typedef xtype (*x)(void* handle); // expected-error {{function cannot return function type}} expected-warning {{type specifier missing, defaults to 'int'}} expected-warning {{type specifier missing, defaults to 'int'}}
typedef void ytype();