From 7d0c76aced18b3491bda4eeda9c570ad79d8416f Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Sun, 20 Nov 2016 13:45:58 +0000 Subject: [PATCH] Add regression test. --- src/test/run-make/issue-37893/Makefile | 4 ++++ src/test/run-make/issue-37893/a.rs | 13 +++++++++++++ src/test/run-make/issue-37893/b.rs | 12 ++++++++++++ src/test/run-make/issue-37893/c.rs | 13 +++++++++++++ 4 files changed, 42 insertions(+) create mode 100644 src/test/run-make/issue-37893/Makefile create mode 100644 src/test/run-make/issue-37893/a.rs create mode 100644 src/test/run-make/issue-37893/b.rs create mode 100644 src/test/run-make/issue-37893/c.rs diff --git a/src/test/run-make/issue-37893/Makefile b/src/test/run-make/issue-37893/Makefile new file mode 100644 index 00000000000..27b69baf977 --- /dev/null +++ b/src/test/run-make/issue-37893/Makefile @@ -0,0 +1,4 @@ +-include ../tools.mk + +all: + $(RUSTC) a.rs && $(RUSTC) b.rs && $(RUSTC) c.rs diff --git a/src/test/run-make/issue-37893/a.rs b/src/test/run-make/issue-37893/a.rs new file mode 100644 index 00000000000..3dff45388c7 --- /dev/null +++ b/src/test/run-make/issue-37893/a.rs @@ -0,0 +1,13 @@ +// Copyright 2016 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![feature(proc_macro)] +#![allow(unused)] +#![crate_type = "proc-macro"] diff --git a/src/test/run-make/issue-37893/b.rs b/src/test/run-make/issue-37893/b.rs new file mode 100644 index 00000000000..82f48f6d8d6 --- /dev/null +++ b/src/test/run-make/issue-37893/b.rs @@ -0,0 +1,12 @@ +// Copyright 2016 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![crate_type = "lib"] +#[macro_use] extern crate a; diff --git a/src/test/run-make/issue-37893/c.rs b/src/test/run-make/issue-37893/c.rs new file mode 100644 index 00000000000..eee55cc2369 --- /dev/null +++ b/src/test/run-make/issue-37893/c.rs @@ -0,0 +1,13 @@ +// Copyright 2016 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +#![crate_type = "staticlib"] +extern crate b; +extern crate a;