[Mlir-commits] [mlir] [mlir][EmitC] Add `verbatim` op (PR #79584)

Marius Brehler llvmlistbot at llvm.org
Fri Jan 26 04:49:10 PST 2024


================
@@ -289,3 +289,11 @@ func.func @test_expression_multiple_results(%arg0: i32) -> i32 {
   }
   return %r : i32
 }
+
+// -----
+
+func.func @verbatim_trailing_semicolon() {
+    // expected-error @+1 {{'emitc.verbatim' op ';' not allowed as the last character, use the `trailing_semicolon` attribute instead}}
+    emitc.verbatim "typedef int32_t i32;"
+    return
+}
----------------
marbre wrote:

Missing newline at EOF.

https://github.com/llvm/llvm-project/pull/79584


More information about the Mlir-commits mailing list