xref: /llvm-project/llvm/test/Instrumentation/ThreadSanitizer/personality.ll (revision c36eebb52e682fc0fcef6a25287a3a1d28198e40)
1; RUN: opt --mtriple=x86_64-unknown-linux-gnu < %s -passes=tsan -S | FileCheck %s --check-prefix=GCC
2; RUN: opt --mtriple=x86_64-scei-ps4 < %s -passes=tsan -S | FileCheck %s --check-prefix=GCC
3; RUN: opt --mtriple=x86_64-sie-ps5  < %s -passes=tsan -S | FileCheck %s --check-prefix=GXX
4
5declare void @foo()
6
7define i32 @func1() sanitize_thread {
8  call void @foo()
9  ret i32 0
10  ; GCC: __gcc_personality_v0
11  ; GXX: __gxx_personality_v0
12}
13