-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dialects: (builtin) fix formatting of module printing with attributes (…
…#3789) Instead of printing two spaces, print one.
- Loading branch information
1 parent
6fd4792
commit 35d5b6b
Showing
2 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
// RUN: XDSL_ROUNDTRIP | ||
// RUN: xdsl-opt %s --allow-unregistered-dialect | filecheck %s | ||
// RUN: xdsl-opt %s --allow-unregistered-dialect | filecheck --strict-whitespace %s | ||
|
||
builtin.module { | ||
// CHECK: builtin.module { | ||
builtin.module {} | ||
// CHECK: builtin.module { | ||
// CHECK-NEXT: } | ||
builtin.module attributes {a = "foo", b = "bar", unit} {} | ||
// CHECK-NEXT: builtin.module attributes {a = "foo", b = "bar", unit} { | ||
// CHECK-NEXT: } | ||
builtin.module @moduleName {} | ||
// CHECK-NEXT: builtin.module @moduleName { | ||
// CHECK-NEXT: } | ||
builtin.module @otherModule attributes {dialect.attr} {} | ||
// CHECK-NEXT: builtin.module @otherModule attributes {dialect.attr} { | ||
// CHECK-NEXT: } | ||
module {} | ||
// CHECK-NEXT: builtin.module { | ||
// CHECK-NEXT: } | ||
} | ||
// CHECK: } | ||
// CHECK:builtin.module { | ||
builtin.module { | ||
|
||
// CHECK-NEXT: builtin.module { | ||
// CHECK-NEXT: } | ||
builtin.module {} | ||
|
||
// CHECK-NEXT: builtin.module attributes {a = "foo", b = "bar", unit} { | ||
// CHECK-NEXT: } | ||
builtin.module attributes {a = "foo", b = "bar", unit} {} | ||
|
||
// CHECK-NEXT: builtin.module @moduleName { | ||
// CHECK-NEXT: } | ||
builtin.module @moduleName {} | ||
|
||
// CHECK-NEXT: builtin.module @otherModule attributes {dialect.attr} { | ||
// CHECK-NEXT: } | ||
builtin.module @otherModule attributes {dialect.attr} {} | ||
|
||
// CHECK-NEXT: builtin.module { | ||
// CHECK-NEXT: } | ||
module {} | ||
|
||
// CHECK:} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters