test: Add a test for distinguishing attributes from extensions

Issue #487
This commit is contained in:
Brian Anderson 2011-06-21 11:36:41 -07:00
parent c109c9dd73
commit 34040be580

View File

@ -161,6 +161,18 @@ mod test_attr_inner_then_outer_multi {
}
}
mod test_distinguish_syntax_ext {
use std;
fn f() {
#fmt("test%s", "s");
#[attr = "val"]
fn g() {
}
}
}
fn main() {
}