xref: /llvm-project/llvm/test/CodeGen/PowerPC/aix-common.ll (revision 282da837565fcf8598a81b5f3b34bc25705917d3)
1; RUN: not llc -filetype=obj -mtriple powerpc-ibm-aix-xcoff -o %t.o < %s 2>&1 | FileCheck %s
2; RUN: not llc -filetype=asm -mtriple powerpc-ibm-aix-xcoff -o %t.o < %s 2>&1 | FileCheck %s
3; RUN: not llc -filetype=obj -mtriple powerpc64-ibm-aix-xcoff -o %t.o < %s 2>&1 | FileCheck %s
4; RUN: not llc -filetype=asm -mtriple powerpc64-ibm-aix-xcoff -o %t.o < %s 2>&1 | FileCheck %s
5@x= common global i32 0, align 4
6
7@y= alias i32, ptr @x
8
9; Function Attrs: noinline nounwind optnone
10define ptr @g() #0 {
11entry:
12  ret ptr @y
13}
14; CHECK: LLVM ERROR: Aliases to common variables are not allowed on AIX:
15; CHECK-NEXT:        Alias attribute for y is invalid because x is common.
16