Skip to content

Commit 04f25ba

Browse files
committed
Fixed test case with typeof
1 parent ecb0edd commit 04f25ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/C/C23/n3006.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void constexpr_complience_test(void) {
8383
void builtin_functions_test(void) {
8484
constexpr typeof(struct s *) x = 0;
8585
auto so = sizeof(struct S {});
86-
auto to = typeof(struct S {}); // expected-error {{expected expression}}
86+
auto to = (typeof(struct S {})){};
8787
}
8888

8989
void misc_test(void) {

0 commit comments

Comments
 (0)