Skip to content

Commit c48e266

Browse files
committed
[𝘀𝗽𝗿] initial version
Created using spr 1.3.4
1 parent 726a5c2 commit c48e266

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

clang/test/Driver/sanitizer-ld.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -839,6 +839,14 @@
839839
// CHECK-CFI-PREREQ-LINUX: '-fsanitize=cfi' only allowed with '-flto'
840840
// CHECK-CFI-PREREQ-LINUX: '-fsanitize=cfi' only allowed with '-fvisibility='
841841

842+
// CFI by itself does not link runtime libraries.
843+
// RUN: %clang -fsanitize=cfi \
844+
// RUN: -flto -fvisibility=hidden \
845+
// RUN: --target=x86_64-unknown-linux -fuse-ld=ld -rtlib=platform \
846+
// RUN: -resource-dir=%S/Inputs/resource_dir \
847+
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
848+
// RUN: -### %s
849+
842850
// CFI by itself does not link runtime libraries.
843851
// RUN: %clang -fsanitize=cfi \
844852
// RUN: -flto -fvisibility=hidden \

0 commit comments

Comments
 (0)