File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 829
829
830
830
// CHECK-NSAN-UBSAN: "--whole-archive" "{{[^"]*}}libclang_rt.nsan.a" "--no-whole-archive"
831
831
832
+ // CFI requirements.
833
+ // RUN: not %clang -fsanitize=cfi \
834
+ // RUN: --target=x86_64-unknown-linux -fuse-ld=ld -rtlib=platform \
835
+ // RUN: -resource-dir=%S/Inputs/resource_dir \
836
+ // RUN: --sysroot=%S/Inputs/basic_linux_tree \
837
+ // RUN: -### %s 2>&1 \
838
+ // RUN: | %{filecheck} --check-prefix=CHECK-CFI-PREREQ-LINUX
839
+ // CHECK-CFI-PREREQ-LINUX: '-fsanitize=cfi' only allowed with '-flto'
840
+ // CHECK-CFI-PREREQ-LINUX: '-fsanitize=cfi' only allowed with '-fvisibility='
841
+
832
842
// CFI by itself does not link runtime libraries.
833
843
// RUN: not %clang -fsanitize=cfi \
834
844
// RUN: --target=x86_64-unknown-linux -fuse-ld=ld -rtlib=platform \
You can’t perform that action at this time.
0 commit comments