Commit a86414f3 by Jeffrey A Law Committed by Jeff Law

initp1.C: Moved here from g++.old-deja/g++.ext.

        * g++.dg/special/initp1.C: Moved here from g++.old-deja/g++.ext.
        Tweak slightly to work with g++.dg framework.
        * g++.dg/special/ecos.exp: Run initp1.C test.
        * g++.old-deja/g++.ext/initp1.C: Moved to g++.dg/special.

From-SVN: r41610
parent fcca588c
Thu Apr 26 11:15:12 2001 Jeffrey A Law (law@cygnus.com)
* g++.dg/special/initp1.C: Moved here from g++.old-deja/g++.ext.
Tweak slightly to work with g++.dg framework.
* g++.dg/special/ecos.exp: Run initp1.C test.
* g++.old-deja/g++.ext/initp1.C: Moved to g++.dg/special.
* g++.old-deja/g++.ext/instantiate2.C: XFAIL for HPUX too since
its linker doesn't give line numbers either.
* g++.old-deja/g++.ext/instantiate3.C: Similarly.
......
......@@ -84,5 +84,22 @@ if [string match "*init_priority*" $lines] then {
}
dg-finish
###########
# initp1.C
###########
dg-init
set lines [g++_target_compile "$srcdir/$subdir/initp1.C" "$objdir/a.out" executable ""]
if [string match "*init_priority*" $lines] then {
xfail "initp1.C"
file delete $objdir/a.out
} elseif ![string match "" $lines] then {
fail "initp1.C"
} else {
dg-runtest "$srcdir/$subdir/conpr-1.C" "" ""
file delete $objdir/a.out
}
dg-finish
### EOF ecos.exp
// Test for proper handling of the init_priority attribute.
// Contributed by Hugo Tyson <hmt@cygnus.co.uk>
// excess errors test - XFAIL mips*-sgi-irix*
/* { dg-do run } */
#include <stdlib.h>
class Two {
private:
......@@ -63,13 +62,13 @@ int main()
X( koo[0].kay() );
X( koo[1].kay() );
X( koo[2].kay() );
if ( 0x3f != x ) return 1;
if ( 0x3f != x ) abort ();
X( foo.kay() );
if ( 0x7f != x ) return 1;
if ( 0x7f != x ) abort ();
X( goo.kay() );
if ( 0xff != x ) return 1;
if ( 0xff != x ) abort ();
X( xoo[0].kay() );
X( xoo[1].kay() );
......@@ -77,7 +76,7 @@ int main()
X( zoo[0].kay() );
X( zoo[1].kay() );
X( zoo[2].kay() );
if ( 0x3fff != x ) return 1;
if ( 0x3fff != x ) abort ();
X( doo[0].kay() );
X( doo[1].kay() );
......@@ -85,7 +84,7 @@ int main()
X( hoo[0].kay() );
X( hoo[1].kay() );
X( hoo[2].kay() );
if ( 0xfffff != x ) return 1;
if ( 0xfffff != x ) abort ();
return 0;
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment