teak-llvm/clang/test/Modules/cxx17.cpp
Richard Smith a54d32404c 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
2017-03-08 23:00:26 +00:00

12 lines
374 B
C++

// 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;