24 lines · plain
1; RUN: opt -thinlto-bc -thin-link-bitcode-file=%t2 -thinlto-split-lto-unit -o %t %s2; RUN: llvm-modextract -b -n 1 -o %t1 %t3; RUN: llvm-dis -o - %t1 | FileCheck %s4 5source_filename = "unique-source-file-names.c"6 7@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @f, ptr null }]8 9; CHECK: @g.45934e8a5251fb7adbecfff71a4e70ed =10@g = internal global i8 42, !type !011 12declare void @sink(ptr)13 14define internal void @f() {15 call void @sink(ptr @g)16 ret void17}18 19!0 = !{i32 0, !"typeid"}20 21!llvm.module.flags = !{!1}22!1 = !{i32 5, !"Unique Source File Identifier", !2}23!2 = !{!"unique-source-file-names.c"}24