test: Add a compile-fail test for attribute/syntax parsing

I don't currently know how to deal with syntax extensions that appear betweeen
an attribute and an item, so this test captures the error that occurs.

Issue 
This commit is contained in:
Brian Anderson 2011-06-15 14:00:27 -07:00
parent 2772a29e92
commit 14c5900a70

@ -0,0 +1,8 @@
// xfail-stage0
// error-pattern:expecting \[, found fmt
// Don't know how to deal with a syntax extension appearing after an
// item attribute. Probably could use a better error message.
#[foo = "bar"]
#fmt("baz")
fn main() { }