Mercurial > hg > CbC > CbC_llvm
diff mlir/test/Dialect/LLVMIR/request-c-wrappers.mlir @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mlir/test/Dialect/LLVMIR/request-c-wrappers.mlir Wed Nov 09 17:45:10 2022 +0900 @@ -0,0 +1,9 @@ +// RUN: mlir-opt %s -llvm-request-c-wrappers | FileCheck %s + +// CHECK: func.func private @foo() attributes {llvm.emit_c_interface} +func.func private @foo() + +// CHECK: func.func @bar() attributes {llvm.emit_c_interface} +func.func @bar() { + return +}