xref: /llvm-project/llvm/test/Transforms/MetaRenamer/main.ll (revision 3d152bc49ddc87350eb1c588b083b24858bf6d51)
1cee313d2SEric Christopher; Make sure @main is left untouched.
2*321986feSArthur Eubanks; RUN: opt -passes=metarenamer -S %s | FileCheck %s
3cee313d2SEric Christopher
4cee313d2SEric Christopher; CHECK: define void @main
5cee313d2SEric Christopher; CHECK: call void @main
6cee313d2SEric Christopher
7cee313d2SEric Christopherdefine void @main() {
8cee313d2SEric Christopher  call void @patatino()
9cee313d2SEric Christopher  ret void
10cee313d2SEric Christopher}
11cee313d2SEric Christopher
12cee313d2SEric Christopherdefine void @patatino() {
13cee313d2SEric Christopher  call void @main()
14cee313d2SEric Christopher  ret void
15cee313d2SEric Christopher}
16