llvm-6502/test/Assembler/external-unnamed-addr.ll
Rafael Espindola d72479c2f0 Reject uses of unnamed_addr in declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123358 91177308-0d34-0410-b5e6-96231b3b80d8
2011-01-13 01:30:30 +00:00

9 lines
252 B
LLVM

; RUN: not llvm-as %s -o /dev/null 2>%t
; RUN: FileCheck -input-file=%t %s
@foo = external unnamed_addr global i8*
// CHECK: error: only definitions can have unnamed_addr
// CHECK: @foo = external unnamed_addr global i8*
// CHECK: ^