Files
c3c/test/test_suite/expressions/pointer_conv_error.c3
Christoffer Lerno f46697bc54 Updated casts (#684)
Cast code rework. Remove llvm_set_bool and friends.
2022-12-27 14:16:47 +01:00

19 lines
292 B
C

fn void test1()
{
int myInt = 1;
int* p1 = myInt; // #error: 'int*'
}
fn void test2()
{
uint myUInt = 1;
int* p2 = myUInt; // #error: 'int*'
}
fn void test3()
{
uint myUInt = 1;
int* p2 = (int*)(myUInt); // #error: iptr
}