Skip to content

Commit ed2a073

Browse files
committed
Add test for TSan segfault
1 parent d7f4973 commit ed2a073

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// https://github.com/llvm/llvm-project/issues/163369
2+
// RUN: %clang %s -fsanitize=thread -o %t
3+
// RUN: %t
4+
5+
__attribute__((target_clones("default,avx"))) static int
6+
has_target_clones(void) {
7+
return 0;
8+
}
9+
10+
int main(void) { has_target_clones(); }

0 commit comments

Comments
 (0)