brintos

brintos / llvm-project-archived public Read only

0
0
Text · 604 B · 836a4b5 Raw
22 lines · plain
1// RUN: cp %s %t2// RUN: %clang_cc1 -triple thumbv7-apple-ios8.0.0 -Wformat -fixit %t3 4int printf(const char *restrict, ...);5typedef unsigned int NSUInteger;6typedef int NSInteger;7NSUInteger getNSUInteger(void);8NSInteger getNSInteger(void);9 10void test(void) {11  // For thumbv7-apple-ios8.0.0 the underlying type of ssize_t is long12  // 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