We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cea9f4 commit 1734346Copy full SHA for 1734346
mlir/test/Dialect/EmitC/invalid_ops.mlir
@@ -532,6 +532,16 @@ func.func @use_global() {
532
533
// -----
534
535
+emitc.global @myglobal_value : f32
536
+
537
+func.func @use_global() {
538
+ // expected-error @+1 {{'emitc.get_global' op on non-array type expects result type to be an lvalue type for the global @myglobal_value}}
539
+ %0 = emitc.get_global @myglobal_value : !emitc.array<2xf32>
540
+ return
541
+}
542
543
+// -----
544
545
func.func @member(%arg0: !emitc.lvalue<i32>) {
546
// expected-error @+1 {{'emitc.member' op operand #0 must be emitc.lvalue of EmitC opaque type values, but got '!emitc.lvalue<i32>'}}
547
%0 = "emitc.member" (%arg0) {member = "a"} : (!emitc.lvalue<i32>) -> !emitc.lvalue<i32>
0 commit comments