code-gen4.C: Include stdio.h and stdlib.h.

* g++.old-deja/g++.brendan/code-gen4.C: Include stdio.h and
stdlib.h.  Call abort() on failure.
* g++.old-deja/g++.law/refs4.C: Likewise.
* g++.old-deja/g++.law/temps4.C: Likewise.
* g++.old-deja/g++.brendan/complex1.C: Don't assume argc is 1.
* gcc.c-torture/execute/20000112-1.c: Include string.h.

From-SVN: r34233
This commit is contained in:
Alexandre Oliva 2000-05-28 13:42:47 +00:00 committed by Alexandre Oliva
parent 9193780a0e
commit e801c5c267
6 changed files with 24 additions and 8 deletions

View File

@ -1,3 +1,12 @@
2000-05-28 Alexandre Oliva <aoliva@cygnus.com>
* g++.old-deja/g++.brendan/code-gen4.C: Include stdio.h and
stdlib.h. Call abort() on failure.
* g++.old-deja/g++.law/refs4.C: Likewise.
* g++.old-deja/g++.law/temps4.C: Likewise.
* g++.old-deja/g++.brendan/complex1.C: Don't assume argc is 1.
* gcc.c-torture/execute/20000112-1.c: Include string.h.
2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
Relative to g++.dg/special:

View File

@ -9,7 +9,8 @@
//
// Workaround - declare "f1_arg" as type "short int".
extern "C" int printf (const char *, ...);
#include <stdio.h>
#include <stdlib.h>
short int v2;
@ -25,7 +26,7 @@ int main ()
f1 (v1);
if (v2 != 0x00007777)
printf ("FAIL\n");
abort ();
else
printf ("PASS\n");
}

View File

@ -12,14 +12,16 @@ void exit (int);
__complex__ double cd;
int one = 1;
int
main(int argc, char *argv[])
main()
{
cd = 1.0+90i;
cd *= argc;
cd *= one;
if (__real__ cd != 1 || __imag__ cd != 90)
exit (1);
abort ();
exit (0);
}

View File

@ -1,5 +1,6 @@
// GROUPS passed references
extern "C" int printf (const char *, ...);
#include <stdio.h>
#include <stdlib.h>
const int& min(const int& tX, const int& tY)
{
@ -11,7 +12,7 @@ void foo(const int m, const int n)
if (m == 1 && n == 100)
printf("PASS\n");
else
printf("FAIL\n");
abort ();
}
int main()

View File

@ -7,6 +7,7 @@
// Date: Wed, 10 Nov 93 14:43:54 CST
#include <stdio.h>
#include <stdlib.h>
class X {
int i;
@ -32,7 +33,7 @@ X foo() {
main() {
X x = foo();
if (did_it)
printf ("FAIL\n");
abort ();
else
printf ("PASS\n");
}

View File

@ -1,3 +1,5 @@
#include <string.h>
static int
special_format (fmt)
const char *fmt;