Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/cpp0x/constexpr-memfn1.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
11 constexpr X X::g(X x) { return x; } | 11 constexpr X X::g(X x) { return x; } |
12 | 12 |
13 struct Y | 13 struct Y |
14 { | 14 { |
15 Y() { } | 15 Y() { } |
16 constexpr Y f(Y y) {} // { dg-error "constexpr" } | 16 constexpr Y f(Y y) { return y; } // { dg-error "constexpr" } |
17 static constexpr Y g(Y y) {} // { dg-error "constexpr" } | 17 static constexpr Y g(Y y) { return y; } // { dg-error "constexpr" } |
18 }; | 18 }; |