summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/init-array.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/init-array.ll')
-rw-r--r--test/CodeGen/AArch64/init-array.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/AArch64/init-array.ll b/test/CodeGen/AArch64/init-array.ll
new file mode 100644
index 0000000000..d80be8f3a6
--- /dev/null
+++ b/test/CodeGen/AArch64/init-array.ll
@@ -0,0 +1,9 @@
+; RUN: llc -mtriple=aarch64-none-linux-gnu -verify-machineinstrs -use-init-array < %s | FileCheck %s
+
+define internal void @_GLOBAL__I_a() section ".text.startup" {
+ ret void
+}
+
+@llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }]
+
+; CHECK: .section .init_array \ No newline at end of file