diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2017-10-04 13:47:51 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2017-10-04 13:47:51 -0400 |
commit | d21f2166b03cfda6b689398f7839520d66123708 (patch) | |
tree | 9417882821ab30e6316d856d143d84ebff36fc6d | |
parent | fb4ccfed86b61baaafa7a86c07d572e7e9234d29 (diff) | |
download | gcc-d21f2166b03cfda6b689398f7839520d66123708.zip gcc-d21f2166b03cfda6b689398f7839520d66123708.tar.gz gcc-d21f2166b03cfda6b689398f7839520d66123708.tar.bz2 |
PR c++/82406 - C++17 error with noexcept function type
* g++.dg/ext/attrib54.C: New.
From-SVN: r253425
-rw-r--r-- | gcc/testsuite/g++.dg/ext/attrib54.C | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/ext/attrib54.C b/gcc/testsuite/g++.dg/ext/attrib54.C new file mode 100644 index 0000000..5ff28c8 --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/attrib54.C @@ -0,0 +1,14 @@ +// PR c++/82406 + +class a +{ +public: + template <typename b> void operator() (const b &); +}; +void c () throw () __attribute__ ((__nonnull__)); +void +d () +{ + a e; + e (c); +} |