summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/exprs.c
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-07-29 00:24:42 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-07-29 00:24:42 +0000
commit3bc84ca376a29e883d09c03b25127c3993cdf55a (patch)
treeab6ef2200205b0dfee1bcde866c71298723069d0 /clang/test/Sema/exprs.c
parent8ab4ea8571ae644dc15f7cc77af03ac0a499c3fb (diff)
downloadbcm5719-llvm-3bc84ca376a29e883d09c03b25127c3993cdf55a.tar.gz
bcm5719-llvm-3bc84ca376a29e883d09c03b25127c3993cdf55a.zip
Fix an inconsistency in Sema::ConvertArgumentsForCall in that
the callee note diagnostic was not emitted in the case where there were too few arguments. llvm-svn: 136437
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 9ce1481f16c..460f72cb174 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); // expected-note {{'test18_a' declared here}}
+void test18_a(int a); // expected-note 2 {{'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