tests: make run-make/issue-7349 more specific to avoid false positives.

This commit is contained in:
Eduard Burtescu 2015-02-12 02:48:05 +02:00
parent 48662d7cba
commit 2dfd0acc92
2 changed files with 4 additions and 4 deletions

View File

@ -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" ]

View File

@ -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
}
}