xref: /llvm-project/llvm/test/Instrumentation/DataFlowSanitizer/uninstrumented_local_functions.ll (revision ecb85b5cd89f9797c538675ee3ab93e350c57bd5)
1; RUN: opt < %s -passes=dfsan -dfsan-abilist=%S/Inputs/abilist.txt -S | FileCheck %s
2target triple = "x86_64-unknown-linux-gnu"
3
4define internal i8 @uninstrumented_internal_fun(i8 %in) {
5  ret i8 %in
6}
7
8define i8 @call_uninstrumented_internal_fun(i8 %in) {
9  %call = call i8 @uninstrumented_internal_fun(i8 %in)
10  ret i8 %call
11}
12; CHECK: define internal i8 @"dfsw$uninstrumented_internal_fun"
13
14define private i8 @uninstrumented_private_fun(i8 %in) {
15  ret i8 %in
16}
17
18define i8 @call_uninstrumented_private_fun(i8 %in) {
19  %call = call i8 @uninstrumented_private_fun(i8 %in)
20  ret i8 %call
21}
22; CHECK: define private i8 @"dfsw$uninstrumented_private_fun"
23