about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorjumbatm <jumbatm@gmail.com>2020-02-23 01:43:47 +1000
committerjumbatm <jumbatm@gmail.com>2020-02-23 02:06:11 +1000
commita796af7a7685a21e8c43f93aa5fb3007cd847253 (patch)
treeaff31a22f00a37126f665f5c3b3740aa4e673ef4 /src/test/debuginfo/enum-thinlto.rs
parent07534591ffb222308c5ac84aad4da64582811283 (diff)
downloadrust-a796af7a7685a21e8c43f93aa5fb3007cd847253.tar.gz
rust-a796af7a7685a21e8c43f93aa5fb3007cd847253.zip
Fail on multiple declarations of `main`.
Previously, when inserting the entry function, we only checked for
duplicate _definitions_ of `main`.  However, it's possible to cause
problems even only having a duplicate _declaration_. For example,
shadowing `main` using an extern block isn't caught by the current
check, and causes an assertion failure down the line in in LLVM code.
Diffstat (limited to 'src/test/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions