• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-as %s -o %t.o
2; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
3; RUN:    --plugin-opt=emit-llvm \
4; RUN:    -shared %t.o -o %t2.o
5; RUN: llvm-dis %t2.o -o - | FileCheck %s
6
7@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* null }]
8
9define internal void @foo() {
10  ret void
11}
12
13; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* null }]
14