1
Fork 0

test: Add missing fn test cases to run-pass/item-attributes.rs

Issue #487
This commit is contained in:
Brian Anderson 2011-06-15 10:28:11 -07:00
parent a5bca7df88
commit 95bdedf12d

View file

@ -1,14 +1,16 @@
// xfail-stage0 // xfail-stage0
mod test_single_attr_outer { mod test_single_attr_outer {
#[attr = "val"] #[attr = "val"]
const int x = 10; const int x = 10;
#[attr = "val"] #[attr = "val"]
mod mod1 { } fn f() {}
#[attr = "val"]
mod mod1 {
}
#[attr = "val"] #[attr = "val"]
native "rust" mod rustrt { } native "rust" mod rustrt { }
@ -29,7 +31,12 @@ mod test_multi_attr_outer {
#[attr1 = "val"] #[attr1 = "val"]
#[attr2 = "val"] #[attr2 = "val"]
mod mod1 { } fn f() {}
#[attr1 = "val"]
#[attr2 = "val"]
mod mod1 {
}
#[attr1 = "val"] #[attr1 = "val"]
#[attr2 = "val"] #[attr2 = "val"]
@ -45,4 +52,4 @@ mod test_multi_attr_outer {
obj o() { } obj o() { }
} }
fn main() { } fn main() { }