Skip to content

Commit eb7ddad

Browse files
committed
Add compile-pass test suite and move run-pass test with empty main to there
1 parent 506ad51 commit eb7ddad

File tree

459 files changed

+39
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

459 files changed

+39
-0
lines changed

src/bootstrap/check.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ struct Test {
319319

320320
static DEFAULT_COMPILETESTS: &[Test] = &[
321321
Test { path: "src/test/ui", mode: "ui", suite: "ui" },
322+
Test { path: "src/test/compile-pass", mode: "compile-pass", suite: "compile-pass" },
322323
Test { path: "src/test/run-pass", mode: "run-pass", suite: "run-pass" },
323324
Test { path: "src/test/compile-fail", mode: "compile-fail", suite: "compile-fail" },
324325
Test { path: "src/test/parse-fail", mode: "parse-fail", suite: "parse-fail" },
@@ -410,6 +411,7 @@ static HOST_COMPILETESTS: &[Test] = &[
410411
Test { path: "src/test/rustdoc", mode: "rustdoc", suite: "rustdoc" },
411412

412413
Test { path: "src/test/pretty", mode: "pretty", suite: "pretty" },
414+
Test { path: "src/test/compile-pass/pretty", mode: "pretty", suite: "compile-pass" },
413415
Test { path: "src/test/run-pass/pretty", mode: "pretty", suite: "run-pass" },
414416
Test { path: "src/test/run-fail/pretty", mode: "pretty", suite: "run-fail" },
415417
Test { path: "src/test/run-pass-valgrind/pretty", mode: "pretty", suite: "run-pass-valgrind" },
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
#![crate_name="anonexternmod"]
12+
#![feature(libc)]
13+
14+
extern crate libc;
15+
16+
#[link(name = "rust_test_helpers", kind = "static")]
17+
extern {
18+
pub fn rust_get_test_int() -> libc::intptr_t;
19+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// Test library crate for cross-crate usages of traits inheriting
12+
// from the builtin kinds. Mostly tests metadata correctness.
13+
14+
#![crate_type="lib"]
15+
16+
pub trait RequiresShare : Sync { }
17+
pub trait RequiresRequiresShareAndSend : RequiresShare + Send { }
18+
pub trait RequiresCopy : Copy { }
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)