array1.C: Modify explicit external libc references to printf & atoi to conform to ANSI...
* g++.old-deja/g++.brendan/array1.C: Modify explicit external libc references to printf & atoi to conform to ANSI standard. * g++.old-deja/g++.brendan/code-gen1.C: Likewise. * g++.old-deja/g++.brendan/code-gen2.C: Likewise. * g++.old-deja/g++.brendan/code-gen3.C: Likewise. * g++.old-deja/g++.brendan/code-gen4.C: Likewise. * g++.old-deja/g++.brendan/code-gen6.C: Likewise. * g++.old-deja/g++.brendan/complex1.C: Likewise. * g++.old-deja/g++.brendan/copy1.C: Likewise. * g++.old-deja/g++.brendan/copy2.C: Likewise. * g++.old-deja/g++.brendan/copy3.C: Likewise. * g++.old-deja/g++.brendan/copy4.C: Likewise. * g++.old-deja/g++.brendan/copy5.C: Likewise. * g++.old-deja/g++.brendan/copy6.C: Likewise. * g++.old-deja/g++.brendan/copy7.C: Likewise. * g++.old-deja/g++.brendan/copy8.C: Likewise. * g++.old-deja/g++.brendan/crash11.C: Likewise. * g++.old-deja/g++.brendan/crash14.C: Likewise. * g++.old-deja/g++.brendan/ctors1.C: Likewise. * g++.old-deja/g++.brendan/ctors2.C: Likewise. * g++.old-deja/g++.brendan/delete2.C: Likewise. * g++.old-deja/g++.brendan/dtors1.C: Likewise. * g++.old-deja/g++.brendan/dtors2.C: Likewise. * g++.old-deja/g++.brendan/dtors3.C: Likewise. * g++.old-deja/g++.brendan/eh1.C: Likewise. * g++.old-deja/g++.brendan/groff1.C: Likewise. * g++.old-deja/g++.brendan/init3.C: Likewise. * g++.old-deja/g++.brendan/misc12.C: Likewise. * g++.old-deja/g++.brendan/misc7.C: Likewise. * g++.old-deja/g++.brendan/new2.C: Likewise. * g++.old-deja/g++.brendan/operators4.C: Likewise. * g++.old-deja/g++.brendan/operators5.C: Likewise. * g++.old-deja/g++.brendan/overload2.C: Likewise. * g++.old-deja/g++.brendan/overload7.C: Likewise. * g++.old-deja/g++.brendan/redecl2.C: Likewise. * g++.old-deja/g++.brendan/reference1.C: Likewise. * g++.old-deja/g++.brendan/sizeof5.C: Likewise. * g++.old-deja/g++.brendan/template24.C: Likewise. * g++.old-deja/g++.brendan/template3.C: Likewise. * g++.old-deja/g++.brendan/vtables1.C: Likewise. * g++.old-deja/g++.jason/inline3.C: Likewise. * g++.old-deja/g++.jason/opeq.C: Likewise. * g++.old-deja/g++.law/arg5.C: Likewise. * g++.old-deja/g++.law/arm7.C: Likewise. * g++.old-deja/g++.law/ctors11.C: Likewise. * g++.old-deja/g++.law/cvt8.C: Likewise. * g++.old-deja/g++.law/init9.C: Likewise. * g++.old-deja/g++.law/refs4.C: Likewise. * g++.old-deja/g++.law/template2.C: Likewise. * g++.old-deja/g++.law/visibility24.C: Likewise. * g++.old-deja/g++.law/vtable3.C: Likewise. * g++.old-deja/g++.mike/asm2.C: Likewise. * g++.old-deja/g++.mike/eh1.C: Likewise. * g++.old-deja/g++.mike/misc1.C: Likewise. * g++.old-deja/g++.mike/misc13.C: Likewise. * g++.old-deja/g++.mike/misc14.C: Likewise. * g++.old-deja/g++.mike/ns12.C: Likewise. * g++.old-deja/g++.mike/p1248.C: Likewise. * g++.old-deja/g++.mike/p3708.C: Likewise. * g++.old-deja/g++.mike/p3708a.C: Likewise. * g++.old-deja/g++.mike/p3708b.C: Likewise. * g++.old-deja/g++.mike/p646.C: Likewise. * g++.old-deja/g++.mike/p700.C: Likewise. * g++.old-deja/g++.mike/p783.C: Likewise. * g++.old-deja/g++.mike/p783a.C: Likewise. * g++.old-deja/g++.mike/p783b.C: Likewise. * g++.old-deja/g++.mike/p786.C: Likewise. * g++.old-deja/g++.mike/p789.C: Likewise. * g++.old-deja/g++.mike/p789a.C: Likewise. * g++.old-deja/g++.mike/p807a.C: Likewise. * g++.old-deja/g++.other/delete3.C: Likewise. * g++.old-deja/g++.other/dyncast1.C: Likewise. * g++.old-deja/g++.other/dyncast2.C: Likewise. * g++.old-deja/g++.other/dyncast3.C: Likewise. * g++.old-deja/g++.other/empty1.C: Likewise. * g++.old-deja/g++.other/temporary1.C: Likewise. * g++.old-deja/g++.pt/memtemp14.C: Likewise. * g++.old-deja/g++.pt/t16.C: Likewise. * g++.old-deja/g++.pt/tiemann2.C: Likewise. From-SVN: r31204
This commit is contained in:
parent
d7a2940444
commit
3f552d62f4
79 changed files with 162 additions and 83 deletions
|
@ -1,3 +1,85 @@
|
|||
2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* g++.old-deja/g++.brendan/array1.C: Modify explicit external libc
|
||||
references to printf & atoi to conform to ANSI standard.
|
||||
* g++.old-deja/g++.brendan/code-gen1.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/code-gen2.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/code-gen3.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/code-gen4.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/code-gen6.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/complex1.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/copy1.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/copy2.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/copy3.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/copy4.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/copy5.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/copy6.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/copy7.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/copy8.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/crash11.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/crash14.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/ctors1.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/ctors2.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/delete2.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/dtors1.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/dtors2.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/dtors3.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/eh1.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/groff1.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/init3.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/misc12.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/misc7.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/new2.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/operators4.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/operators5.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/overload2.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/overload7.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/redecl2.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/reference1.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/sizeof5.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/template24.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/template3.C: Likewise.
|
||||
* g++.old-deja/g++.brendan/vtables1.C: Likewise.
|
||||
* g++.old-deja/g++.jason/inline3.C: Likewise.
|
||||
* g++.old-deja/g++.jason/opeq.C: Likewise.
|
||||
* g++.old-deja/g++.law/arg5.C: Likewise.
|
||||
* g++.old-deja/g++.law/arm7.C: Likewise.
|
||||
* g++.old-deja/g++.law/ctors11.C: Likewise.
|
||||
* g++.old-deja/g++.law/cvt8.C: Likewise.
|
||||
* g++.old-deja/g++.law/init9.C: Likewise.
|
||||
* g++.old-deja/g++.law/refs4.C: Likewise.
|
||||
* g++.old-deja/g++.law/template2.C: Likewise.
|
||||
* g++.old-deja/g++.law/visibility24.C: Likewise.
|
||||
* g++.old-deja/g++.law/vtable3.C: Likewise.
|
||||
* g++.old-deja/g++.mike/asm2.C: Likewise.
|
||||
* g++.old-deja/g++.mike/eh1.C: Likewise.
|
||||
* g++.old-deja/g++.mike/misc1.C: Likewise.
|
||||
* g++.old-deja/g++.mike/misc13.C: Likewise.
|
||||
* g++.old-deja/g++.mike/misc14.C: Likewise.
|
||||
* g++.old-deja/g++.mike/ns12.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p1248.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p3708.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p3708a.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p3708b.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p646.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p700.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p783.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p783a.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p783b.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p786.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p789.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p789a.C: Likewise.
|
||||
* g++.old-deja/g++.mike/p807a.C: Likewise.
|
||||
* g++.old-deja/g++.other/delete3.C: Likewise.
|
||||
* g++.old-deja/g++.other/dyncast1.C: Likewise.
|
||||
* g++.old-deja/g++.other/dyncast2.C: Likewise.
|
||||
* g++.old-deja/g++.other/dyncast3.C: Likewise.
|
||||
* g++.old-deja/g++.other/empty1.C: Likewise.
|
||||
* g++.old-deja/g++.other/temporary1.C: Likewise.
|
||||
* g++.old-deja/g++.pt/memtemp14.C: Likewise.
|
||||
* g++.old-deja/g++.pt/t16.C: Likewise.
|
||||
* g++.old-deja/g++.pt/tiemann2.C: Likewise.
|
||||
|
||||
1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
|
||||
|
||||
* gcc.dg/991230-1.c: New test.
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
// Special g++ Options: -fconserve-space -fcommon
|
||||
// GROUPS passed array-bindings
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
char array[~(~0ul>>1)|~(0ul>>3)]; // ERROR - overflow in array dimension.*
|
||||
int main () { printf ("PASS\n"); return 0; }
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Check that sub-word sized structs/classes are passed correctly
|
||||
// if the struct/class has a constructor (i.e. ANY constructor).
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct base {
|
||||
unsigned int f1 : 8;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Check that declarations with initializations are executed
|
||||
// correctly.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int main ()
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Check that passing things which are not a multiple of
|
||||
// 4 bytes in size doesn't mess up other subsequent parameters.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct base {
|
||||
int f1 : 8;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
//
|
||||
// Workaround - declare "f1_arg" as type "short int".
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
short int v2;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Check that type float parameters can be correctly passed to
|
||||
// methods.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
class tres_floats {
|
||||
float ff1;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// a bug where the compiler was not converting the integer `90' to a
|
||||
// complex number, unless you did `90.0'. Fixed 10/1/1997.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
__complex__ double cd;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed copy-ctors
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
int count = 0;
|
||||
|
||||
class C {
|
||||
|
|
|
@ -27,7 +27,7 @@ Post foo
|
|||
|
||||
*/
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
int count = 0;
|
||||
|
|
|
@ -18,7 +18,7 @@ If I compile it with g++ (gcc version 2.2.2) and run it I get:
|
|||
A::~A()
|
||||
|
||||
*/
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
int count = 0;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
// ~A()
|
||||
// ~A()
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
int count = 0;
|
||||
|
|
|
@ -21,7 +21,7 @@ BaseClass::Increm --> {i=7, virtMember()=30}
|
|||
b=9 b.virtMember()=30
|
||||
*/
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
void die () { printf ("FAIL\n"); exit (1); }
|
||||
|
|
|
@ -24,7 +24,7 @@ constructing from unsigned
|
|||
|
||||
*/
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
int count = 0;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed copy-ctors
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
void die () { printf ("FAIL\n"); exit (1); }
|
||||
|
|
|
@ -17,7 +17,7 @@ typescript that lists the program, shows how I compiled it, and shows the
|
|||
incorrect output.
|
||||
*/
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
int count = 0;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Build don't link:
|
||||
// GROUPS passed old-abort
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
class A {
|
||||
int i; // ERROR - private
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Build don't link:
|
||||
// GROUPS passed old-abort
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
|
||||
class cl
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// GROUPS passed constructors
|
||||
// Check that global level object constructors get called.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct base {
|
||||
int f1;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Check that sub-words sized class members are correctly set
|
||||
// by constructors.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct base {
|
||||
int f1 : 8;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Check that using the delete operator with a null pointer
|
||||
// is allowed (as called for by The Book, pg. 259)
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct base {
|
||||
int member;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
//
|
||||
// (also check that this execution doesn't seg-fault)
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int derived_destructed;
|
||||
int base_destructed;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// the virtual table, rather than directly. This, of course, results in the
|
||||
// infinite recursion.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int errors = 0;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// Note that in order for this test to work properly, the destructor
|
||||
// for the base class should be explicitly declared to be virtual.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int member_destructor_calls = 0;
|
||||
int middle_destructor_calls = 0;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Special g++ Options: -O
|
||||
// PRMS Id: 10776
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
class Foo
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// GROUPS passed groff
|
||||
/* This should compile properly with the new overloading scheme. */
|
||||
|
||||
extern "C" void printf (const char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
int win = 0;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// p2766: Make sure that members are initialized in order of declaration
|
||||
// in the class, not in order of specification in the mem-initializer list.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
int count = 0;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// GROUPS passed miscellaneous
|
||||
extern "C" void exit (int);
|
||||
extern "C" int printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
/* Make sure cp-lex.c handles these properly--if this links, that means
|
||||
it emitted the strings instead of __FUNCTION__.0, etc. */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed miscellaneous
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int main()
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// of whether or not the constructor for the given class is defined
|
||||
// before or after the new operator is even declared.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
//
|
||||
// This test fails (in test5()) when compiled with g++ 1.34.1.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int function (char c);
|
||||
int function (float f);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// GROUPS passed operators
|
||||
// Check that operators may be (directly) recursive.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct base {
|
||||
int i;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// functions are generated even where the type of the formal
|
||||
// arguments for the overloadings are similar or related.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int proper_method_called = 0;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed overloading
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct NoName {
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// of argument defaults provided, that correct values are
|
||||
// passed at all call points anyway.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
void receiver (int ii, int jj);
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
// This test fails with G++ 1.35.0- (pre-release).
|
||||
// Reported 4/4/89 by Kim Smith
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct base {
|
||||
mutable int data_member;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// GROUPS passed sizeof
|
||||
// ARM $5.3.2
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
class foo {};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed templates
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
template <class F>
|
||||
class Temp
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed templates
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
int count = 0;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Check that virtual function tables are generated and used
|
||||
// even for struct's/classes which have no explicit constructors.
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int base_func_member_1_called = 0;
|
||||
int derived_func_member_1_called = 0;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Testcase for order of destruction.
|
||||
// Special g++ Options: -O2
|
||||
|
||||
extern "C" int printf( char const*, ... );
|
||||
extern "C" int printf (const char *, ...);
|
||||
int c;
|
||||
int r;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Bug: Generating default op= didn't set TYPE_HAS_ASSIGNMENT, so it wasn't
|
||||
// found.
|
||||
|
||||
extern "C" int printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
class Y
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
extern double pow(double,int*);
|
||||
|
||||
extern "C" {
|
||||
extern int printf(char*,...);
|
||||
extern int printf (const char *, ...);
|
||||
extern double pow(double, double);
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// Date: Sat, 6 Mar 93 06:46:27 -0600
|
||||
|
||||
|
||||
extern "C" void printf(const char *,...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
class Base {
|
||||
public:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// Message-Id: <9302081631.AA14744@tera.com>
|
||||
// From: rrh@tera.com (Robert R. Henry)
|
||||
// Date: Mon, 8 Feb 93 08:31:39 PST
|
||||
extern "C" void printf(const char *,...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
class A{
|
||||
public:
|
||||
inline A(int x){printf("constructing A with %d\n", x);}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
// Subject: g++ 2.2.2 seems to be forgetting a "const"
|
||||
// Date: Mon, 14 Sep 92 10:09:58 -0500
|
||||
|
||||
extern "C" void printf(...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct A {
|
||||
int i;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Subject: excess elements in aggr initzer
|
||||
// Message-ID: <Pine.3.07.9306061541.A10267-b100000@fubar.cs.montana.edu>
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
class samp {
|
||||
int a;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed references
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
const int& min(const int& tX, const int& tY)
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// GROUPS passed templates
|
||||
// Special g++ Options: -fguiding-decls
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
template<class T> T max(T a, T b) { return a > b ? a : b; }
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
/*
|
||||
* private.cc
|
||||
*/
|
||||
extern "C" void printf(...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
template <class T>
|
||||
class A
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// Subject: g++-2.6.2: Virtual inheritance causes incorrect padding
|
||||
// Message-ID: <Pine.SOL.3.91.941128194453.7510A-100000@gabriel>
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
struct A {
|
||||
};
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
// Compile with -S, there should be no references to
|
||||
// LTRAMP in the output.
|
||||
|
||||
extern "C"
|
||||
{
|
||||
int printf (char *, ...);
|
||||
}
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
void
|
||||
sub2 (void (*func) ())
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Build don't link:
|
||||
// Special g++ Options: -fexceptions -O -S
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" int atoi (const char *);
|
||||
extern "C" void exit (int);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/* g++ constructs j 13 times, and destructs it once. */
|
||||
|
||||
extern "C" {
|
||||
int printf(...);
|
||||
int printf (const char *, ...);
|
||||
void exit(int);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed vtable
|
||||
extern "C" int printf(...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
enum { vf_request, vf_event } want;
|
||||
|
||||
int errs = 0;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed
|
||||
extern "C" int printf(...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit(int);
|
||||
|
||||
class A {
|
||||
|
|
|
@ -2,7 +2,7 @@ namespace {
|
|||
int i = 10;
|
||||
enum fish { one = 1, two = 2, red = 3, blue = 4 };
|
||||
}
|
||||
extern "C" void printf (const char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
int main(void)
|
||||
{
|
||||
if (i != 10) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// GROUPS passed pure-virt
|
||||
extern "C" { void printf(const char *, ...); }
|
||||
extern "C" int printf (const char *, ...);
|
||||
class Base {
|
||||
public:
|
||||
virtual ~Base() =0;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// prms-id: 3708
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int atoi (char *);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" int atoi (const char *);
|
||||
|
||||
void *ptr;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// prms-id: 3708
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int atoi (char *);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" int atoi (const char *);
|
||||
|
||||
void *ptr;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// prms-id: 3708
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit(int);
|
||||
|
||||
void *ptr;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
extern "C"
|
||||
{
|
||||
void printf (char *, ...);
|
||||
int printf (const char *, ...);
|
||||
void abort ();
|
||||
}
|
||||
|
||||
|
|
|
@ -1628,7 +1628,7 @@ int vprintf(const char*, ... );
|
|||
|
||||
|
||||
|
||||
char* sprintf(char*, const char*, ...);
|
||||
int sprintf(char*, const char*, ...);
|
||||
char* vsprintf(char*, const char*, ...);
|
||||
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// prms-id: 783
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
class C {
|
||||
public:
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
// Deleting an object many times is a lose.
|
||||
// prms-id: 783
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
class C {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
// built.
|
||||
// prms-id: 783
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit (int);
|
||||
|
||||
class C {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// prms-id: 786
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit(int);
|
||||
class C
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// prms-id: 789
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
struct foo
|
||||
{
|
||||
static int count;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// used to work. :-(
|
||||
// prms-id: 789
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
struct foo
|
||||
{
|
||||
static int count;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
// See ARM page 275 Section 12.3.2
|
||||
|
||||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
extern "C" void exit(int);
|
||||
|
||||
class B;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
int i;
|
||||
|
||||
extern "C" void printf(const char*, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
template <class T, class U>
|
||||
struct map {
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// and therefor failing with result 0.
|
||||
|
||||
extern "C" void abort();
|
||||
extern "C" void printf(const char*, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
static int errors = 0;
|
||||
void error(int i)
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// baseclasses.
|
||||
|
||||
extern "C" void abort();
|
||||
extern "C" void printf(const char*, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
static int errors = 0;
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// and therefor failing with result 0.
|
||||
|
||||
extern "C" void abort();
|
||||
extern "C" void printf(const char*, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
static int errors = 0;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Origin: Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
extern "C" void abort();
|
||||
extern "C" void printf(const char*, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int i;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
extern "C" int printf(char*, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
int c, d;
|
||||
class Foo
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Build don't run:
|
||||
// GROUPS passed templates membertemplates
|
||||
extern "C" const char* printf(const char*, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
|
||||
template <class T>
|
||||
struct S
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
template <class T> T max (const T&x, const T&y)
|
||||
{
|
||||
return (x>y)?x:y;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
extern "C" void printf (char *, ...);
|
||||
extern "C" int printf (const char *, ...);
|
||||
template <class T> T max (const T&x, const T&y)
|
||||
{
|
||||
return (x>y)?x:y;
|
||||
|
|
Loading…
Add table
Reference in a new issue