about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorJohn Clements <clements@racket-lang.org>2013-03-04 17:36:44 -0800
committerJohn Clements <clements@racket-lang.org>2013-03-04 17:41:38 -0800
commitfe08364b3be5463e28650a6ed8cdd203b775208a (patch)
treec2177dae671b6b34ab695a249d661920a5fa4915 /src/test
parenta191babbe56170380c6d9b6a26ebf472b7c5dd37 (diff)
downloadrust-fe08364b3be5463e28650a6ed8cdd203b775208a.tar.gz
rust-fe08364b3be5463e28650a6ed8cdd203b775208a.zip
added test case for macros with separators error message
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/macro-with-seps-err-msg.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/compile-fail/macro-with-seps-err-msg.rs b/src/test/compile-fail/macro-with-seps-err-msg.rs
new file mode 100644
index 00000000000..74c040238ac
--- /dev/null
+++ b/src/test/compile-fail/macro-with-seps-err-msg.rs
@@ -0,0 +1,17 @@
+// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// error-pattern:expected macro name without module separators
+
+fn main() {
+    globnar::brotz!();
+}
+
+