From 03dc3b8972f460e40d0b75fc3207cae9fe4f60da Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 22 Jul 2022 17:54:22 +0530 Subject: feat(ops): V8 Fast Calls (#15122) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- ops/tests/compile_fail/unsupported.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 ops/tests/compile_fail/unsupported.rs (limited to 'ops/tests/compile_fail/unsupported.rs') diff --git a/ops/tests/compile_fail/unsupported.rs b/ops/tests/compile_fail/unsupported.rs new file mode 100644 index 000000000..1c4d6407a --- /dev/null +++ b/ops/tests/compile_fail/unsupported.rs @@ -0,0 +1,27 @@ +// Copyright 2019-2020 the Deno authors. All rights reserved. MIT license. + +use deno_ops::op; + +#[op(fast)] +fn op_result_return(a: i32, b: i32) -> Result<(), ()> { + a + b +} + +#[op(fast)] +fn op_u8_arg(a: u8, b: u8) { + // +} + +#[op(fast)] +fn op_u16_arg(a: u16, b: u16) { + // +} + +#[op(fast)] +async fn op_async_fn(a: i32, b: i32) -> i32 { + a + b +} + +fn main() { + // pass +} -- cgit v1.2.3