test: Add missing fn test cases to run-pass/item-attributes.rs
Issue #487
This commit is contained in:
parent
a5bca7df88
commit
95bdedf12d
1 changed files with 13 additions and 6 deletions
|
@ -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"]
|
||||
|
@ -45,4 +52,4 @@ mod test_multi_attr_outer {
|
|||
obj o() { }
|
||||
}
|
||||
|
||||
fn main() { }
|
||||
fn main() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue