-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[rtsan] Add basic test for c compilation #107717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-compiler-rt-sanitizer Author: Chris Apple (cjappl) ChangesI was reminded of realtime-sanitizer/rtsan#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 Full diff: https://github.com/llvm/llvm-project/pull/107717.diff 1 Files Affected:
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
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/139/builds/3439 Here is the relevant piece of the build log for the reference
|
I was reminded of realtime-sanitizer/rtsan#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