summaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/PowerPC/aix-static-init-key-object.ll
blob: 18657465449d36fbfeb77aa0e8cbe95be6c1775d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
; RUN: not --crash llc -mtriple powerpc-ibm-aix-xcoff < %s 2>&1 | FileCheck %s
; RUN: not --crash llc -mtriple powerpc64-ibm-aix-xcoff < %s 2>&1 | FileCheck %s

@v = global i8 0

@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @foo, i8* @v}]

define void @foo() {
  ret void
}

; CHECK: LLVM ERROR: associated data of XXStructor list is not yet supported on AIX