From cf2dff2b1e3fa55fa5415d524200070d0d7aacfe Mon Sep 17 00:00:00 2001 From: Albert Larsan <74931857+albertlarsan68@users.noreply.github.com> Date: Thu, 5 Jan 2023 09:13:28 +0100 Subject: Move /src/test to /tests --- tests/ui/proc-macro/debug/dump-debug-span-debug.rs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/ui/proc-macro/debug/dump-debug-span-debug.rs (limited to 'tests/ui/proc-macro/debug/dump-debug-span-debug.rs') diff --git a/tests/ui/proc-macro/debug/dump-debug-span-debug.rs b/tests/ui/proc-macro/debug/dump-debug-span-debug.rs new file mode 100644 index 00000000000..102bd6b7b17 --- /dev/null +++ b/tests/ui/proc-macro/debug/dump-debug-span-debug.rs @@ -0,0 +1,46 @@ +// run-pass +// aux-build:macro-dump-debug.rs +// compile-flags: -Z span-debug + + +extern crate macro_dump_debug; +use macro_dump_debug::dump_debug; + +dump_debug! { + ident // ident + r#ident // raw ident + , // alone punct + && // joint punct, two-char op + ||> // joint punct, two-char op + one-char op + ||<< // joint punct, two-char op + two-char op + ..= // joint punct, three-char op + <<=! // joint punct, three-char op + one-char-op + () // empty group + [_] // nonempty group + + // unsuffixed literals + 0 + 1.0 + "S" + b"B" + r"R" + r##"R"## + br"BR" + br##"BR"## + 'C' + b'B' + + // suffixed literals + 0q + 1.0q + "S"q + b"B"q + r"R"q + r##"R"##q + br"BR"q + br##"BR"##q + 'C'q + b'B'q +} + +fn main() {} -- cgit 1.4.1-3-g733a5