diff options
Diffstat (limited to 'test/Modules/cxx17.cpp')
-rw-r--r-- | test/Modules/cxx17.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Modules/cxx17.cpp b/test/Modules/cxx17.cpp new file mode 100644 index 0000000000000..1efb490828db5 --- /dev/null +++ b/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; |