annotate clang/test/Frontend/darwin-version.c @ 150:1d019706d866

LLVM10
author anatofuz
date Thu, 13 Feb 2020 15:10:13 +0900
parents
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -triple armv6-apple-ios3.0.0 -dM -E -o %t %s
anatofuz
parents:
diff changeset
2 // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1
anatofuz
parents:
diff changeset
3 // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
4 // RUN: %clang_cc1 -triple armv6-apple-ios2.0.0 -dM -E -o %t %s
anatofuz
parents:
diff changeset
5 // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1
anatofuz
parents:
diff changeset
6 // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
7 // RUN: %clang_cc1 -triple armv6-apple-ios2.2.0 -dM -E -o %t %s
anatofuz
parents:
diff changeset
8 // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1
anatofuz
parents:
diff changeset
9 // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
10 // RUN: %clang_cc1 -triple armv6-apple-ios2.3.1 -dM -E -o %t %s
anatofuz
parents:
diff changeset
11 // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20301' | count 1
anatofuz
parents:
diff changeset
12 // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
13 // RUN: %clang_cc1 -triple armv7-apple-ios10.1.2 -dM -E -o %t %s
anatofuz
parents:
diff changeset
14 // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '100102' | count 1
anatofuz
parents:
diff changeset
15 // RUN: %clang_cc1 -triple i386-apple-macosx10.4.0 -dM -E -o %t %s
anatofuz
parents:
diff changeset
16 // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1
anatofuz
parents:
diff changeset
17 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
18 // RUN: not grep '__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
19 // RUN: not grep '__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
20 // RUN: %clang_cc1 -triple i386-apple-macosx10.4.10 -dM -E -o %t %s
anatofuz
parents:
diff changeset
21 // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1049' | count 1
anatofuz
parents:
diff changeset
22 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
23 // RUN: %clang_cc1 -triple i386-apple-macosx10.5.0 -dM -E -o %t %s
anatofuz
parents:
diff changeset
24 // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1
anatofuz
parents:
diff changeset
25 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
26 // RUN: %clang_cc1 -triple i386-apple-macosx10.6.0 -dM -E -o %t %s
anatofuz
parents:
diff changeset
27 // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1
anatofuz
parents:
diff changeset
28 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
29 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.10.0 -dM -E -o %t %s
anatofuz
parents:
diff changeset
30 // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '101000' | count 1
anatofuz
parents:
diff changeset
31 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
32
anatofuz
parents:
diff changeset
33 // RUN: %clang_cc1 -triple arm64-apple-tvos8.3 -dM -E -o %t %s
anatofuz
parents:
diff changeset
34 // RUN: grep '__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__' %t | grep '80300' | count 1
anatofuz
parents:
diff changeset
35 // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
36 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
37 // RUN: %clang_cc1 -triple arm64-apple-tvos10.2.3 -dM -E -o %t %s
anatofuz
parents:
diff changeset
38 // RUN: grep '__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__' %t | grep '100203' | count 1
anatofuz
parents:
diff changeset
39
anatofuz
parents:
diff changeset
40 // RUN: %clang_cc1 -triple x86_64-apple-tvos8.3 -dM -E -o %t %s
anatofuz
parents:
diff changeset
41 // RUN: grep '__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__' %t | grep '80300' | count 1
anatofuz
parents:
diff changeset
42 // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
43 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
44
anatofuz
parents:
diff changeset
45 // RUN: %clang_cc1 -triple armv7k-apple-watchos2.1 -dM -E -o %t %s
anatofuz
parents:
diff changeset
46 // RUN: grep '__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__' %t | grep '20100' | count 1
anatofuz
parents:
diff changeset
47 // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
48 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
49
anatofuz
parents:
diff changeset
50 // RUN: %clang_cc1 -triple i386-apple-watchos2.1 -dM -E -o %t %s
anatofuz
parents:
diff changeset
51 // RUN: grep '__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__' %t | grep '20100' | count 1
anatofuz
parents:
diff changeset
52 // RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t
anatofuz
parents:
diff changeset
53 // RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t