new testcase for static ctor list optimizations
[oota-llvm.git] / test / Transforms / GlobalOpt / ctor-list-opt.ll
1 ; RUN: llvm-as < %s | opt -globalopt -disable-output &&
2 ; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep CTOR
3
4 %llvm.global_ctors = appending global [2 x { int, void ()* }] [ 
5   { int, void ()* } { int 65535, void ()* %CTOR1 },
6   { int, void ()* } { int 65535, void ()* %CTOR1 }
7 ]
8
9 implementation
10
11 internal void %CTOR1() {   ;; noop ctor, remove.
12         ret void
13 }
14