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:
Chris Lattner 2005-09-26 01:42:03 +00:00
parent a48283baa3
commit 09eec56af0

View 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
}