Skip to content

Commit 8a933e5

Browse files
author
Théo De Magalhaes
committed
test: added empty struct in tests
1 parent c2d3f39 commit 8a933e5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/test/SemaCXX/windows-Wpadded.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,14 @@ struct __attribute__((ms_struct)) StructWithUnion { // expected-warning {{paddin
3232
short i;
3333
};
3434

35+
struct __attribute__((ms_struct)) EmptyStruct {
36+
37+
};
38+
3539
int main() {
3640
Foo f;
3741
AlignedStruct a;
3842
Derived d;
3943
StructWithUnion swu;
44+
EmptyStruct e;
4045
}

0 commit comments

Comments
 (0)