summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/cxx17.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-03-08 23:00:26 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-03-08 23:00:26 +0000
commita54d32404c0942321bb9d8c0f184ae15f7dc688b (patch)
tree8f53b73b0dfafc88ea91ac7a61cce29d49ecd1ae /clang/test/Modules/cxx17.cpp
parent05048633834be2be634b3e32751a08b2eef12692 (diff)
downloadbcm5719-llvm-a54d32404c0942321bb9d8c0f184ae15f7dc688b.tar.gz
bcm5719-llvm-a54d32404c0942321bb9d8c0f184ae15f7dc688b.zip
Take into account C++17's noexcept function types during merging -- it should
be possible to merge a declaration with an unresolved function type against one with a resolved function type. llvm-svn: 297316
Diffstat (limited to 'clang/test/Modules/cxx17.cpp')
-rw-r--r--clang/test/Modules/cxx17.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Modules/cxx17.cpp b/clang/test/Modules/cxx17.cpp
new file mode 100644
index 00000000000..1efb490828d
--- /dev/null
+++ b/clang/test/Modules/cxx17.cpp
@@ -0,0 +1,11 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -x c++ -std=c++1z -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -I %S/Inputs/cxx17 %s -verify -fno-modules-error-recovery
+
+// expected-no-diagnostics
+struct MergeExceptionSpec {
+ ~MergeExceptionSpec();
+} mergeExceptionSpec; // trigger evaluation of exception spec
+
+#include "decls.h"
+
+MergeExceptionSpec mergeExceptionSpec2;
OpenPOWER on IntegriCloud