test: Add tests for multiple outer attributes on items

Issue #487
This commit is contained in:
Brian Anderson 2011-06-14 18:22:15 -07:00
parent 1c9277e0d3
commit 6c6d7c3916

View File

@ -1,5 +1,7 @@
// xfail-stage0
mod test_single_attr_outer {
#[attr = "val"]
const int x = 10;
@ -17,5 +19,33 @@ type t = obj { };
#[attr = "val"]
obj o() { }
}
mod test_multi_attr_outer {
#[attr1 = "val"]
#[attr2 = "val"]
const int x = 10;
#[attr1 = "val"]
#[attr2 = "val"]
mod mod1 {
}
#[attr1 = "val"]
#[attr2 = "val"]
native "rust" mod rustrt {
}
#[attr1 = "val"]
#[attr2 = "val"]
type t = obj { };
#[attr1 = "val"]
#[attr2 = "val"]
obj o() { }
}
fn main() {
}