summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/pr28332.cpp
diff options
context:
space:
mode:
authorVassil Vassilev <v.g.vassilev@gmail.com>2016-07-22 21:08:24 +0000
committerVassil Vassilev <v.g.vassilev@gmail.com>2016-07-22 21:08:24 +0000
commit19765fb68c67df88ad03bfa6e56b1f1f39ee6ffc (patch)
tree573203ffb0e3ba2d332498ef3ad6791b14138de3 /clang/test/Modules/pr28332.cpp
parentb73d7aed71c3f750f2ca64b93eed83eac10e1458 (diff)
downloadbcm5719-llvm-19765fb68c67df88ad03bfa6e56b1f1f39ee6ffc.tar.gz
bcm5719-llvm-19765fb68c67df88ad03bfa6e56b1f1f39ee6ffc.zip
[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). llvm-svn: 276473
Diffstat (limited to 'clang/test/Modules/pr28332.cpp')
-rw-r--r--clang/test/Modules/pr28332.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Modules/pr28332.cpp b/clang/test/Modules/pr28332.cpp
new file mode 100644
index 00000000000..596dd246008
--- /dev/null
+++ b/clang/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
+
OpenPOWER on IntegriCloud