blob: c4e3c3fe82fc78eaac894ed3d1a08aabd9f1f4c8 [file] [log] [blame]
Rafael Espindolaf7ecb112014-08-22 23:26:10 +00001; RUN: llvm-as %s -o %t.o
2
Chandler Carruthedd92942015-02-14 09:43:57 +00003; RUN: not %gold -plugin %llvmshlibdir/LLVMgold.so \
Rafael Espindolaf7ecb112014-08-22 23:26:10 +00004; 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@g1 = global i32 1
10@g2 = global i32 2
11
NAKAMURA Takumiecc73e72015-09-11 08:03:17 +000012@a = alias i32, inttoptr(i32 sub (i32 ptrtoint (i32* @g1 to i32),
13 i32 ptrtoint (i32* @g2 to i32)) to i32*)