• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Tests that the AIX toolchain adds system includes to its search path.
2 
3 // Check powerpc-ibm-aix, 32-bit/64-bit.
4 // RUN: %clangxx -### -no-canonical-prefixes %s 2>&1 \
5 // RUN:		-target powerpc-ibm-aix \
6 // RUN:		-resource-dir=%S/Inputs/resource_dir \
7 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
8 // RUN:   | FileCheck -check-prefix=CHECK-INTERNAL-INCLUDE %s
9 
10 // RUN: %clangxx -### -no-canonical-prefixes %s 2>&1 \
11 // RUN:		-target powerpc64-ibm-aix \
12 // RUN:		-resource-dir=%S/Inputs/resource_dir \
13 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
14 // RUN:   | FileCheck -check-prefix=CHECK-INTERNAL-INCLUDE %s
15 
16 // RUN: %clang -### -xc -no-canonical-prefixes %s 2>&1 \
17 // RUN:		-target powerpc-ibm-aix \
18 // RUN:		-resource-dir=%S/Inputs/resource_dir \
19 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
20 // RUN:   | FileCheck -check-prefix=CHECK-INTERNAL-INCLUDE %s
21 
22 // RUN: %clang -### -xc -no-canonical-prefixes %s 2>&1 \
23 // RUN:		-target powerpc64-ibm-aix \
24 // RUN:		-resource-dir=%S/Inputs/resource_dir \
25 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
26 // RUN:   | FileCheck -check-prefix=CHECK-INTERNAL-INCLUDE %s
27 
28 // CHECK-INTERNAL-INCLUDE:	{{.*}}clang{{.*}}" "-cc1"
29 // CHECK-INTERNAL-INCLUDE:	"-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
30 // CHECK-INTERNAL-INCLUDE:	"-isysroot" "[[SYSROOT:[^"]+]]"
31 // CHECK-INTERNAL-INCLUDE:	"-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
32 // CHECK-INTERNAL-INCLUDE:	"-internal-isystem" "[[SYSROOT]]/usr/include"
33 
34 // Check powerpc-ibm-aix, 32-bit/64-bit. -nostdinc option.
35 // RUN: %clangxx -### -no-canonical-prefixes %s 2>&1 \
36 // RUN:		-target powerpc-ibm-aix \
37 // RUN:		-resource-dir=%S/Inputs/resource_dir \
38 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
39 // RUN:		-nostdinc \
40 // RUN:   | FileCheck -check-prefix=CHECK-NOSTDINC-INCLUDE %s
41 
42 // RUN: %clangxx -### -no-canonical-prefixes %s 2>&1 \
43 // RUN:		-target powerpc64-ibm-aix \
44 // RUN:		-resource-dir=%S/Inputs/resource_dir \
45 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
46 // RUN:		-nostdinc \
47 // RUN:   | FileCheck -check-prefix=CHECK-NOSTDINC-INCLUDE %s
48 
49 // RUN: %clang -### -xc -no-canonical-prefixes %s 2>&1 \
50 // RUN:		-target powerpc-ibm-aix \
51 // RUN:		-resource-dir=%S/Inputs/resource_dir \
52 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
53 // RUN:		-nostdinc \
54 // RUN:   | FileCheck -check-prefix=CHECK-NOSTDINC-INCLUDE %s
55 
56 // RUN: %clang -### -xc -no-canonical-prefixes %s 2>&1 \
57 // RUN:		-target powerpc64-ibm-aix \
58 // RUN:		-resource-dir=%S/Inputs/resource_dir \
59 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
60 // RUN:		-nostdinc \
61 // RUN:   | FileCheck -check-prefix=CHECK-NOSTDINC-INCLUDE %s
62 
63 // CHECK-NOSTDINC-INCLUDE:	{{.*}}clang{{.*}}" "-cc1"
64 // CHECK-NOSTDINC-INCLUDE:	"-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
65 // CHECK-NOSTDINC-INCLUDE:	"-isysroot" "[[SYSROOT:[^"]+]]"
66 // CHECK-NOSTDINC-INCLUDE-NOT:	"-internal-isystem"
67 
68 // Check powerpc-ibm-aix, 32-bit/64-bit. -nostdlibinc option.
69 // RUN: %clangxx -### -no-canonical-prefixes %s 2>&1 \
70 // RUN:		-target powerpc-ibm-aix \
71 // RUN:		-resource-dir=%S/Inputs/resource_dir \
72 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
73 // RUN:		-nostdlibinc \
74 // RUN:   | FileCheck -check-prefix=CHECK-NOSTDLIBINC-INCLUDE %s
75 
76 // RUN: %clangxx -### -no-canonical-prefixes %s 2>&1 \
77 // RUN:		-target powerpc64-ibm-aix \
78 // RUN:		-resource-dir=%S/Inputs/resource_dir \
79 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
80 // RUN:		-nostdlibinc \
81 // RUN:   | FileCheck -check-prefix=CHECK-NOSTDLIBINC-INCLUDE %s
82 
83 // RUN: %clang -### -xc -no-canonical-prefixes %s 2>&1 \
84 // RUN:		-target powerpc-ibm-aix \
85 // RUN:		-resource-dir=%S/Inputs/resource_dir \
86 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
87 // RUN:		-nostdlibinc \
88 // RUN:   | FileCheck -check-prefix=CHECK-NOSTDLIBINC-INCLUDE %s
89 
90 // RUN: %clang -### -xc -no-canonical-prefixes %s 2>&1 \
91 // RUN:		-target powerpc64-ibm-aix \
92 // RUN:		-resource-dir=%S/Inputs/resource_dir \
93 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
94 // RUN:		-nostdlibinc \
95 // RUN:   | FileCheck -check-prefix=CHECK-NOSTDLIBINC-INCLUDE %s
96 
97 // CHECK-NOSTDLIBINC-INCLUDE:	{{.*}}clang{{.*}}" "-cc1"
98 // CHECK-NOSTDLIBINC-INCLUDE:	"-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
99 // CHECK-NOSTDLIBINC-INCLUDE:	"-isysroot" "[[SYSROOT:[^"]+]]"
100 // CHECK-NOSTDLIBINC-INCLUDE:	"-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
101 // CHECK-NOSTDLIBINC-INCLUDE-NOT:	"-internal-isystem" "[[SYSROOT]]/usr/include"
102 
103 // Check powerpc-ibm-aix, 32-bit/64-bit. -nobuiltininc option.
104 // RUN: %clangxx -### -no-canonical-prefixes %s 2>&1 \
105 // RUN:		-target powerpc-ibm-aix \
106 // RUN:		-resource-dir=%S/Inputs/resource_dir \
107 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
108 // RUN:		-nobuiltininc \
109 // RUN:   | FileCheck -check-prefix=CHECK-NOBUILTININC-INCLUDE %s
110 
111 // RUN: %clangxx -### -no-canonical-prefixes %s 2>&1 \
112 // RUN:		-target powerpc64-ibm-aix \
113 // RUN:		-resource-dir=%S/Inputs/resource_dir \
114 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
115 // RUN:		-nobuiltininc \
116 // RUN:   | FileCheck -check-prefix=CHECK-NOBUILTININC-INCLUDE %s
117 
118 // RUN: %clang -### -xc -no-canonical-prefixes %s 2>&1 \
119 // RUN:		-target powerpc-ibm-aix \
120 // RUN:		-resource-dir=%S/Inputs/resource_dir \
121 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
122 // RUN:		-nobuiltininc \
123 // RUN:   | FileCheck -check-prefix=CHECK-NOBUILTININC-INCLUDE %s
124 
125 // RUN: %clang -### -xc -no-canonical-prefixes %s 2>&1 \
126 // RUN:		-target powerpc64-ibm-aix \
127 // RUN:		-resource-dir=%S/Inputs/resource_dir \
128 // RUN:		--sysroot=%S/Inputs/basic_aix_tree \
129 // RUN:		-nobuiltininc \
130 // RUN:   | FileCheck -check-prefix=CHECK-NOBUILTININC-INCLUDE %s
131 
132 // CHECK-NOBUILTININC-INCLUDE:	{{.*}}clang{{.*}}" "-cc1"
133 // CHECK-NOBUILTININC-INCLUDE:	"-resource-dir" "[[RESOURCE_DIR:[^"]+]]"
134 // CHECK-NOBUILTININC-INCLUDE:	"-isysroot" "[[SYSROOT:[^"]+]]"
135 // CHECK-NOBUILTININC-INCLUDE-NOT:	"-internal-isystem" "[[RESOURCE_DIR]]{{(/|\\\\)}}include"
136 // CHECK-NOBUILTININC-INCLUDE:	"-internal-isystem" "[[SYSROOT]]/usr/include"
137