rewrite issue-109934-lto-debuginfo as an ui test

This commit is contained in:
Oneirical 2024-07-09 16:47:52 -04:00
parent 80fb4cab4e
commit 2adfa147d7
4 changed files with 22 additions and 22 deletions

View file

@ -1,12 +0,0 @@
# ignore-cross-compile
include ../tools.mk
# With the upgrade to LLVM 16, this was getting:
#
# 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.
all:
$(RUSTC) lib.rs --test -C lto=fat -C debuginfo=2 -C incremental=$(TMPDIR)/inc-fat

View file

@ -1,9 +0,0 @@
extern crate alloc;
#[cfg(test)]
mod tests {
#[test]
fn something_alloc() {
assert_eq!(Vec::<u32>::new(), Vec::<u32>::new());
}
}