-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rewrite issue-109934-lto-debuginfo as an ui test
- Loading branch information
Showing
4 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// With the upgrade to LLVM 16, the following error appeared when using | ||
// link-time-optimization (LTO) alloc and debug compilation mode simultaneously: | ||
// | ||
// error: Cannot represent a difference across sections | ||
// | ||
// The error stemmed from DI function definitions under type scopes, fixed by | ||
// only declaring in type scope and defining the subprogram elsewhere. | ||
// This test reproduces the circumstances that caused the error to appear, and checks | ||
// that compilation is successful. | ||
|
||
//@ check-pass | ||
//@ compile-flags: --test -C debuginfo=2 -C lto=fat -C incremental=inc-fat | ||
|
||
extern crate alloc; | ||
|
||
#[cfg(test)] | ||
mod tests { | ||
#[test] | ||
fn something_alloc() { | ||
assert_eq!(Vec::<u32>::new(), Vec::<u32>::new()); | ||
} | ||
} |