mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-13 08:13:21 +00:00
tests: make run-make/issue-7349 more specific to avoid false positives.
This commit is contained in:
parent
48662d7cba
commit
2dfd0acc92
@ -7,5 +7,5 @@
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs --emit=llvm-ir
|
||||
[ "$$(grep -c 8675309 "$(TMPDIR)/foo.ll")" -eq "1" ]
|
||||
[ "$$(grep -c 11235813 "$(TMPDIR)/foo.ll")" -eq "1" ]
|
||||
[ "$$(grep -c 'ret i32 8675309' "$(TMPDIR)/foo.ll")" -eq "1" ]
|
||||
[ "$$(grep -c 'ret i32 11235813' "$(TMPDIR)/foo.ll")" -eq "1" ]
|
||||
|
@ -10,14 +10,14 @@
|
||||
|
||||
fn outer<T>() {
|
||||
#[allow(dead_code)]
|
||||
fn inner() -> uint {
|
||||
fn inner() -> u32 {
|
||||
8675309
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" fn outer_foreign<T>() {
|
||||
#[allow(dead_code)]
|
||||
fn inner() -> uint {
|
||||
fn inner() -> u32 {
|
||||
11235813
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user