add run-make test
This commit is contained in:
parent
39afcd0673
commit
f5bc678255
12
src/test/run-make-fulldeps/emit-stack-sizes/Makefile
Normal file
12
src/test/run-make-fulldeps/emit-stack-sizes/Makefile
Normal file
@ -0,0 +1,12 @@
|
||||
-include ../tools.mk
|
||||
|
||||
ifdef IS_WINDOWS
|
||||
# Do nothing on MSVC.
|
||||
all:
|
||||
exit 0
|
||||
else
|
||||
# check that the .stack_sizes section is generated
|
||||
all:
|
||||
$(RUSTC) -C opt-level=3 -Z emit-stack-sizes --emit=obj foo.rs
|
||||
size -A $(TMPDIR)/foo.o | $(CGREP) .stack_sizes
|
||||
endif
|
13
src/test/run-make-fulldeps/emit-stack-sizes/foo.rs
Normal file
13
src/test/run-make-fulldeps/emit-stack-sizes/foo.rs
Normal file
@ -0,0 +1,13 @@
|
||||
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution and at
|
||||
// http://rust-lang.org/COPYRIGHT.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
#![crate_type = "lib"]
|
||||
|
||||
pub fn foo() {}
|
Loading…
Reference in New Issue
Block a user