]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.cp/member-ptr.cc
Update copyright year range in header of all files managed by GDB
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.cp / member-ptr.cc
index 4b552aef26e7857a45673f64738028be51d26968..4e7ae9446237ff2bed6e2a394631a6c784f94805 100644 (file)
@@ -1,6 +1,6 @@
 /* This testcase is part of GDB, the GNU debugger.
 
-   Copyright 1998-2019 Free Software Foundation, Inc.
+   Copyright 1998-2023 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -142,6 +142,11 @@ int Diamond::vget_base ()
   return this->Left::x + 2000;
 }
 
+struct Container
+{
+  PMI member;
+};
+
 int
 func (int x)
 {
@@ -205,6 +210,9 @@ int main ()
   null_pmi = NULL;
   null_pmf = NULL;
 
+  Container contain;
+  contain.member = &A::j;
+
   pmi = NULL; /* Breakpoint 1 here.  */
 
   (diamond.*diamond_pfunc_ptr) (20);
@@ -230,4 +238,5 @@ int main ()
 
   k += b.s;
   
+  return 0;
 }