2011-06-14 17:39:23 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
// xfail-stage0
|
2011-06-14 20:22:15 -05:00
|
|
|
mod test_single_attr_outer {
|
2011-06-14 18:29:46 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
const int x = 10;
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
mod mod1 { }
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
native "rust" mod rustrt { }
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
type t = obj { };
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-14 17:39:23 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
obj o() { }
|
2011-06-14 18:29:46 -05:00
|
|
|
}
|
|
|
|
|
2011-06-14 20:22:15 -05:00
|
|
|
mod test_multi_attr_outer {
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
const int x = 10;
|
2011-06-14 18:29:46 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
mod mod1 { }
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
native "rust" mod rustrt { }
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
type t = obj { };
|
2011-06-14 20:22:15 -05:00
|
|
|
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
obj o() { }
|
2011-06-14 20:22:15 -05:00
|
|
|
}
|
2011-06-14 18:29:46 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
fn main() { }
|