|
46 | 46 | // CHK-FSYCL-IS-DEVICE: clang{{.*}} "-fsycl-is-device" {{.*}} "-emit-llvm-bc" |
47 | 47 | // CHK-FSYCL-IS-HOST: clang{{.*}} "-fsycl-is-host" |
48 | 48 |
|
49 | | -// Verify header search dirs are added with -fsycl |
50 | | -// RUN: %clang -### -fsycl %s 2>&1 \ |
51 | | -// RUN: | FileCheck %s -check-prefixes=CHECK-HEADER-DIR |
52 | | -// RUN: %clang_cl -### -fsycl %s 2>&1 \ |
53 | | -// RUN: | FileCheck %s -check-prefixes=CHECK-HEADER-DIR |
54 | | -// CHECK-HEADER-DIR: clang{{.*}} "-fsycl-is-device" |
55 | | -// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT:[^"]*]]bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers" |
56 | | -// CHECK-HEADER-DIR-NOT: -internal-isystem |
57 | | -// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT]]bin{{[/\\]+}}..{{[/\\]+}}include" |
58 | | -// CHECK-HEADER-DIR: clang{{.*}} "-fsycl-is-host" |
59 | | -// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT]]bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers" |
60 | | -// CHECK-HEADER-DIR-NOT: -internal-isystem |
61 | | -// CHECK-HEADER-DIR-SAME: "-internal-isystem" "[[ROOT]]bin{{[/\\]+}}..{{[/\\]+}}include" |
62 | | - |
63 | | -// Verify no header search dirs are added with -fsycl -nobuiltininc |
64 | | -// RUN: %clang -### -fsycl -nobuiltininc %s 2>&1 \ |
65 | | -// RUN: | FileCheck %s -check-prefixes=NO-HEADER-DIR |
66 | | -// RUN: %clang_cl -### -fsycl -nobuiltininc %s 2>&1 \ |
67 | | -// RUN: | FileCheck %s -check-prefixes=NO-HEADER-DIR |
68 | | -// NO-HEADER-DIR: clang{{.*}} "-fsycl-is-device" |
69 | | -// NO-HEADER-DIR-NOT: "-internal-isystem" "{{.*}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers" |
70 | | -// NO-HEADER-DIR: clang{{.*}} "-fsycl-is-host" |
71 | | -// NO-HEADER-DIR-NOT: "-internal-isystem" "{{.*}}include{{[/\\]+}}sycl{{[/\\]+}}stl_wrappers" |
72 | | - |
73 | 49 | /// Check for option incompatibility with -fsycl |
74 | 50 | // RUN: not %clang -### -fsycl -ffreestanding %s 2>&1 \ |
75 | 51 | // RUN: | FileCheck -check-prefix=CHK-INCOMPATIBILITY %s \ |
|
0 commit comments