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,21 +1,51 @@
// xfail-stage0
#[attr = "val"]
const int x = 10;
mod test_single_attr_outer {
#[attr = "val"]
const int x = 10;
#[attr = "val"]
mod mod1 {
}
#[attr = "val"]
native "rust" mod rustrt {
}
#[attr = "val"]
type t = obj { };
#[attr = "val"]
obj o() { }
#[attr = "val"]
mod mod1 {
}
#[attr = "val"]
native "rust" mod rustrt {
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() { }
}
#[attr = "val"]
type t = obj { };
#[attr = "val"]
obj o() { }
fn main() {
}