xref: /llvm-project/llvm/test/CodeGen/PowerPC/basic-toc-data-private-linkage.ll (revision a03a6e99647318a86ea398c42e241da43e3c550e)
1; RUN: not --crash llc  -mtriple powerpc-ibm-aix-xcoff  -verify-machineinstrs \
2; RUN:     < %s 2>&1 | FileCheck %s
3; RUN: not --crash llc  -mtriple powerpc64-ibm-aix-xcoff  -verify-machineinstrs \
4; RUN:     < %s 2>&1 | FileCheck %s
5
6@iprivate = private global i32 55 #0
7
8define nonnull ptr @get() local_unnamed_addr {
9entry:
10  ret ptr @iprivate
11}
12
13attributes #0 = { "toc-data" }
14
15; CHECK: LLVM ERROR: A GlobalVariable with private linkage is not currently supported by the toc data transformation.
16