Changeset View
Changeset View
Standalone View
Standalone View
test/Transforms/GCOVProfiling/global-ctor.ll
; RUN: echo '!16 = !{!"%/T/global-ctor.ll", !0}' > %t1 | ; RUN: rm -rf %t && mkdir -p %t | ||||
; RUN: cat %s %t1 > %t2 | ; RUN: echo '!16 = !{!"%/t/global-ctor.ll", !0}' > %t/1 | ||||
; RUN: opt -insert-gcov-profiling -disable-output < %t2 | ; RUN: cat %s %t/1 > %t/2 | ||||
; RUN: not grep '_GLOBAL__sub_I_global-ctor' %T/global-ctor.gcno | ; RUN: opt -insert-gcov-profiling -disable-output < %t/2 | ||||
; RUN: rm %T/global-ctor.gcno | ; RUN: not grep '_GLOBAL__sub_I_global-ctor' %t/global-ctor.gcno | ||||
; RUN: rm %t/global-ctor.gcno | |||||
; RUN: opt -passes=insert-gcov-profiling -disable-output < %t2 | |||||
; RUN: not grep '_GLOBAL__sub_I_global-ctor' %T/global-ctor.gcno | ; RUN: opt -passes=insert-gcov-profiling -disable-output < %t/2 | ||||
; RUN: rm %T/global-ctor.gcno | ; RUN: not grep '_GLOBAL__sub_I_global-ctor' %t/global-ctor.gcno | ||||
; RUN: rm %t/global-ctor.gcno | |||||
@x = global i32 0, align 4 | @x = global i32 0, align 4 | ||||
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__sub_I_global-ctor.ll, i8* null }] | @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__sub_I_global-ctor.ll, i8* null }] | ||||
; Function Attrs: nounwind | ; Function Attrs: nounwind | ||||
define internal void @__cxx_global_var_init() #0 section ".text.startup" !dbg !4 { | define internal void @__cxx_global_var_init() #0 section ".text.startup" !dbg !4 { | ||||
entry: | entry: | ||||
br label %0 | br label %0 | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |