diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-01-05 17:30:00 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-01-05 17:31:57 -0800 |
| commit | c2c497ff53596ffcdf713d6aabfbaaf2e50371bf (patch) | |
| tree | 546c56a7c0d763b8c901681d786585f765736fe2 /src/test/compile-fail | |
| parent | a2acb052cae2252e45f09a79ba48a15bb4d2bbd9 (diff) | |
| download | rust-c2c497ff53596ffcdf713d6aabfbaaf2e50371bf.tar.gz rust-c2c497ff53596ffcdf713d6aabfbaaf2e50371bf.zip | |
rustc: Configure out #[test] functions when not testing
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/elided-test.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/compile-fail/elided-test.rs b/src/test/compile-fail/elided-test.rs new file mode 100644 index 00000000000..551eaf06c39 --- /dev/null +++ b/src/test/compile-fail/elided-test.rs @@ -0,0 +1,7 @@ +// error-pattern: main function not found + +// Since we're not compiling a test runner this function should be elided +// and the build will fail because main doesn't exist +#[test] +fn main() { +} \ No newline at end of file |
