| 1 |
// RUN: cp %s %t |
| 2 |
// RUN: %clang_cc1 -triple thumbv7-apple-ios8.0.0 -Wformat -fixit %t |
| 3 |
|
| 4 |
int printf(const char *restrict, ...); |
| 5 |
typedef unsigned int NSUInteger; |
| 6 |
typedef int NSInteger; |
| 7 |
NSUInteger getNSUInteger(void); |
| 8 |
NSInteger getNSInteger(void); |
| 9 |
|
| 10 |
void test(void) { |
| 11 |
// For thumbv7-apple-ios8.0.0 the underlying type of ssize_t is long |
| 12 |
// and the underlying type of size_t is unsigned long. |
| 13 |
|
| 14 |
printf("test 1: %zu", getNSUInteger()); |
| 15 |
|
| 16 |
printf("test 2: %zu %zu", getNSUInteger(), getNSUInteger()); |
| 17 |
|
| 18 |
printf("test 3: %zd", getNSInteger()); |
| 19 |
|
| 20 |
printf("test 4: %zd %zd", getNSInteger(), getNSInteger()); |
| 21 |
} |