Skip to content

Commit ebe8337

Browse files
committed
Added array tests.
1 parent d65412a commit ebe8337

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/test/SemaCXX/type-traits-unsatisfied-diags.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,6 +900,8 @@ namespace is_aggregate {
900900
// expected-note@-1 {{'S6' is not aggregate}} \
901901
// expected-note@#ag-S6 {{'S6' defined here}}
902902

903+
static_assert(__is_aggregate(S6[]));
904+
903905
struct B7 {};
904906

905907
struct S7 : virtual B7 { // #ag-S7
@@ -915,4 +917,6 @@ namespace is_aggregate {
915917
// expected-note@-1 {{because it has a virtual base}} \
916918
// expected-note@-1 {{'S7' is not aggregate}} \
917919
// expected-note@#ag-S7 {{'S7' defined here}}
920+
921+
static_assert(__is_aggregate(S7[10]));
918922
}

0 commit comments

Comments
 (0)