mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-21 01:06:46 +00:00
new testcase for static ctor list optimizations
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a48283baa3
commit
09eec56af0
14
test/Transforms/GlobalOpt/ctor-list-opt.ll
Normal file
14
test/Transforms/GlobalOpt/ctor-list-opt.ll
Normal file
@ -0,0 +1,14 @@
|
||||
; RUN: llvm-as < %s | opt -globalopt -disable-output &&
|
||||
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep CTOR
|
||||
|
||||
%llvm.global_ctors = appending global [2 x { int, void ()* }] [
|
||||
{ int, void ()* } { int 65535, void ()* %CTOR1 },
|
||||
{ int, void ()* } { int 65535, void ()* %CTOR1 }
|
||||
]
|
||||
|
||||
implementation
|
||||
|
||||
internal void %CTOR1() { ;; noop ctor, remove.
|
||||
ret void
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user