diff options
author | Stephen Kelly <steveire@gmail.com> | 2018-12-04 09:53:36 +0000 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2018-12-04 09:53:36 +0000 |
commit | 0fa7bf099dc5572c757639ea8667310927daa374 (patch) | |
tree | 909b84d88cd2672c69375e0528047b8653f3ebab | |
parent | f335188925b923dc68243f2b2722e5cc5b259e1b (diff) | |
download | bcm5719-llvm-0fa7bf099dc5572c757639ea8667310927daa374.tar.gz bcm5719-llvm-0fa7bf099dc5572c757639ea8667310927daa374.zip |
Extend test for DependentSizedArrayType
Use a using declaration to force the type to appear in the -ast-dump
output.
llvm-svn: 348241
-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> +}; + |