1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/Assembler/declare-unnamed-addr.ll
Rafael Espindola f6cae95276 Reject uses of unnamed_addr in declarations.
llvm-svn: 123358
2011-01-13 01:30:30 +00:00

9 lines
228 B
LLVM

; RUN: not llvm-as %s -o /dev/null 2>%t
; RUN: FileCheck -input-file=%t %s
declare unnamed_addr i32 @zed()
// CHECK: error: only definitions can have unnamed_addr
// CHECK: declare unnamed_addr i32 @zed()
// CHECK: ^