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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits