We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a00efd commit e77ef7bCopy full SHA for e77ef7b
clang/test/Driver/sanitizer-ld.c
@@ -839,6 +839,14 @@
839
// CHECK-CFI-PREREQ-LINUX: '-fsanitize=cfi' only allowed with '-flto'
840
// CHECK-CFI-PREREQ-LINUX: '-fsanitize=cfi' only allowed with '-fvisibility='
841
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
+
850
// CFI by itself does not link runtime libraries.
851
// RUN: %clang -fsanitize=cfi \
852
// RUN: -flto -fvisibility=hidden \
0 commit comments