r348093 - Add dump tests for ArrayInitLoopExpr and ArrayInitIndexExpr
Stephen Kelly via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 2 08:36:24 PST 2018
Author: steveire
Date: Sun Dec 2 08:36:23 2018
New Revision: 348093
URL: http://llvm.org/viewvc/llvm-project?rev=348093&view=rev
Log:
Add dump tests for ArrayInitLoopExpr and ArrayInitIndexExpr
Added:
cfe/trunk/test/AST/ast-dump-array.cpp
Added: cfe/trunk/test/AST/ast-dump-array.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/AST/ast-dump-array.cpp?rev=348093&view=auto
==============================================================================
--- cfe/trunk/test/AST/ast-dump-array.cpp (added)
+++ cfe/trunk/test/AST/ast-dump-array.cpp Sun Dec 2 08:36:23 2018
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump %s | FileCheck -strict-whitespace %s
+
+void testArrayInitExpr()
+{
+ int a[10];
+ auto l = [a]{
+ };
+ // CHECK: |-ArrayInitLoopExpr 0x{{[^ ]*}} <col:15> 'int [10]'
+ // CHECK: | `-ArrayInitIndexExpr 0x{{[^ ]*}} <<invalid sloc>> 'unsigned long'
+}
More information about the cfe-commits
mailing list