diff options
author | Catherine Moore <clm@redhat.com> | 1999-10-29 15:31:54 +0000 |
---|---|---|
committer | Catherine Moore <clm@redhat.com> | 1999-10-29 15:31:54 +0000 |
commit | 7cdea22fb04c83d14e32004a2b602b6341fb486e (patch) | |
tree | b838c8a22077db5d1cbb3bb03552fc17761a6616 | |
parent | 4df2b5c55e71e8f1ba66ff0c5791da4f196879ae (diff) | |
download | gdb-7cdea22fb04c83d14e32004a2b602b6341fb486e.zip gdb-7cdea22fb04c83d14e32004a2b602b6341fb486e.tar.gz gdb-7cdea22fb04c83d14e32004a2b602b6341fb486e.tar.bz2 |
Remove test6.
-rw-r--r-- | ld/testsuite/ld-selective/5.cc | 32 | ||||
-rw-r--r-- | ld/testsuite/ld-selective/selective.exp | 31 |
2 files changed, 0 insertions, 63 deletions
diff --git a/ld/testsuite/ld-selective/5.cc b/ld/testsuite/ld-selective/5.cc deleted file mode 100644 index 5179d91..0000000 --- a/ld/testsuite/ld-selective/5.cc +++ /dev/null @@ -1,32 +0,0 @@ -// This test currently fails because the C++ front end emits `A' as -// the base class called rather than `B' as it ought. At least it -// is erroring on the safe side... - -struct A -{ - virtual void foo(); - virtual void bar(); -}; - -void A::foo() { } // loose -void A::bar() { } // loose - -struct B : public A -{ - virtual void foo(); -}; - -void B::foo() { } // keep - -void _start() __asm__("_start"); // keep - -A a; -B b; // keep -B *getme() { return &b; } // keep - -void _start() -{ - getme()->foo(); -} - -extern "C" void __main() { } diff --git a/ld/testsuite/ld-selective/selective.exp b/ld/testsuite/ld-selective/selective.exp index e6a9d97..c8bbdef 100644 --- a/ld/testsuite/ld-selective/selective.exp +++ b/ld/testsuite/ld-selective/selective.exp @@ -29,7 +29,6 @@ set test2 "selective2" set test3 "selective3" set test4 "selective4" set test5 "selective5" -set test6 "selective6" set cflags "-w -O2 -ffunction-sections -fdata-sections" set cxxflags "-fvtable-gc -fno-exceptions -fno-rtti" @@ -41,7 +40,6 @@ if { [which $CXX] == 0 } { untested $test3 untested $test4 untested $test5 - untested $test6 return } @@ -177,32 +175,3 @@ if ![ld_simple_link $ld tmpdir/4.x "$ldflags tmpdir/4.o"] { } } } - -setup_xfail "v850*-*-elf" - -if { ![ld_compile "$CC $cflags $cxxflags" $srcdir/$subdir/5.cc tmpdir/5.o]} { - unresolved $test6 - return -} - -if ![ld_simple_link $ld tmpdir/5.x "$ldflags tmpdir/5.o"] { - fail $test6 -} else { - if ![ld_nm $nm tmpdir/5.x] { - unresolved $test6 - } else { - if {[info exists nm_output(foo__1B)] } { - send_log "foo__1B == $nm_output(foo__1B)\n" - verbose "foo__1B == $nm_output(foo__1B)" - fail $test6 - } else { - if { [info exists nm_output(foo__1A)]} { - send_log "foo__1A== $nm_output(foo__1A)\n" - verbose "foo__1A == $nm_output(foo__1A)" - fail $test6 - } else { - pass $test6 - } - } - } -} |