Skip to content

Commit 2342f7a

Browse files
committed
Tweak naming in the test to keep the distinction between anonymous and unnamed records.
1 parent 00dd5fd commit 2342f7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/C/C23/n3037.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,13 +402,13 @@ void nontag_both_in_params(struct { int i; } Arg1, struct { int i; } Arg2) {
402402
_Static_assert(0 == _Generic(__typeof__(Arg1), __typeof__(Arg2) : 1, default : 0)); // both-warning {{passing a type argument as the first operand to '_Generic' is a C2y extension}}
403403
}
404404

405-
struct InnerAnonStruct {
405+
struct InnerUnnamedStruct {
406406
struct {
407407
int i;
408408
} untagged;
409-
} inner_anon_tagged;
409+
} inner_unnamed_tagged;
410410

411-
_Static_assert(0 == _Generic(inner_anon_tagged.untagged, struct { int i; } : 1, default : 0));
411+
_Static_assert(0 == _Generic(inner_unnamed_tagged.untagged, struct { int i; } : 1, default : 0));
412412

413413
// Test the same thing with enumerations (test for unions is omitted because
414414
// unions and structures are both RecordDecl objects, whereas EnumDecl is not).

0 commit comments

Comments
 (0)