Files
c3c/test/test_suite/initializer_lists/disallowed_lists.c3
Christoffer Lerno 43dc2d650c Use "String" consistently for "char[]" (#694)
Use "String" consistently for "char[]". Fix win32 return value.
2023-01-07 22:50:33 +01:00

8 lines
298 B
C

fn void test()
{
char* hello = "123";
String a = { '1', '2', '3' };
char[*] b = { '1', '2', '3' };
char[3] c = { '1', '2', '3' };
char* d = { '1', '2', '3' }; // #error: Pointers cannot be initialized using an initializer list, instead you need to take the address of an array
}