]> granicus.if.org Git - clang/commitdiff
[ASTDump] Add test for current AST dump behavior
authorStephen Kelly <steveire@gmail.com>
Fri, 18 Jan 2019 22:15:13 +0000 (22:15 +0000)
committerStephen Kelly <steveire@gmail.com>
Fri, 18 Jan 2019 22:15:13 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351606 91177308-0d34-0410-b5e6-96231b3b80d8

test/AST/ast-dump-undeserialized.cpp [new file with mode: 0644]

diff --git a/test/AST/ast-dump-undeserialized.cpp b/test/AST/ast-dump-undeserialized.cpp
new file mode 100644 (file)
index 0000000..12fccf4
--- /dev/null
@@ -0,0 +1,4 @@
+// RUN: %clang_cc1 %s -chain-include %s -ast-dump | FileCheck -strict-whitespace %s
+
+// CHECK: TranslationUnitDecl 0x{{.+}} <<invalid sloc>> <invalid sloc>
+// CHECK: `-<undeserialized declarations>