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