xref: /llvm-project/llvm/test/Transforms/ThinLTOBitcodeWriter/associated.ll (revision 9950ea66203849df25352b8db8f4ea108ef47a5a)
1dd968219SPeter Collingbourne; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s
2dd968219SPeter Collingbourne; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=M0 %s
3dd968219SPeter Collingbourne; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=M1 %s
4dd968219SPeter Collingbourne
5dd968219SPeter Collingbourne; M0: @g = external constant
6dd968219SPeter Collingbourne; M0-NOT: @assoc
7dd968219SPeter Collingbourne; M1: @g = constant i8 1
8dd968219SPeter Collingbourne; M1: @assoc = private constant i8 2
9dd968219SPeter Collingbourne
10dd968219SPeter Collingbourne@g = constant i8 1, !type !0
11dd968219SPeter Collingbourne@assoc = private constant i8 2, !associated !1
12dd968219SPeter Collingbourne
13dd968219SPeter Collingbourne!0 = !{i32 0, !"typeid"}
14*9950ea66SNikita Popov!1 = !{ptr @g}
15