commit | aaf9ddbeab08a43203cf6b9ca4986c8c6fe6fdc6 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sun Apr 06 06:47:48 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sun Apr 06 06:47:48 2008 +0000 |
tree | caadd21ecd2045055bbc8f5f60bab5ec3625f554 | |
parent | 50c6477a06186aeee50415fd90e5f71da68e8616 [diff] [blame] |
reject 'typedef int y; int test(x, y)'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49270 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Parser/declarators.c b/test/Parser/declarators.c index 15ae7c6..410ac36 100644 --- a/test/Parser/declarators.c +++ b/test/Parser/declarators.c
@@ -25,4 +25,8 @@ int Array[*(int*)P+A]; } +typedef int atype; +int test3(x, + atype /* expected-error {{unexpected type name 'atype': expected identifier}} */ + ) int x, atype; {}