Files
c3c/test/test_suite/initializer_lists/disallowed_lists.c3

8 lines
300 B
C

func 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
}