mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Complete transition to fn. Introduce global/threadlocal
This commit is contained in:
committed by
Christoffer Lerno
parent
e2621617f1
commit
b52b42d4da
@@ -1,8 +1,8 @@
|
||||
char[*] foob = x"a0";
|
||||
char[*] fooz = x"00aabbccddeeff";
|
||||
char[*] fooy = x'dead beef';
|
||||
char[*] foow = x"4549234d e d";
|
||||
char[*] foo64 = b64"SGVsbG8gV29ybGQ=";
|
||||
global char[*] foob = x"a0";
|
||||
global char[*] fooz = x"00aabbccddeeff";
|
||||
global char[*] fooy = x'dead beef';
|
||||
global char[*] foow = x"4549234d e d";
|
||||
global char[*] foo64 = b64"SGVsbG8gV29ybGQ=";
|
||||
|
||||
// #expect: byte_literals.ll
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
// #file: file1.c3
|
||||
module test;
|
||||
|
||||
char a = ' ';
|
||||
char b = '\r';
|
||||
char c = '\t';
|
||||
char d = '\n';
|
||||
char e = '\0';
|
||||
char f = '\'';
|
||||
char g = '"';
|
||||
char h = '\\';
|
||||
char i = '\e';
|
||||
global char a = ' ';
|
||||
global char b = '\r';
|
||||
global char c = '\t';
|
||||
global char d = '\n';
|
||||
global char e = '\0';
|
||||
global char f = '\'';
|
||||
global char g = '"';
|
||||
global char h = '\\';
|
||||
global char i = '\e';
|
||||
|
||||
// #expect: test.ll
|
||||
|
||||
|
||||
@@ -5,13 +5,13 @@ private const uint DD = FOO;
|
||||
|
||||
private const FOO = ~(uint)(0);
|
||||
|
||||
private uint x = AA;
|
||||
private uint z = CC;
|
||||
private char w = (char)(FOO);
|
||||
private ushort v = (ushort)(FOO);
|
||||
private uint z2 = DD;
|
||||
private global uint x = AA;
|
||||
private global uint z = CC;
|
||||
private global char w = (char)(FOO);
|
||||
private global ushort v = (ushort)(FOO);
|
||||
private global uint z2 = DD;
|
||||
|
||||
func void test()
|
||||
fn void test()
|
||||
{
|
||||
int xx = FOO;
|
||||
uint* yy = &&FOO;
|
||||
|
||||
Reference in New Issue
Block a user