summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/exprs.c
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-04-19 18:39:43 +0000
committerEric Christopher <echristo@apple.com>2010-04-19 18:39:43 +0000
commit5c6525fbee380fbd04c24b581b7662fdd495d855 (patch)
treee816aa8a22654a6923280bd19e44c201a54febd4 /clang/test/Sema/exprs.c
parentfd34b0ac84d294c3c63b418c730f4b41f85876d9 (diff)
downloadbcm5719-llvm-5c6525fbee380fbd04c24b581b7662fdd495d855.tar.gz
bcm5719-llvm-5c6525fbee380fbd04c24b581b7662fdd495d855.zip
Add a testcase for PR6501 (too many/too few arguments to a function call).
llvm-svn: 101800
Diffstat (limited to 'clang/test/Sema/exprs.c')
-rw-r--r--clang/test/Sema/exprs.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c
index 4df8188e434..dbb6e80aa6d 100644
--- a/clang/test/Sema/exprs.c
+++ b/clang/test/Sema/exprs.c
@@ -128,3 +128,9 @@ void test17(int x) {
x = sizeof(x/0); // no warning.
}
+// PR6501
+void test18_a(int a);
+void test18(int b) {
+ test18_a(b, b); // expected-error {{too many arguments to function call, expected 1, have 2}}
+ test18_a(); // expected-error {{too few arguments to function call, expected 1, have 0}}
+}
OpenPOWER on IntegriCloud