mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
19 lines
321 B
Plaintext
19 lines
321 B
Plaintext
fn void test1()
|
|
{
|
|
int myInt = 1;
|
|
int* p1 = myInt; // #error: integer smaller
|
|
}
|
|
|
|
fn void test2()
|
|
{
|
|
uint myUInt = 1;
|
|
int* p2 = myUInt; // #error: integer smaller
|
|
}
|
|
|
|
fn void test3()
|
|
{
|
|
uint myUInt = 1;
|
|
int* p2 = (int*)(myUInt); // #error: integer smaller
|
|
}
|
|
|