| 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 |
| 10 |
define ptr @g() #0 { |
| 11 |
entry: |
| 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. |