Files
c3c/test/test_suite/expressions/pointer_conv_error.c3
Christoffer Lerno 37bb16cca1 Updated cast code.
2023-09-12 12:48:52 +02:00

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
}