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:
parent
9193780a0e
commit
e801c5c267
@ -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>
|
2000-05-27 Zack Weinberg <zack@wolery.cumb.org>
|
||||||
|
|
||||||
Relative to g++.dg/special:
|
Relative to g++.dg/special:
|
||||||
|
@ -9,7 +9,8 @@
|
|||||||
//
|
//
|
||||||
// Workaround - declare "f1_arg" as type "short int".
|
// Workaround - declare "f1_arg" as type "short int".
|
||||||
|
|
||||||
extern "C" int printf (const char *, ...);
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
short int v2;
|
short int v2;
|
||||||
|
|
||||||
@ -25,7 +26,7 @@ int main ()
|
|||||||
f1 (v1);
|
f1 (v1);
|
||||||
|
|
||||||
if (v2 != 0x00007777)
|
if (v2 != 0x00007777)
|
||||||
printf ("FAIL\n");
|
abort ();
|
||||||
else
|
else
|
||||||
printf ("PASS\n");
|
printf ("PASS\n");
|
||||||
}
|
}
|
||||||
|
@ -12,14 +12,16 @@ void exit (int);
|
|||||||
|
|
||||||
__complex__ double cd;
|
__complex__ double cd;
|
||||||
|
|
||||||
|
int one = 1;
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main()
|
||||||
{
|
{
|
||||||
cd = 1.0+90i;
|
cd = 1.0+90i;
|
||||||
cd *= argc;
|
cd *= one;
|
||||||
|
|
||||||
if (__real__ cd != 1 || __imag__ cd != 90)
|
if (__real__ cd != 1 || __imag__ cd != 90)
|
||||||
exit (1);
|
abort ();
|
||||||
|
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
// GROUPS passed references
|
// GROUPS passed references
|
||||||
extern "C" int printf (const char *, ...);
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
const int& min(const int& tX, const int& tY)
|
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)
|
if (m == 1 && n == 100)
|
||||||
printf("PASS\n");
|
printf("PASS\n");
|
||||||
else
|
else
|
||||||
printf("FAIL\n");
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
// Date: Wed, 10 Nov 93 14:43:54 CST
|
// Date: Wed, 10 Nov 93 14:43:54 CST
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
class X {
|
class X {
|
||||||
int i;
|
int i;
|
||||||
@ -32,7 +33,7 @@ X foo() {
|
|||||||
main() {
|
main() {
|
||||||
X x = foo();
|
X x = foo();
|
||||||
if (did_it)
|
if (did_it)
|
||||||
printf ("FAIL\n");
|
abort ();
|
||||||
else
|
else
|
||||||
printf ("PASS\n");
|
printf ("PASS\n");
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#include <string.h>
|
||||||
|
|
||||||
static int
|
static int
|
||||||
special_format (fmt)
|
special_format (fmt)
|
||||||
const char *fmt;
|
const char *fmt;
|
||||||
|
Loading…
Reference in New Issue
Block a user