[compiler-rt] [rtsan] Add basic test for c compilation (PR #107717)
Chris Apple via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 7 13:29:09 PDT 2024
https://github.com/cjappl created https://github.com/llvm/llvm-project/pull/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
>From e781e510f729ddc3d9882d0fbe07a72a5123a86e Mon Sep 17 00:00:00 2001
From: Chris Apple <cja-private at pm.me>
Date: Sat, 7 Sep 2024 13:26:24 -0700
Subject: [PATCH] [rtsan] Add basic test for c compilation
---
compiler-rt/test/rtsan/basic.cpp | 1 +
1 file changed, 1 insertion(+)
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