From: Daniel Jacobowitz Date: Wed, 30 Apr 2008 18:28:23 +0000 (+0000) Subject: * gdb.cp/hang.exp: Use .cc instead of .C. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d4e307105edd5f21154824fd5839896ae6e6d84;p=binutils-gdb.git * gdb.cp/hang.exp: Use .cc instead of .C. * gdb.cp/hang1.cc, gdb.cp/hang2.cc, gdb.cp/hang3.cc: Renamed from ... * gdb.cp/hang1.C, gdb.cp/hang2.C, gdb.cp/hang3.C: ... here. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ff2cbbb4f1b..8232f0b6cf2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-04-30 Daniel Jacobowitz + + * gdb.cp/hang.exp: Use .cc instead of .C. + * gdb.cp/hang1.cc, gdb.cp/hang2.cc, gdb.cp/hang3.cc: Renamed from ... + * gdb.cp/hang1.C, gdb.cp/hang2.C, gdb.cp/hang3.C: ... here. + 2008-04-30 Daniel Jacobowitz * gdb.base/gdb1250.exp: Remove perror. diff --git a/gdb/testsuite/gdb.cp/hang.exp b/gdb/testsuite/gdb.cp/hang.exp index 86305e03b33..61bcf41b8f0 100644 --- a/gdb/testsuite/gdb.cp/hang.exp +++ b/gdb/testsuite/gdb.cp/hang.exp @@ -26,7 +26,7 @@ set testfile hang set binfile ${objdir}/${subdir}/${testfile} foreach file {hang1 hang2 hang3} { - if {[gdb_compile "${srcdir}/${subdir}/${file}.C" "${file}.o" object {c++ debug}] != ""} { + if {[gdb_compile "${srcdir}/${subdir}/${file}.cc" "${file}.o" object {c++ debug}] != ""} { untested hang.exp return -1 } diff --git a/gdb/testsuite/gdb.cp/hang1.C b/gdb/testsuite/gdb.cp/hang1.C deleted file mode 100644 index 4b04d77e68c..00000000000 --- a/gdb/testsuite/gdb.cp/hang1.C +++ /dev/null @@ -1,3 +0,0 @@ -#include "hang.H" - -int main (int argc, char **argv) { return 0; } diff --git a/gdb/testsuite/gdb.cp/hang1.cc b/gdb/testsuite/gdb.cp/hang1.cc new file mode 100644 index 00000000000..4b04d77e68c --- /dev/null +++ b/gdb/testsuite/gdb.cp/hang1.cc @@ -0,0 +1,3 @@ +#include "hang.H" + +int main (int argc, char **argv) { return 0; } diff --git a/gdb/testsuite/gdb.cp/hang2.C b/gdb/testsuite/gdb.cp/hang2.C deleted file mode 100644 index 59732f87d63..00000000000 --- a/gdb/testsuite/gdb.cp/hang2.C +++ /dev/null @@ -1,8 +0,0 @@ -#include "hang.H" - -struct B -{ - int member_of_B; -}; - -int var_in_b = 1729; diff --git a/gdb/testsuite/gdb.cp/hang2.cc b/gdb/testsuite/gdb.cp/hang2.cc new file mode 100644 index 00000000000..59732f87d63 --- /dev/null +++ b/gdb/testsuite/gdb.cp/hang2.cc @@ -0,0 +1,8 @@ +#include "hang.H" + +struct B +{ + int member_of_B; +}; + +int var_in_b = 1729; diff --git a/gdb/testsuite/gdb.cp/hang3.C b/gdb/testsuite/gdb.cp/hang3.C deleted file mode 100644 index 92c82fa2441..00000000000 --- a/gdb/testsuite/gdb.cp/hang3.C +++ /dev/null @@ -1,4 +0,0 @@ -#include "hang.H" - -const struct B *const_B_ptr; -int var_in_hang3 = 42; diff --git a/gdb/testsuite/gdb.cp/hang3.cc b/gdb/testsuite/gdb.cp/hang3.cc new file mode 100644 index 00000000000..92c82fa2441 --- /dev/null +++ b/gdb/testsuite/gdb.cp/hang3.cc @@ -0,0 +1,4 @@ +#include "hang.H" + +const struct B *const_B_ptr; +int var_in_hang3 = 42;