aboutsummaryrefslogtreecommitdiff
path: root/test/Sema/function.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-17 07:32:46 +0000
committerChris Lattner <sabre@nondot.org>2008-12-17 07:32:46 +0000
commit777f07b6cd595bb0922e05768e5703fbc92b5695 (patch)
tree89d18302ba4e12c34a7699f60fde175c4cfe3456 /test/Sema/function.c
parentcc98eac383718899462b9b1361c46eea8dddfb2b (diff)
diagnose C99 6.9.1p5, C arguments in definitions that are lacking
a name. This implements PR3208. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/function.c')
-rw-r--r--test/Sema/function.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Sema/function.c b/test/Sema/function.c
index 7c67bbaa63..f2aa8d9216 100644
--- a/test/Sema/function.c
+++ b/test/Sema/function.c
@@ -29,3 +29,6 @@ int t9(int a, ); // expected-error {{expected parameter declarator}}
void t10(){}
void t11(){t10(1);}
+// PR3208
+void t12(int) {} // expected-error{{parameter name omitted}}
+