diff clang/test/AST/template-implicit-vars.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
line wrap: on
line diff
--- a/clang/test/AST/template-implicit-vars.cpp	Mon May 25 11:55:54 2020 +0900
+++ b/clang/test/AST/template-implicit-vars.cpp	Tue Jun 08 06:07:14 2021 +0900
@@ -1,4 +1,12 @@
+// Test without serialization:
 // RUN: %clang_cc1 -fsyntax-only %s -std=c++11 -ast-dump | FileCheck %s
+//
+// Test with serialization:
+// RUN: %clang_cc1 -std=c++11 -emit-pch -o %t %s
+// RUN: %clang_cc1 -x c++ -std=c++11 -include-pch %t -ast-dump-all /dev/null \
+// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
+// RUN: | FileCheck %s
+
 template<typename T>
 void f(T t) {
   T a[] = {t};