[compiler-rt] 3d0f44f - [rtsan] Add basic test for c compilation (#107717)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 7 13:29:26 PDT 2024
Author: Chris Apple
Date: 2024-09-07T13:29:23-07:00
New Revision: 3d0f44f5ae9437005e90aa167d4180ff0d4fbe02
URL: https://github.com/llvm/llvm-project/commit/3d0f44f5ae9437005e90aa167d4180ff0d4fbe02
DIFF: https://github.com/llvm/llvm-project/commit/3d0f44f5ae9437005e90aa167d4180ff0d4fbe02.diff
LOG: [rtsan] Add basic test for c compilation (#107717)
I was reminded of
https://github.com/realtime-sanitizer/radsan/issues/25, where we were
including C++ code that was never linked in C.
Adding this test to ensure that we don't break this functionality in the
future
Added:
Modified:
compiler-rt/test/rtsan/basic.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/rtsan/basic.cpp b/compiler-rt/test/rtsan/basic.cpp
index c7cbfcda31562e..f4075bb27e4f91 100644
--- a/compiler-rt/test/rtsan/basic.cpp
+++ b/compiler-rt/test/rtsan/basic.cpp
@@ -1,4 +1,5 @@
// RUN: %clangxx -fsanitize=realtime %s -o %t
+// RUN: %clang -fsanitize=realtime %s -o %t
// RUN: not %run %t 2>&1 | FileCheck %s
// UNSUPPORTED: ios
More information about the llvm-commits
mailing list