diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-02-20 22:28:41 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-02-20 22:28:41 +0000 |
commit | 011bda8031bb68c86a1eebcf328697d418dfd5d6 (patch) | |
tree | 5a05ae64f8c343ed0d9fb232f834ad46ff70aac2 /clang/test/FixIt/format-darwin.m | |
parent | 6f54f787b40a47d71b641477661f10a99f869165 (diff) | |
download | bcm5719-llvm-011bda8031bb68c86a1eebcf328697d418dfd5d6.tar.gz bcm5719-llvm-011bda8031bb68c86a1eebcf328697d418dfd5d6.zip |
Revert "intmax_t is long long on Darwin, not long."
'long' and 'long long' are different for the purposes of mangling.
This caused <rdar://problem/13254874>.
This reverts commit c2f994d31ec85e9af811af38eb1b28709aef0b2c.
llvm-svn: 175681
Diffstat (limited to 'clang/test/FixIt/format-darwin.m')
-rw-r--r-- | clang/test/FixIt/format-darwin.m | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/clang/test/FixIt/format-darwin.m b/clang/test/FixIt/format-darwin.m index 0724e5760f7..cfaac29e904 100644 --- a/clang/test/FixIt/format-darwin.m +++ b/clang/test/FixIt/format-darwin.m @@ -21,7 +21,6 @@ typedef int NSInteger; typedef unsigned int NSUInteger; typedef long SInt32; typedef unsigned long UInt32; - #endif NSInteger getNSInteger(); @@ -211,25 +210,3 @@ void testCapitals() { // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:13-[[@LINE-3]]:14}:"d" // CHECK: fix-it:"{{.*}}":{[[@LINE-4]]:11-[[@LINE-4]]:14}:"%D" } - - -// The OS X headers do not always use __INTMAX_TYPE__ and friends. -typedef long long intmax_t; -typedef unsigned long long uintmax_t; -#define INTMAX_C(X) (X ## LL) -#define UINTMAX_C(X) (X ## ULL) - -void testIntMax(intmax_t i, uintmax_t u) { - printf("%d", i); // expected-warning{{format specifies type 'int' but the argument has type 'intmax_t' (aka 'long long')}} - printf("%d", u); // expected-warning{{format specifies type 'int' but the argument has type 'uintmax_t' (aka 'unsigned long long')}} - - // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:11-[[@LINE-3]]:13}:"%jd" - // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:11-[[@LINE-3]]:13}:"%ju" - - printf("%jd", i); // no-warning - printf("%ju", u); // no-warning - - printf("%jd", INTMAX_C(5)); // no-warning - printf("%ju", INTMAX_C(5)); // no-warning -} - |