llvm/test/tools/gold/X86/bad-alias.ll
raw| 1 | ; RUN: llvm-as %s -o %t.o |
| 2 | |
| 3 | ; RUN: not %gold -plugin %llvmshlibdir/LLVMgold%shlibext \ |
| 4 | ; RUN: --plugin-opt=emit-llvm \ |
| 5 | ; RUN: -shared %t.o -o %t2.o 2>&1 | FileCheck %s |
| 6 | |
| 7 | ; CHECK: Unable to determine comdat of alias! |
| 8 | |
| 9 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 10 | |
| 11 | @g1 = global i32 1 |
| 12 | @g2 = global i32 2 |
| 13 | |
| 14 | @a = alias i32, inttoptr(i32 sub (i32 ptrtoint (ptr @g1 to i32), |
| 15 | i32 ptrtoint (ptr @g2 to i32)) to ptr) |