[clang][NFC] Also test for serialization in test/AST/ast-dump-comment.cpp
authorBruno Ricci <riccibrun@gmail.com>
Fri, 3 Jul 2020 12:58:19 +0000 (13:58 +0100)
committerBruno Ricci <riccibrun@gmail.com>
Fri, 3 Jul 2020 12:59:23 +0000 (13:59 +0100)
clang/test/AST/ast-dump-comment.cpp

index da73483..8df0416 100644 (file)
@@ -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;