From f0806cd75d0e6e5aa2f4b8e6359e7a26612c6b41 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 8 Jun 2014 01:27:32 +0000 Subject: [PATCH] test: add test case for SVN r210406 Add missing test case for constructor section selection. Thanks David Blaikie! llvm-svn: 210409 --- llvm/test/CodeGen/ARM/Windows/structors.ll | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 llvm/test/CodeGen/ARM/Windows/structors.ll diff --git a/llvm/test/CodeGen/ARM/Windows/structors.ll b/llvm/test/CodeGen/ARM/Windows/structors.ll new file mode 100644 index 0000000..a1a9026 --- /dev/null +++ b/llvm/test/CodeGen/ARM/Windows/structors.ll @@ -0,0 +1,12 @@ +; RUN: llc -mtriple thumbv7-windows-itanium -o - %s | FileCheck %s + +@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @function, i8* null }] + +define arm_aapcs_vfpcc void @function() { +entry: + ret void +} + +; CHECK: .section .CRT$XCU,"rd" +; CHECK: .long function + -- 2.7.4