mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
18 lines
369 B
Plaintext
18 lines
369 B
Plaintext
module test;
|
|
import std;
|
|
|
|
fn void main()
|
|
{
|
|
String $a = "hello";
|
|
char[] $b = { 'a', 'b' };
|
|
var $c = $a +++ $b;
|
|
String y = $c;
|
|
char[3] $bytes = x'0103ff';
|
|
var $d = $bytes +++ $b;
|
|
char[5] z = $d;
|
|
}
|
|
|
|
/* #expect: test.ll
|
|
|
|
@.str = private unnamed_addr constant [8 x i8] c"helloab\00", align 1
|
|
@.bytes = private unnamed_addr constant [6 x i8] c"\01\03\FFab\00", align 1 |