xref: /llvm-project/llvm/test/Analysis/LazyCallGraph/replace-libcall.ll (revision 7a94d189ad1a49aace4e4008e10c8ab774198e67)
1; RUN: opt -passes=inline,argpromotion < %s -S | FileCheck %s
2
3; Make sure we update the list of libcalls when we replace a libcall.
4
5; CHECK: define {{.*}}@a
6
7define void @a() {
8entry:
9  %call = call float @strtof(ptr noundef null, ptr noundef null)
10  ret void
11}
12
13define internal float @strtof(ptr noundef %0, ptr noundef %1) nounwind {
14entry:
15  ret float 0.0
16}
17
18