Skip to content

Commit b85e5b4

Browse files
committed
1 parent 60972a8 commit b85e5b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/C/C2y/n3346.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ void test2(void) {
4949
char str3[] = u8"string literal";
5050
char str4[] = { u8"string literal" };
5151

52-
int str5[] = "this doesn't work"; // expected-error {{array initializer must be an initializer list}}
53-
int str6[] = { "this also doesn't work" }; // expected-error {{incompatible pointer to integer conversion initializing 'int' with an expression of type 'char[23]'}}
52+
float str5[] = "this doesn't work"; // expected-error {{array initializer must be an initializer list}}
53+
float str6[] = { "this also doesn't work" }; // expected-error {{initializing 'float' with an expression of incompatible type 'char[23]'}}
5454

5555
wchar_t str7[] = L"string literal";
5656
wchar_t str8[] = { L"string literal" };

0 commit comments

Comments
 (0)