summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-4152.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-4152.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-4152.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-4152.rs b/src/tools/rustfmt/tests/target/issue-4152.rs
new file mode 100644
index 000000000..80f9ff5e3
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-4152.rs
@@ -0,0 +1,18 @@
+// rustfmt-hard_tabs: true
+
+macro_rules! bit {
+ ($bool:expr) => {
+ if $bool {
+ 1;
+ 1
+ } else {
+ 0;
+ 0
+ }
+ };
+}
+macro_rules! add_one {
+ ($vec:expr) => {{
+ $vec.push(1);
+ }};
+}