forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Clang][AST] Fix PackIndexingExpr AST printout (llvm#117947)
Fixes llvm#116486 Also added a test
- Loading branch information
1 parent
9b5b3ed
commit 18760ce
Showing
3 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// RUN: %clang_cc1 -ast-print -std=c++2c %s | FileCheck %s | ||
|
||
template <class... T, unsigned N> | ||
auto foo(T ...params) { | ||
return params...[N]; | ||
} | ||
|
||
// CHECK: template <class ...T, unsigned int N> auto foo(T ...params) { | ||
// CHECK-NEXT: return params...[N]; |