From bce52aed345c52715744ec7aef4942b3a66bfc04 Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Fri, 22 Jul 2016 21:08:24 +0000 Subject: [modules] Teach the ASTWriter to ignore mutations coming from the ASTReader. Processing update records (and loading a module, in general) might trigger unexpected calls to the ASTWriter (being a mutation listener). Now we have a mechanism to suppress those calls to the ASTWriter but notify other possible mutation listeners. Fixes https://llvm.org/bugs/show_bug.cgi?id=28332 Patch by Cristina Cristescu and me. Reviewed by Richard Smith (D21800). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276473 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Modules/pr28332.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Modules/pr28332.cpp (limited to 'test/Modules/pr28332.cpp') diff --git a/test/Modules/pr28332.cpp b/test/Modules/pr28332.cpp new file mode 100644 index 0000000000..596dd24600 --- /dev/null +++ b/test/Modules/pr28332.cpp @@ -0,0 +1,8 @@ +// RUN: rm -rf %t +// RUN: %clang_cc1 -std=c++11 -I%S/Inputs/PR28332 -verify %s +// RUN: %clang_cc1 -std=c++11 -fmodules -fmodule-map-file=%S/Inputs/PR28332/module.modulemap -fmodules-cache-path=%t -I%S/Inputs/PR28332 -verify %s + +#include "a.h" + +// expected-no-diagnostics + -- cgit v1.2.1