* g++.dg/cpp0x/ref-qual17.C: New test.
authorJakub Jelinek <jakub@redhat.com>
Wed, 15 Jun 2016 17:10:02 +0000 (19:10 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 15 Jun 2016 17:10:02 +0000 (19:10 +0200)
From-SVN: r237488

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/ref-qual17.C [new file with mode: 0644]

index dbd8df829b56a137323e2a334c936eacc8895797..ad4d230f969544b8abf0b6f3fcaf756e646453af 100644 (file)
@@ -1,3 +1,7 @@
+2016-06-15  Jakub Jelinek  <jakub@redhat.com>
+
+       * g++.dg/cpp0x/ref-qual17.C: New test.
+
 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
 
        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 (file)
index 0000000..45ed2a1
--- /dev/null
@@ -0,0 +1,12 @@
+// { dg-do compile { target c++11 } }
+
+struct A
+{
+  void foo () &;
+};
+
+void
+bar (__UINTPTR_TYPE__ a)
+{
+  reinterpret_cast<A *>(a)->foo ();
+}