diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-02-13 17:45:50 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2023-02-14 15:12:48 +0100 |
commit | a4fafb7722c9950dacd5689f1ce8e31f8fa94ed5 (patch) | |
tree | fa3a53dc2e4297e8200c90e0a3ac4bdb90c9c412 /tests/run-funcretval++11.sh | |
parent | 47297d8bf2f516b66b6d45934849137ab7658a99 (diff) | |
download | elfutils-a4fafb7722c9950dacd5689f1ce8e31f8fa94ed5.tar.gz |
backends: Support returning lvalue and rvalue references
On the low level, they are the same as pointers. The change needs to be
done for all backends, so define a function and a macro to avoid
repetition. Also add a native test, which has to be implemented in C++.
Add the configure check for it.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Diffstat (limited to 'tests/run-funcretval++11.sh')
-rwxr-xr-x | tests/run-funcretval++11.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/run-funcretval++11.sh b/tests/run-funcretval++11.sh new file mode 100755 index 00000000..fcfefe19 --- /dev/null +++ b/tests/run-funcretval++11.sh @@ -0,0 +1,21 @@ +#! /bin/sh +# Copyright (C) 2023 IBM Corporation +# This file is part of elfutils. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# elfutils is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +. $srcdir/test-subr.sh + +testrun $abs_builddir/funcretval -e $abs_builddir/funcretval_test++11 \ + > /dev/null |