projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d760b06
)
* g++.dg/cpp1z/noexcept-type20.C: Elaborate.
author
Jason Merrill
<jason@gcc.gnu.org>
Fri, 27 Apr 2018 17:32:00 +0000
(13:32 -0400)
committer
Jason Merrill
<jason@gcc.gnu.org>
Fri, 27 Apr 2018 17:32:00 +0000
(13:32 -0400)
From-SVN: r259718
gcc/testsuite/g++.dg/cpp1z/noexcept-type20.C
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.dg/cpp1z/noexcept-type20.C
b/gcc/testsuite/g++.dg/cpp1z/noexcept-type20.C
index a6033f71a4f241cfdcf8272f367d2457c08fa4ff..2e4412d0e77956343120e1a3fbf230618bf13765 100644
(file)
--- a/
gcc/testsuite/g++.dg/cpp1z/noexcept-type20.C
+++ b/
gcc/testsuite/g++.dg/cpp1z/noexcept-type20.C
@@
-3,12
+3,11
@@
struct A
{
- void foo() noexcept;
+ constexpr int foo() const noexcept { return 1; }
};
-template<typename T> void bar(T);
+constexpr auto p = static_cast<int (A::*)() const>(&A::foo);
+constexpr int i = (A().*p)();
-void baz()
-{
- bar(static_cast<void(A::*)()>(&A::foo));
-}
+#define SA(X) static_assert((X),#X)
+SA(i == 1);