aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/casts.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.cp/casts.cc')
-rw-r--r--gdb/testsuite/gdb.cp/casts.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/testsuite/gdb.cp/casts.cc b/gdb/testsuite/gdb.cp/casts.cc
index 43f112f..543db89 100644
--- a/gdb/testsuite/gdb.cp/casts.cc
+++ b/gdb/testsuite/gdb.cp/casts.cc
@@ -34,14 +34,6 @@ struct DoublyDerived : public VirtuallyDerived,
{
};
-// Confuse a simpler approach.
-
-double
-decltype(int x)
-{
- return x + 2.0;
-}
-
int
main (int argc, char **argv)
{
@@ -56,7 +48,5 @@ main (int argc, char **argv)
Alpha *ad = &derived;
Alpha *add = &doublyderived;
- double y = decltype(2);
-
return 0; /* breakpoint spot: casts.exp: 1 */
}