Complete transition to fn. Introduce global/threadlocal

This commit is contained in:
Christoffer Lerno
2021-11-16 17:19:12 +01:00
committed by Christoffer Lerno
parent e2621617f1
commit b52b42d4da
331 changed files with 1279 additions and 1261 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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;