mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Broken cast from fault to array pointer #2778.
This commit is contained in:
9
test/test_suite/bitstruct/fault_to_arrptr.c3
Normal file
9
test/test_suite/bitstruct/fault_to_arrptr.c3
Normal file
@@ -0,0 +1,9 @@
|
||||
// #target: linux-x64
|
||||
import libc;
|
||||
fn void a()
|
||||
{
|
||||
fault x = f; // #error: 'f' could not be found
|
||||
ulong z = (ulong); // #error: Implicitly casting 'typeid' to 'ulong' is not permitted
|
||||
z = (Sigset_t*)(x); // #error: Implicitly casting 'Sigset_t*' (ulong[16]*) to 'ulong'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user