From c86b984ea8ecb3e944dc3de48539f4c1f65851ea Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 18 Jan 2015 16:23:48 +0000 Subject: Vendor import of clang RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_360/rc1@226102 --- test/Sema/format-strings-gnu.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test/Sema/format-strings-gnu.c') diff --git a/test/Sema/format-strings-gnu.c b/test/Sema/format-strings-gnu.c index f491085..fc524e9 100644 --- a/test/Sema/format-strings-gnu.c +++ b/test/Sema/format-strings-gnu.c @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -fsyntax-only -verify -triple i386-apple-darwin9 %s // RUN: %clang_cc1 -fsyntax-only -verify -triple thumbv6-apple-ios4.0 %s -// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-mingw32 %s -// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-pc-win32 %s +// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-mingw32 -DMS %s +// RUN: %clang_cc1 -fsyntax-only -verify -triple i686-pc-win32 -DMS %s // RUN: %clang_cc1 -fsyntax-only -verify -triple i686-linux-gnu -DALLOWED %s // RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-unknown-freebsd -DALLOWED %s @@ -23,6 +23,10 @@ void test() { // expected-warning@-6 {{length modifier 'L' results in undefined behavior or no effect with 'd' conversion specifier}} // expected-note@-7 {{did you mean to use 'll'?}} #endif + +#ifndef MS + printf("%Z\n", quiteLong); // expected-warning{{invalid conversion specifier 'Z'}} +#endif } void testAlwaysInvalid() { -- cgit v1.1