From: Jakub Jelinek Date: Wed, 15 Jun 2016 17:10:02 +0000 (+0200) Subject: * g++.dg/cpp0x/ref-qual17.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f29468a73ac7ecf0ae6fa4e72a339191423ba5d7;p=gcc.git * g++.dg/cpp0x/ref-qual17.C: New test. From-SVN: r237488 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dbd8df829b5..ad4d230f969 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 00000000000..45ed2a169f0 --- /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 (); +}