
When we're adding a method to a type DIE, we only want a DW_AT_declaration there, because LLVM LTO can't unify type definitions when a child DIE is a full subprogram definition. Now the subprogram definition gets added at the CU level with a specification link back to the abstract declaration.
9 lines
151 B
Rust
9 lines
151 B
Rust
extern crate alloc;
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test]
|
|
fn something_alloc() {
|
|
assert_eq!(Vec::<u32>::new(), Vec::<u32>::new());
|
|
}
|
|
}
|