Index: gdb/testsuite/gdb.base/ldbl_e308.exp |
diff --git a/gdb/testsuite/gdb.cp/pr12028.exp b/gdb/testsuite/gdb.base/ldbl_e308.exp |
similarity index 70% |
copy from gdb/testsuite/gdb.cp/pr12028.exp |
copy to gdb/testsuite/gdb.base/ldbl_e308.exp |
index b68235eda22fc51fb155d480e70c674c8b8713fd..55170802d6bac172547d304a8735ad9f966f0fec 100644 |
--- a/gdb/testsuite/gdb.cp/pr12028.exp |
+++ b/gdb/testsuite/gdb.base/ldbl_e308.exp |
@@ -1,5 +1,5 @@ |
-# Copyright 2008, 2011-2012 Free Software Foundation, Inc. |
- |
+# Copyright (C) 2012-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 |
# the Free Software Foundation; either version 3 of the License, or |
@@ -13,17 +13,19 @@ |
# You should have received a copy of the GNU General Public License |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
-standard_testfile .cc |
+set testfile ldbl_e308 |
+set srcfile ${testfile}.c |
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile}] } { |
+ return -1 |
+} |
-if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug c++}] } { |
+if ![runto_main] { |
+ untested ${testfile}.exp |
return -1 |
} |
-############################################ |
+gdb_test_no_output "set variable ldbl_308 = 1.6e+308l" |
-if ![runto_main] then { |
- perror "couldn't run to breakpoint main" |
- continue |
-} |
+gdb_test "print ldbl_308" \ |
+ "= 1\..*e\\+308" |
-gdb_test "p D::foo(b)" "Cannot resolve function foo to any overloaded instance" |