Files
c3c/test/test_suite/cast/cast_parse_fails.c3
2025-02-18 18:53:30 +01:00

14 lines
261 B
Plaintext

struct Foo { int a; }
fn void test2()
{
int x = (int){ 32 }; // #error: 'int' with a non-empty initializer list
}
fn void test3()
{
int x = int(32); // #error: A type cannot be followed by (), if you intended a cast, use '(type) expression'
}