When calling a function without a prototype for which we have a
definition, warn if there are too many/too few function call
arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68318 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/arg-duplicate.c b/test/Sema/arg-duplicate.c
index 82b2992..e40a964 100644
--- a/test/Sema/arg-duplicate.c
+++ b/test/Sema/arg-duplicate.c
@@ -9,6 +9,6 @@
}
void f4(void) {
- f3 (1, 1, 2, 3, 4);
+ f3 (1, 1, 2, 3, 4); // expected-warning{{too many arguments}}
}