| Index: gdb/testsuite/gdb.cp/casts.cc
|
| diff --git a/gdb/testsuite/gdb.cp/casts.cc b/gdb/testsuite/gdb.cp/casts.cc
|
| index 543db896d3de9080882f2b5498b53146490a2a36..43f112f32f165186460e4648178fcb5180cdeeef 100644
|
| --- a/gdb/testsuite/gdb.cp/casts.cc
|
| +++ b/gdb/testsuite/gdb.cp/casts.cc
|
| @@ -34,6 +34,14 @@ struct DoublyDerived : public VirtuallyDerived,
|
| {
|
| };
|
|
|
| +// Confuse a simpler approach.
|
| +
|
| +double
|
| +decltype(int x)
|
| +{
|
| + return x + 2.0;
|
| +}
|
| +
|
| int
|
| main (int argc, char **argv)
|
| {
|
| @@ -48,5 +56,7 @@ main (int argc, char **argv)
|
| Alpha *ad = &derived;
|
| Alpha *add = &doublyderived;
|
|
|
| + double y = decltype(2);
|
| +
|
| return 0; /* breakpoint spot: casts.exp: 1 */
|
| }
|
|
|