r348241 - Extend test for DependentSizedArrayType
Stephen Kelly via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 4 01:53:36 PST 2018
Author: steveire
Date: Tue Dec 4 01:53:36 2018
New Revision: 348241
URL: http://llvm.org/viewvc/llvm-project?rev=348241&view=rev
Log:
Extend test for DependentSizedArrayType
Use a using declaration to force the type to appear in the -ast-dump
output.
Modified:
cfe/trunk/test/AST/ast-dump-array.cpp
Modified: cfe/trunk/test/AST/ast-dump-array.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-array.cpp?rev=348241&r1=348240&r2=348241&view=diff
==============================================================================
--- cfe/trunk/test/AST/ast-dump-array.cpp (original)
+++ cfe/trunk/test/AST/ast-dump-array.cpp Tue Dec 4 01:53:36 2018
@@ -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>
+};
+
More information about the cfe-commits
mailing list