mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 16:33:49 +00:00
![David Mo](/assets/img/avatar_default.png)
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!
|