File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
- // This test verifies that we add the function attributes used by sanitizers .
1
+ // This test verifies that we add the function attributes used by ASan .
2
2
3
3
// RUN: %target-swift-frontend -emit-ir -sanitize=address %s | FileCheck %s -check-prefix=ASAN
4
- // RUN: %target-swift-frontend -emit-ir -target x86_64-apple-macosx10.9 -sanitize=thread %s | FileCheck %s -check-prefix=TSAN
5
4
6
5
// XFAIL: linux
7
6
8
7
func test( ) {
9
8
}
10
9
11
10
// ASAN: Function Attrs: sanitize_address
12
- // TSAN: Function Attrs: sanitize_thread
Original file line number Diff line number Diff line change
1
+ // This test verifies that we add the function attributes used by TSan.
2
+
3
+ // RUN: %target-swift-frontend -emit-ir -sanitize=thread %s | FileCheck %s -check-prefix=TSAN
4
+
5
+ // TSan is currently only supported on 64 bit mac and simulators.
6
+ // (We do not test the simulators here.)
7
+ // REQUIRES: CPU=x86_64, OS=macosx
8
+
9
+ func test( ) {
10
+ }
11
+
12
+ // TSAN: Function Attrs: sanitize_thread
You can’t perform that action at this time.
0 commit comments