• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=i386-linux-gnu | FileCheck %s --check-prefix=CHECK-DEFAULT
2; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s --check-prefix=CHECK-DARWIN
3; PR5329
4
5@llvm.global_ctors = appending global [3 x { i32, void ()* }] [{ i32, void ()* } { i32 2000, void ()* @construct_2 }, { i32, void ()* } { i32 3000, void ()* @construct_3 }, { i32, void ()* } { i32 1000, void ()* @construct_1 }]
6; CHECK-DEFAULT: construct_3
7; CHECK-DEFAULT: construct_2
8; CHECK-DEFAULT: construct_1
9
10; CHECK-DARWIN: construct_1
11; CHECK-DARWIN: construct_2
12; CHECK-DARWIN: construct_3
13
14@llvm.global_dtors = appending global [3 x { i32, void ()* }] [{ i32, void ()* } { i32 2000, void ()* @destruct_2 }, { i32, void ()* } { i32 1000, void ()* @destruct_1 }, { i32, void ()* } { i32 3000, void ()* @destruct_3 }]
15; CHECK-DEFAULT: destruct_3
16; CHECK-DEFAULT: destruct_2
17; CHECK-DEFAULT: destruct_1
18
19; CHECK-DARWIN: destruct_1
20; CHECK-DARWIN: destruct_2
21; CHECK-DARWIN: destruct_3
22
23declare void @construct_1()
24declare void @construct_2()
25declare void @construct_3()
26declare void @destruct_1()
27declare void @destruct_2()
28declare void @destruct_3()
29