Skip to content

Commit 8e72680

Browse files
committed
Fix test failure
1 parent e839e95 commit 8e72680

File tree

1 file changed

+1
-1
lines changed
  • clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard

1 file changed

+1
-1
lines changed

clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ struct X {
141141
union {
142142
int variant_member;
143143
};
144-
struct {
144+
struct { // expected-warning {{anonymous structs are a GNU extension}}
145145
int anonymous_struct_member;
146146
};
147147
int data_member;

0 commit comments

Comments
 (0)