-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add a test for a compiler crasher with -O -whole-module-optimization -sanitize=address #21385
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
…-sanitize=address
@@ -0,0 +1,19 @@ | |||
// RUN: %target-build-swift -O -whole-module-optimization -sanitize=address %s -o %t | |||
// RUN: %target-codesign %t | |||
// RUN: %target-run %t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is %target-run-simple-swift(-O -whole-module-optimization -sanitize=address)
.
Still good to have this test @swift-ci please smoke test |
// RUN: %target-run %t | ||
|
||
// REQUIRES: executable_test | ||
// REQUIRES: objc_interop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REQUIRES: foundation
(instead of objc_interop)
Interesting this looks like an old PR that didn't get merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why this test is in test/Interpreter/
, we aren't using the interpreter in this test are we?
It sound probably be in test/Sanitizers
with the other sanitizer test cases.
// RUN: %target-run %t | ||
|
||
// REQUIRES: executable_test | ||
// REQUIRES: objc_interop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably needs REQUIRES: asan_runtime
if we are actually going to run.
Merged in #31008. |
Add a test for apple/swift-llvm#133.