aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/PowerPC/basic-toc-data-private-linkage.ll
blob: a3831d8f0f3c8a29253b5a9d486646583ca4462c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: not --crash llc  -mtriple powerpc-ibm-aix-xcoff  -verify-machineinstrs \
; RUN:     < %s 2>&1 | FileCheck %s
; RUN: not --crash llc  -mtriple powerpc64-ibm-aix-xcoff  -verify-machineinstrs \
; RUN:     < %s 2>&1 | FileCheck %s

@iprivate = private global i32 55 #0

define nonnull ptr @get() local_unnamed_addr {
entry:
  ret ptr @iprivate
}

attributes #0 = { "toc-data" }

; CHECK: LLVM ERROR: A GlobalVariable with private linkage is not currently supported by the toc data transformation.