2 // RUN: %clang_cc1 -triple thumbv7-apple-ios8.0.0 -Wformat -Werror -fixit %t
4 int printf(const char *restrict, ...);
5 typedef unsigned int NSUInteger;
7 NSUInteger getNSUInteger(void);
8 NSInteger getNSInteger(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.
14 printf("test 1: %zu", getNSUInteger());
16 printf("test 2: %zu %zu", getNSUInteger(), getNSUInteger());
18 printf("test 3: %zd", getNSInteger());
20 printf("test 4: %zd %zd", getNSInteger(), getNSInteger());