From: Stephen Kelly Date: Tue, 4 Dec 2018 09:53:36 +0000 (+0000) Subject: Extend test for DependentSizedArrayType X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=356705aa60b7e589eb00b1a5658d85c338b2102e;p=clang Extend test for DependentSizedArrayType Use a using declaration to force the type to appear in the -ast-dump output. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@348241 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/AST/ast-dump-array.cpp b/test/AST/ast-dump-array.cpp index 64073bf224..bfea13534a 100644 --- a/test/AST/ast-dump-array.cpp +++ b/test/AST/ast-dump-array.cpp @@ -8,3 +8,12 @@ void testArrayInitExpr() // CHECK: |-ArrayInitLoopExpr 0x{{[^ ]*}} 'int [10]' // CHECK: | `-ArrayInitIndexExpr 0x{{[^ ]*}} <> 'unsigned long' } + +template +class array { + T data[Size]; + + using array_T_size = T[Size]; + // CHECK: `-DependentSizedArrayType 0x{{[^ ]*}} 'T [Size]' dependent +}; +