llvm-project/llvm/test/Verifier/global-initializer-sized.ll
Nikita Popov a8ec6e8788
[IR] Require that global value initializers are sized (#137358)
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.
2025-05-02 09:52:39 +02:00

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