[clang] 54eb425 - [clang][NFC] Also test for serialization in test/AST/ast-dump-comment.cpp
Bruno Ricci via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 3 06:00:42 PDT 2020
Author: Bruno Ricci
Date: 2020-07-03T13:59:23+01:00
New Revision: 54eb42537e8c566fa15046bc0302bf5390d26f08
URL: https://github.com/llvm/llvm-project/commit/54eb42537e8c566fa15046bc0302bf5390d26f08
DIFF: https://github.com/llvm/llvm-project/commit/54eb42537e8c566fa15046bc0302bf5390d26f08.diff
LOG: [clang][NFC] Also test for serialization in test/AST/ast-dump-comment.cpp
Added:
Modified:
clang/test/AST/ast-dump-comment.cpp
Removed:
################################################################################
diff --git a/clang/test/AST/ast-dump-comment.cpp b/clang/test/AST/ast-dump-comment.cpp
index da73483f041a..8df0416cd092 100644
--- a/clang/test/AST/ast-dump-comment.cpp
+++ b/clang/test/AST/ast-dump-comment.cpp
@@ -1,4 +1,12 @@
-// RUN: %clang_cc1 -Wdocumentation -ast-dump -ast-dump-filter Test %s | FileCheck -strict-whitespace %s
+// Without serialization:
+// RUN: %clang_cc1 -Wdocumentation -ast-dump -ast-dump-filter Test %s \
+// RUN: | FileCheck -strict-whitespace %s
+//
+// With serialization:
+// RUN: %clang_cc1 -Wdocumentation -emit-pch -o %t %s
+// RUN: %clang_cc1 -x c++ -Wdocumentation -include-pch %t -ast-dump-all -ast-dump-filter Test /dev/null \
+// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
+// RUN: | FileCheck --strict-whitespace %s
/// Aaa
int TestLocation;
More information about the cfe-commits
mailing list