diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-07-14 05:16:18 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2011-07-14 05:16:18 +0000 |
commit | 13d99bf2e9e13820d74ecc6a28630721736c1f10 (patch) | |
tree | c78c78aa91f25bec3abf31325695c4f1373eced7 /test/Sema/format-strings-i386.c | |
parent | 3a348c86ffaebd3ba8bd9bbae342b6e9f5f62cd7 (diff) |
Revert r135075, "format string checking: long and int have the same widths on 32-bit, so we shouldn't warn about using"
It fails on freebsd, mingw and msvc10.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135129 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/format-strings-i386.c')
-rw-r--r-- | test/Sema/format-strings-i386.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/test/Sema/format-strings-i386.c b/test/Sema/format-strings-i386.c deleted file mode 100644 index d2d9862796..0000000000 --- a/test/Sema/format-strings-i386.c +++ /dev/null @@ -1,14 +0,0 @@ -// RUN: %clang_cc1 -triple i386-apple-macosx10.7.0 -fsyntax-only -verify -Wformat-nonliteral %s - -int printf(const char *restrict, ...); - -// Test that 'long' is compatible with 'int' on 32-bit. -typedef unsigned int UInt32; -void test_rdar_9763999() { - UInt32 x = 7; - printf("x = %u\n", x); // no-warning -} - -void test_positive() { - printf("%d", "hello"); // expected-warning {{conversion specifies type 'int' but the argument has type 'char *'}} -} |