Skip to content

Commit 2d511cd

Browse files
committed
[clang][Interp][NFC] Add missing test diagnostic output
This was left out from llvm@257013e
1 parent 1934e4a commit 2d511cd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

clang/test/AST/Interp/arrays.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,11 @@ namespace LocalVLA {
563563

564564
void f (unsigned int m) {
565565
int e[2][m];
566+
#if __cplusplus >= 202002L
567+
// both-note@-3 {{declared here}}
568+
// both-warning@-3 2{{variable length array}}
569+
// both-note@-4 {{function parameter 'm' with unknown value}}
570+
#endif
566571
e[0][0] = 0;
567572
}
568573
}

0 commit comments

Comments
 (0)