Files
c3c/test/test_suite/initializer_lists/disallowed_lists.c3
2021-11-16 17:46:44 +01:00

8 lines
298 B
C

fn void test()
{
char* hello = "123";
char[] 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
}