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
mod test_single_attr_outer {
#[attr = "val"]
const int x = 10;
#[attr = "val"]
mod mod1 { }
fn f() {}
#[attr = "val"]
mod mod1 {
}
#[attr = "val"]
native "rust" mod rustrt { }
@ -29,7 +31,12 @@ mod test_multi_attr_outer {
#[attr1 = "val"]
#[attr2 = "val"]
mod mod1 { }
fn f() {}
#[attr1 = "val"]
#[attr2 = "val"]
mod mod1 {
}
#[attr1 = "val"]
#[attr2 = "val"]