Files
swift-mirror/test/Profiler/instrprof_tsan.swift
3405691582 7b431b4ddb [test] Mark XFAIL tests for OpenBSD.
These tests are marked XFAIL or UNSUPPORTED because either the tests:
require libc annotation, require Mach-O support, don't recognize calls to
swift-autolink-extract, requires porting alongside Linux, or rely on simd
which is not present.

Additionally, explicit REQUIRES for tsan/asan/fuzzer are added to some
tests, since OpenBSD does not support these sanitizers or fuzzers, since
it's nicer to mark that with REQUIRES rather than XFAIL.
2020-06-10 18:57:19 -04:00

14 lines
287 B
Swift

// REQUIRES: tsan_runtime
// RUN: %target-swift-frontend -emit-ir -profile-generate -sanitize=thread %s | %FileCheck %s
// TSan is only supported on 64 bit.
// REQUIRES: PTRSIZE=64
// CHECK: define {{.*}}empty
// CHECK-NOT: load{{.*}}empty
// CHECK: ret void
func empty() {
}
empty()