diff options
author | Erich Keane <erich.keane@intel.com> | 2019-05-31 16:46:38 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2019-05-31 16:46:38 +0000 |
commit | c61762797ea4ec868d06c5a5d90dc17f0b19ea68 (patch) | |
tree | cc2a99b8b17212a580fb151abc2ab482cbd52842 /clang/test | |
parent | 1e692d1777ae34dcb93524b5798651a29defae09 (diff) | |
download | bcm5719-llvm-c61762797ea4ec868d06c5a5d90dc17f0b19ea68.tar.gz bcm5719-llvm-c61762797ea4ec868d06c5a5d90dc17f0b19ea68.zip |
Suppress nothrow/Exception spec conflict warning when we dont know the ES.
In any situation where the Exception Spec isn't clear, suppress the
warning to avoid false positives.
llvm-svn: 362243
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/SemaCXX/nothrow-vs-exception-specs.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/nothrow-vs-exception-specs.cpp b/clang/test/SemaCXX/nothrow-vs-exception-specs.cpp index 563f6040670..78416d8c0b6 100644 --- a/clang/test/SemaCXX/nothrow-vs-exception-specs.cpp +++ b/clang/test/SemaCXX/nothrow-vs-exception-specs.cpp @@ -54,6 +54,9 @@ __declspec(nothrow) void foo5() noexcept(noexcept(foo2())); // expected-warning@+1{{'nothrow' attribute conflicts with exception specification; attribute ignored}} __declspec(nothrow) void foo6() noexcept(noexcept(foo3())); +template<typename F> +__declspec(nothrow) void foo7() noexcept(noexcept(F())); + // FIXME: It would be nice to be able to warn on these, however at the time we // evaluate the nothrow, these have yet to be parsed, so the data is not yet // there. |