diff options
-rw-r--r-- | clang/test/AST/ast-dump-array.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/AST/ast-dump-array.cpp b/clang/test/AST/ast-dump-array.cpp index 64073bf2244..bfea13534a5 100644 --- a/clang/test/AST/ast-dump-array.cpp +++ b/clang/test/AST/ast-dump-array.cpp @@ -8,3 +8,12 @@ void testArrayInitExpr() // CHECK: |-ArrayInitLoopExpr 0x{{[^ ]*}} <col:15> 'int [10]' // CHECK: | `-ArrayInitIndexExpr 0x{{[^ ]*}} <<invalid sloc>> 'unsigned long' } + +template<typename T, int Size> +class array { + T data[Size]; + + using array_T_size = T[Size]; + // CHECK: `-DependentSizedArrayType 0x{{[^ ]*}} 'T [Size]' dependent <col:25, col:30> +}; + |