1 | // RUN: cp %s %t |
2 | // RUN: %clang_cc1 -triple thumbv7-apple-ios8.0.0 -fsyntax-only -Wformat -Werror -fixit %t |
3 | |
4 | int printf(const char *restrict, ...); |
5 | typedef unsigned int NSUInteger; |
6 | typedef int NSInteger; |
7 | NSUInteger getNSUInteger(); |
8 | NSInteger getNSInteger(); |
9 | |
10 | void test() { |
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 | } |
22 | |