[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Driver / driverkit-path.c
blob9699b9c01f4e8191406a1228e8c75bfbc472b88d
1 // REQUIRES: x86-registered-target
2 // UNSUPPORTED: system-windows
3 // Windows is unsupported because we use the Unix path separator `\`.
5 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -mlinker-version=0 \
6 // RUN: -isysroot %S/Inputs/DriverKit19.0.sdk -### 2>&1 \
7 // RUN: | FileCheck %s --check-prefix=LD64-OLD
8 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -mlinker-version=604.99 \
9 // RUN: -isysroot %S/Inputs/DriverKit19.0.sdk -### 2>&1 \
10 // RUN: | FileCheck %s --check-prefix=LD64-OLD
11 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -mlinker-version=605.0 \
12 // RUN: -isysroot %S/Inputs/DriverKit19.0.sdk -### 2>&1 \
13 // RUN: | FileCheck %s --check-prefix=LD64-OLD
14 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -mlinker-version=605.1 \
15 // RUN: -isysroot %S/Inputs/DriverKit19.0.sdk -### 2>&1 \
16 // RUN: | FileCheck %s --check-prefix=LD64-NEW
18 int main() { return 0; }
19 // LD64-OLD: "-isysroot" "[[PATH:[^"]*]]Inputs/DriverKit19.0.sdk"
20 // LD64-OLD: "-L[[PATH]]Inputs/DriverKit19.0.sdk/System/DriverKit/usr/lib"
21 // LD64-OLD: "-F[[PATH]]Inputs/DriverKit19.0.sdk/System/DriverKit/System/Library/Frameworks"
22 // LD64-NEW: "-isysroot" "[[PATH:[^"]*]]Inputs/DriverKit19.0.sdk"
23 // LD64-NEW-NOT: "-L[[PATH]]Inputs/DriverKit19.0.sdk/System/DriverKit/usr/lib"
24 // LD64-NEW-NOT: "-F[[PATH]]Inputs/DriverKit19.0.sdk/System/DriverKit/System/Library/Frameworks"
27 // RUN: %clang %s -target x86_64-apple-driverkit19.0 -isysroot %S/Inputs/DriverKit19.0.sdk -E -v -x c++ 2>&1 | FileCheck %s --check-prefix=INC
29 // INC: -isysroot [[PATH:[^ ]*/Inputs/DriverKit19.0.sdk]]
30 // INC-LABEL: #include <...> search starts here:
31 // INC: [[PATH]]/System/DriverKit/usr/local/include
32 // INC: /lib{{(64)?}}/clang/{{[^/ ]+}}/include
33 // INC: [[PATH]]/System/DriverKit/usr/include
34 // INC: [[PATH]]/System/DriverKit/System/Library/Frameworks (framework directory)