2012-01-05 20:16:42 -06:00
|
|
|
// error-pattern:runned an unexported test
|
|
|
|
// compile-flags:--test
|
|
|
|
|
2012-09-11 19:46:20 -05:00
|
|
|
extern mod std;
|
2012-01-05 20:16:42 -06:00
|
|
|
|
|
|
|
mod m {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-01-05 20:16:42 -06:00
|
|
|
export exported;
|
|
|
|
|
|
|
|
fn exported() { }
|
|
|
|
|
|
|
|
#[test]
|
2012-07-14 00:57:48 -05:00
|
|
|
fn unexported() { fail ~"runned an unexported test"; }
|
2012-01-05 20:16:42 -06:00
|
|
|
}
|