mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
4160337c85
Normally, variables with common linkage must be zero-initialized. In Rust, common linkage variables that are not zero-initialized causes a crash in the compiler backend. This commit adds a test case to confirm this behavior, which will inform us if it changes in the future.
4 lines
110 B
Plaintext
4 lines
110 B
Plaintext
'common' global must have a zero initializer!
|
|
ptr @TEST
|
|
LLVM ERROR: Broken module found, compilation aborted!
|