
While external globals can be unsized, I don't think an unsized initializer makes sense. It seems like the backend currently ends up treating this as a zero-size global. If people want that behavior, they should declare it as such.
6 lines
132 B
LLVM
6 lines
132 B
LLVM
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
|
|
|
@g = global target("opaque") undef
|
|
|
|
; CHECK: Global variable initializer must be sized
|