From: Jakub Jelinek Date: Wed, 15 Jun 2016 17:10:02 +0000 (+0200) Subject: * g++.dg/cpp0x/ref-qual17.C: New test. X-Git-Tag: basepoints/gcc-8~6213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f29468a73ac7ecf0ae6fa4e72a339191423ba5d7;p=thirdparty%2Fgcc.git * g++.dg/cpp0x/ref-qual17.C: New test. From-SVN: r237488 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dbd8df829b56..ad4d230f9695 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-06-15 Jakub Jelinek + + * g++.dg/cpp0x/ref-qual17.C: New test. + 2016-06-15 Ilya Enkovich PR middle-end/71529 diff --git a/gcc/testsuite/g++.dg/cpp0x/ref-qual17.C b/gcc/testsuite/g++.dg/cpp0x/ref-qual17.C new file mode 100644 index 000000000000..45ed2a169f0c --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/ref-qual17.C @@ -0,0 +1,12 @@ +// { dg-do compile { target c++11 } } + +struct A +{ + void foo () &; +}; + +void +bar (__UINTPTR_TYPE__ a) +{ + reinterpret_cast(a)->foo (); +}