1 // RUN: mlir-opt -allow-unregistered-dialect %s -split-input-file -mlir-print-debuginfo -mlir-print-local-scope | FileCheck %s
9 // CHECK: module attributes {foo.attr = true} {
10 module attributes {foo.attr = true} {
17 // CHECK-NEXT: "foo.result_op"() : () -> i32
18 %result = "foo.result_op"() : () -> i32
23 // Check that a top-level module is always created, with location info.
25 // CHECK-NEXT: } loc({{.*}}module-op.mlir{{.*}})
29 // Check that the top-level module can be defined via a single module operation.
31 // CHECK-NOT: module {
37 // Check that the implicit top-level module is also a name scope for SSA
38 // values. This should not crash.
40 // CHECK: %{{.*}} = "op"
42 %0 = "op"() : () -> i32
46 // CHECK-LABEL: module @foo
47 // CHECK-NOT: attributes
51 // CHECK: module @bar attributes
52 module @bar attributes {foo.bar} {
59 // expected-error@below {{expects at most one data layout attribute}}
60 // expected-note@below {{'test.another_attribute' is a data layout attribute}}
61 // expected-note@below {{'test.random_attribute' is a data layout attribute}}
62 module attributes { test.random_attribute = #dlti.dl_spec<>,
63 test.another_attribute = #dlti.dl_spec<>} {