mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Adding $$reverse. Bump to 0.3.45
This commit is contained in:
committed by
Christoffer Lerno
parent
4d27150952
commit
c8166f6fdb
14
test/test_suite/builtins/reverse_builtin.c3t
Normal file
14
test/test_suite/builtins/reverse_builtin.c3t
Normal file
@@ -0,0 +1,14 @@
|
||||
// #target: macos-x64
|
||||
|
||||
module test;
|
||||
import std::io;
|
||||
|
||||
fn void main()
|
||||
{
|
||||
int[<4>] a = { 1, -3, 5, -7 };
|
||||
io::printfln("%s", $$reverse(a));
|
||||
}
|
||||
|
||||
/* #expect: test.ll
|
||||
|
||||
%reverse = shufflevector <4 x i32> %3, <4 x i32> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
|
||||
Reference in New Issue
Block a user