diff options
| author | Aaron Ballman <aaron@aaronballman.com> | 2016-04-18 18:10:53 +0000 |
|---|---|---|
| committer | Aaron Ballman <aaron@aaronballman.com> | 2016-04-18 18:10:53 +0000 |
| commit | 05164816f0ead8544fac2103b3280ad6703e7847 (patch) | |
| tree | 0119471c04bf912d6b5cd40a1cc02f1590aa72ba /clang/test | |
| parent | dda2cb17a36237f9100a7f1169dc01ea753632fb (diff) | |
| download | bcm5719-llvm-05164816f0ead8544fac2103b3280ad6703e7847.tar.gz bcm5719-llvm-05164816f0ead8544fac2103b3280ad6703e7847.zip | |
Clarifying the wording of this diagnostic; it confused parameter and argument.
llvm-svn: 266644
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Sema/varargs-x86-64.c | 4 | ||||
| -rw-r--r-- | clang/test/Sema/varargs.c | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Sema/varargs-x86-64.c b/clang/test/Sema/varargs-x86-64.c index d50dd6a6fc1..e3ded6fbf6b 100644 --- a/clang/test/Sema/varargs-x86-64.c +++ b/clang/test/Sema/varargs-x86-64.c @@ -21,8 +21,8 @@ void __attribute__((ms_abi)) g1(int a) { void __attribute__((ms_abi)) g2(int a, int b, ...) { __builtin_ms_va_list ap; - __builtin_ms_va_start(ap, 10); // expected-warning {{second parameter of 'va_start' not last named argument}} - __builtin_ms_va_start(ap, a); // expected-warning {{second parameter of 'va_start' not last named argument}} + __builtin_ms_va_start(ap, 10); // expected-warning {{second argument to 'va_start' is not the last named parameter}} + __builtin_ms_va_start(ap, a); // expected-warning {{second argument to 'va_start' is not the last named parameter}} __builtin_ms_va_start(ap, b); } diff --git a/clang/test/Sema/varargs.c b/clang/test/Sema/varargs.c index 5329c2e61c9..82fa42b2c1c 100644 --- a/clang/test/Sema/varargs.c +++ b/clang/test/Sema/varargs.c @@ -4,7 +4,7 @@ void f1(int a) { __builtin_va_list ap; - + __builtin_va_start(ap, a, a); // expected-error {{too many arguments to function}} __builtin_va_start(ap, a); // expected-error {{'va_start' used in function with fixed args}} } @@ -12,16 +12,16 @@ void f1(int a) void f2(int a, int b, ...) { __builtin_va_list ap; - - __builtin_va_start(ap, 10); // expected-warning {{second parameter of 'va_start' not last named argument}} - __builtin_va_start(ap, a); // expected-warning {{second parameter of 'va_start' not last named argument}} + + __builtin_va_start(ap, 10); // expected-warning {{second argument to 'va_start' is not the last named parameter}} + __builtin_va_start(ap, a); // expected-warning {{second argument to 'va_start' is not the last named parameter}} __builtin_va_start(ap, b); } void f3(float a, ...) { __builtin_va_list ap; - + __builtin_va_start(ap, a); __builtin_va_start(ap, (a)); } |

