xref: /llvm-project/llvm/test/Transforms/ThinLTOBitcodeWriter/circular-reference.ll (revision 9950ea66203849df25352b8db8f4ea108ef47a5a)
1; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s
2; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=M0 %s
3; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=M1 %s
4
5; M0: @g = external constant
6; M1: @g = constant
7@g = constant ptr @g, !type !0
8
9!0 = !{i32 0, !"typeid"}
10