* 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
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.
}
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:
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() );
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() );
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);
}