diff options
| author | Vadzim Dambrouski <pftbest@gmail.com> | 2018-01-16 16:00:31 +0300 |
|---|---|---|
| committer | Vadzim Dambrouski <pftbest@gmail.com> | 2018-01-16 16:00:31 +0300 |
| commit | 98dee04baefedc3b00077789edceface65ebc343 (patch) | |
| tree | 63b5badb0cd5e6bfd1306f7778c3c8a1d1cfc716 /src | |
| parent | 3f61742cc0dee504f050bb9fdbf801e274780a29 (diff) | |
| download | rust-98dee04baefedc3b00077789edceface65ebc343.tar.gz rust-98dee04baefedc3b00077789edceface65ebc343.zip | |
Add run-make test for no_integrated_as flag.
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/run-make/no-integrated-as/Makefile | 7 | ||||
| -rw-r--r-- | src/test/run-make/no-integrated-as/hello.rs | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/test/run-make/no-integrated-as/Makefile b/src/test/run-make/no-integrated-as/Makefile new file mode 100644 index 00000000000..78e3025b99a --- /dev/null +++ b/src/test/run-make/no-integrated-as/Makefile @@ -0,0 +1,7 @@ +-include ../tools.mk + +all: +ifeq ($(TARGET),x86_64-unknown-linux-gnu) + $(RUSTC) hello.rs -C no_integrated_as + $(call RUN,hello) +endif diff --git a/src/test/run-make/no-integrated-as/hello.rs b/src/test/run-make/no-integrated-as/hello.rs new file mode 100644 index 00000000000..68e7f6d94d1 --- /dev/null +++ b/src/test/run-make/no-integrated-as/hello.rs @@ -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. + +fn main() { + println!("Hello, world!"); +} |
