| Index: gdb/testsuite/gdb.cp/class2.exp
|
| diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.exp
|
| index 3ccbc238bcf390cc6cbf6f816fdb347efce95297..00b632208e51a31219bc7f11269e9bc2445c6961 100644
|
| --- a/gdb/testsuite/gdb.cp/class2.exp
|
| +++ b/gdb/testsuite/gdb.cp/class2.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2003-2004, 2007-2012 Free Software Foundation, Inc.
|
| +# Copyright 2003-2013 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
|
| @@ -110,3 +110,7 @@ gdb_test_no_output "set print object on"
|
| gdb_test "p acp" "= \\(C \\*\\) ${hex}"
|
| gdb_test "p acp->c1" "\\(A \\*\\) 0x0"
|
| gdb_test "p acp->c2" "\\(A \\*\\) ${hex}f"
|
| +
|
| +# Regression test for PR c++/15401.
|
| +# Check that the type printed is a reference.
|
| +gdb_test "p aref" " = \\(A \\&\\) .*"
|
|
|