"Public by default"

This commit is contained in:
Christoffer Lerno
2021-05-28 15:44:36 +02:00
committed by Christoffer Lerno
parent 13e95553bb
commit 97ac957cb7
40 changed files with 397 additions and 222 deletions

View File

@@ -2,11 +2,11 @@
module const_pointer;
double foo = 17;
double bar = 12.0;
float xx = 12.0;
static double foo = 17;
static double bar = 12.0;
static float xx = 12.0;
void*[3] data = { &foo, &bar, &xx };
static void*[3] data = { &foo, &bar, &xx };
// #expect: const_pointer.ll

View File

@@ -1,6 +1,6 @@
module pointer_index;
public func void test1(int* x)
func void test1(int* x)
{
int a = x[0];
int b = *x;
@@ -8,14 +8,14 @@ public func void test1(int* x)
int d = x[-1];
}
public func void test2(char* x)
func void test2(char* x)
{
char a = x[0];
char b = *x;
char c = x[1];
}
public func void test3(long* x)
func void test3(long* x)
{
long a = x[0];
long b = *x;