aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/printf-block.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/printf-block.cpp')
-rw-r--r--test/SemaCXX/printf-block.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/SemaCXX/printf-block.cpp b/test/SemaCXX/printf-block.cpp
index a7d266bac5..4a580037e7 100644
--- a/test/SemaCXX/printf-block.cpp
+++ b/test/SemaCXX/printf-block.cpp
@@ -14,5 +14,5 @@ void test_block() {
HasNoCStr hncs(str);
int n = 4;
block(n, "%s %d", str, n); // no-warning
- block(n, "%s %s", hncs, n); // expected-warning{{cannot pass non-POD object of type 'HasNoCStr' to variadic function; expected type from format string was 'char *'}} expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
+ block(n, "%s %s", hncs, n); // expected-warning{{cannot pass non-POD object of type 'HasNoCStr' to variadic block; expected type from format string was 'char *'}} expected-warning{{format specifies type 'char *' but the argument has type 'int'}}
}