Skip to content

Commit 08e69e0

Browse files
committed
case => mem::@scopen() + ars
1 parent 08e9ec0 commit 08e69e0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/c3tools/codefmt/c3fmt_corpus/functions.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,3 +527,16 @@ fn int foo(int x) => {1, 2, 3};
527527
--------------------------------------------------------------------------------
528528
// ok
529529
fn int foo(int x) => { 1, 2, 3 };
530+
================================================================================
531+
fn_lambda_scope_with_params
532+
================================================================================
533+
fn void shared_mutex() @test => mem::@scoped(&allocator::LIBC_ALLOCATOR)
534+
{
535+
return string::tformat("%d", x).len;
536+
}
537+
--------------------------------------------------------------------------------
538+
fn void shared_mutex() @test
539+
=> mem::@scoped(&allocator::LIBC_ALLOCATOR)
540+
{
541+
return string::tformat("%d", x).len;
542+
}

0 commit comments

Comments
 (0)