diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/init/ptrmem4.C')
-rw-r--r-- | gcc/testsuite/g++.dg/init/ptrmem4.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/init/ptrmem4.C b/gcc/testsuite/g++.dg/init/ptrmem4.C new file mode 100644 index 0000000..44ab8cf --- /dev/null +++ b/gcc/testsuite/g++.dg/init/ptrmem4.C @@ -0,0 +1,13 @@ +// PR c++/32245 +// { dg-do run } + +struct foo { + int mem1; + int foo::* mem2; +}; + +int main () { + foo x = { 0 } ; + if (x.mem2 != foo().mem2) + return 1; +} |