2011-06-15 13:19:50 -05:00
|
|
|
// xfail-stage0
|
2011-06-15 12:28:11 -05:00
|
|
|
|
2011-06-14 20:22:15 -05:00
|
|
|
mod test_single_attr_outer {
|
2011-06-14 18:29:46 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
const int x = 10;
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
2011-06-15 12:28:11 -05:00
|
|
|
fn f() {}
|
|
|
|
|
|
|
|
#[attr = "val"]
|
|
|
|
mod mod1 {
|
|
|
|
}
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
native "rust" mod rustrt { }
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
type t = obj { };
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-14 17:39:23 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr = "val"]
|
|
|
|
obj o() { }
|
2011-06-14 18:29:46 -05:00
|
|
|
}
|
|
|
|
|
2011-06-14 20:22:15 -05:00
|
|
|
mod test_multi_attr_outer {
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
const int x = 10;
|
2011-06-14 18:29:46 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
2011-06-15 12:28:11 -05:00
|
|
|
fn f() {}
|
|
|
|
|
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
mod mod1 {
|
|
|
|
}
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
native "rust" mod rustrt { }
|
2011-06-14 20:22:15 -05:00
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
type t = obj { };
|
2011-06-14 20:22:15 -05:00
|
|
|
|
|
|
|
|
2011-06-15 13:19:50 -05:00
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
obj o() { }
|
2011-06-14 20:22:15 -05:00
|
|
|
}
|
2011-06-14 18:29:46 -05:00
|
|
|
|
2011-06-15 15:27:39 -05:00
|
|
|
mod test_stmt_single_attr_outer {
|
|
|
|
|
|
|
|
fn f() {
|
|
|
|
|
|
|
|
#[attr = "val"]
|
|
|
|
const int x = 10;
|
|
|
|
|
|
|
|
#[attr = "val"]
|
|
|
|
fn f() {}
|
|
|
|
|
|
|
|
/* FIXME: Issue #493
|
|
|
|
#[attr = "val"]
|
|
|
|
mod mod1 {
|
|
|
|
}
|
|
|
|
|
|
|
|
#[attr = "val"]
|
|
|
|
native "rust" mod rustrt {
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#[attr = "val"]
|
|
|
|
type t = obj { };
|
|
|
|
|
|
|
|
#[attr = "val"]
|
|
|
|
obj o() { }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod test_stmt_multi_attr_outer {
|
|
|
|
|
|
|
|
fn f() {
|
|
|
|
|
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
const int x = 10;
|
|
|
|
|
|
|
|
#[attr1 = "val"]
|
|
|
|
#[attr2 = "val"]
|
|
|
|
fn f() {}
|
|
|
|
|
|
|
|
/* FIXME: Issue #493
|
|
|
|
#[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() {
|
|
|
|
}
|