diff clang/test/AST/multistep-explicit-cast.c @ 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/multistep-explicit-cast.c	Mon May 25 11:55:54 2020 +0900
+++ b/clang/test/AST/multistep-explicit-cast.c	Tue Jun 08 06:07:14 2021 +0900
@@ -1,4 +1,11 @@
+// Test without serialization:
 // RUN: %clang_cc1 -triple x86_64-linux-gnu -fsyntax-only -ast-dump %s | FileCheck %s
+//
+// Test with serialization:
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-pch -o %t %s
+// RUN: %clang_cc1 -x c -triple x86_64-linux-gnu -include-pch %t -ast-dump-all /dev/null \
+// RUN: | sed -e "s/ <undeserialized declarations>//" -e "s/ imported//" \
+// RUN: | FileCheck %s
 
 // We are checking that implicit casts don't get marked with 'part_of_explicit_cast',
 // while in explicit casts, the implicitly-inserted implicit casts are marked with 'part_of_explicit_cast'