summaryrefslogtreecommitdiffstats
path: root/test/Modules/update-exception-spec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Modules/update-exception-spec.cpp')
-rw-r--r--test/Modules/update-exception-spec.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Modules/update-exception-spec.cpp b/test/Modules/update-exception-spec.cpp
new file mode 100644
index 0000000..bccdddc
--- /dev/null
+++ b/test/Modules/update-exception-spec.cpp
@@ -0,0 +1,6 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -fexceptions -fcxx-exceptions -fmodules -fmodules-cache-path=%t -I%S/Inputs/update-exception-spec -emit-llvm-only %s
+#include "a.h"
+void use(B *p);
+#include "c.h"
+void use(B *p) { g(p); }
OpenPOWER on IntegriCloud