summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/exprs.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-04-04 17:22:27 +0000
committerTed Kremenek <kremenek@apple.com>2011-04-04 17:22:27 +0000
commit99a337eed06e86fc5f435b1245674552b4bd4494 (patch)
treeaf678b72b976733a78627976d120032281f30bd3 /clang/test/Sema/exprs.c
parentbda3632bcdd12566cff2d51c60c89ae6e315f240 (diff)
downloadbcm5719-llvm-99a337eed06e86fc5f435b1245674552b4bd4494.tar.gz
bcm5719-llvm-99a337eed06e86fc5f435b1245674552b4bd4494.zip
When emitting a "too many arguments to function call..." error, also include a note with a location for the function prototype.
llvm-svn: 128833
Diffstat (limited to 'clang/test/Sema/exprs.c')
-rw-r--r--clang/test/Sema/exprs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/exprs.c b/clang/test/Sema/exprs.c
index 86cd52ec636..d7cbbad4aa1 100644
--- a/clang/test/Sema/exprs.c
+++ b/clang/test/Sema/exprs.c
@@ -163,7 +163,7 @@ void test17(int x) {
}
// PR6501
-void test18_a(int a);
+void test18_a(int a); // expected-note {{'test18_a' declared here}}
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