]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
This commit was manufactured by cvs2svn to create branch
authorNo Author <no-author@gcc.gnu.org>
Fri, 3 Jun 2005 23:24:54 +0000 (23:24 +0000)
committerNo Author <no-author@gcc.gnu.org>
Fri, 3 Jun 2005 23:24:54 +0000 (23:24 +0000)
'gcc-3_4-branch'.

From-SVN: r100563

gcc/testsuite/g++.dg/expr/static_cast6.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.dg/expr/static_cast6.C b/gcc/testsuite/g++.dg/expr/static_cast6.C
new file mode 100644 (file)
index 0000000..90f32f1
--- /dev/null
@@ -0,0 +1,15 @@
+// PR c++/21853
+
+struct blah {
+  int a;
+};
+
+int main( int argc, char ** argv ) {
+  int blah::* ptdma = &blah::a;
+
+  const void *ptdmv = static_cast< void * >( &ptdma );
+
+  int blah::* const ptdmb = * static_cast< int blah::* const * >( ptdmv );
+
+  return 0;
+}