plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
vbase6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/vbase6.C
392
utf_8
4e3fa8f31741fc2c03e9f51aa3097c1f
// { dg-do assemble } // // 3131. struct A { virtual ~A (); }; struct B { virtual ~B (); }; struct C : virtual public B {}; struct D : virtual public A, virtual public C {}; struct E : public virtual C {}; struct F : public virtual D, public virtual E {};
google
android
empty
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/empty.C
1,036
utf_8
0986f0fa6e2b1e040a29e2f45b5ad7ab
// { dg-do run } // { dg-options "-w" } #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 struct S0 { }; struct S1 : public S0 { }; struct S2 : public S1 { char c; }; // In S3, the S1 instance is allocated first at offset zero. The S2 // instance has to be allocated at a subsequent offset; it's first // p...
google
android
empty2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/empty2.C
2,642
utf_8
29fb727b0033afcb4e2ef33e88bc3cc3
// { dg-do assemble } // Check we deal with trailing empty base classes properly struct A {}; struct B1 : A {}; struct B2 : A {}; struct B3 : A {}; struct B4 : A {}; struct B5 : A {}; struct B6 : A {}; struct B7 : A {}; struct B8 : A {}; struct C1 : B1 { virtual void Foo () {} }; struct C2 : B1, B2 { virtual void ...
google
android
primary2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/primary2.C
434
utf_8
534c63088db7145692f7d0b21e3be4ef
// { dg-do run } // Check primary bases are chosen correctly. struct A {virtual void Foo () {}}; struct B : virtual A {}; struct C : virtual B {}; struct D : virtual B, virtual C {}; int main () { D d; #if __GXX_ABI_VERSION >= 100 if (sizeof (D) != sizeof (A)) return 1; #endif return 0; }
google
android
arraynew
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/arraynew.C
3,481
utf_8
c64fc2b155672121ad97bcef7f926939
// { dg-do run } // Avoid use of none-overridable new/delete operators in shared // { dg-options "-static" { target *-*-mingw* } } #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 #include <cstdlib> #include <new> void* p; void* operator new[](size_t s) #if __cplusplus <= 199711L throw (std::bad_alloc) #e...
google
android
vbase3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/vbase3.C
678
utf_8
7e744eb415f839dd8cad69bc77d3950a
// { dg-do run } // Bug 3061. Constructor vtables were wrong. class A_base { public: virtual void foo() { } }; class A_skel : virtual public A_base { }; class B_base : virtual public A_base { }; class B_skel : virtual public B_base, virtual public A_skel { }; class C_base : virtual public B_base { }; class C_skel ...
google
android
empty3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/empty3.C
532
utf_8
3008954886dc6032553976cfe7d8866b
// { dg-do assemble } // Check we deal with aligning virtual bases after a trailing empty // base class properly struct A {}; struct B1 : A {}; struct B2 : A {}; struct B3 : A {}; struct C : B1, B2, virtual B3 {}; int main () { #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 C c; return 1; #endif r...
google
android
vtable3g
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/vtable3g.C
350
utf_8
4fec95ada62cdf9d919b2d99cce68294
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define A_EMPTY #define B1_EMPTY #define B2_EMPTY #define C_EMPTY #define C_PARENTS virtual B1, B2 #include "vtable3.h"
google
android
vtable3a
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/vtable3a.C
420
utf_8
335628c4bb776c7871e9beac4869bf89
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define A_EMPTY #define B1_EMPTY #define B2_EMPTY #define C_EMPTY #define C_PARENTS B1, B2 #include "vtable3.h" /* A = { vptr } B1, B2 = { A } C = { B1, B2 } D = { C } D1 = { */
google
android
vtable3f
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/vtable3f.C
350
utf_8
662e7930f2a9fb841a726c2ce0eab9f6
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define A_EMPTY #define B1_EMPTY #define B2_EMPTY #define C_EMPTY #define C_PARENTS B1, virtual B2 #include "vtable3.h"
google
android
vtable3e
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/vtable3e.C
326
utf_8
6325530acae4b2e6847dfd13f8487991
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define A_EMPTY #define B1_EMPTY #define B2_EMPTY #define C_PARENTS B1, B2 #include "vtable3.h"
google
android
ptrmem
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.abi/ptrmem.C
3,971
utf_8
742ebe20c4717dd0f495744d84dc9b09
// { dg-do run } // { dg-options "-fno-strict-aliasing" } /* Generally, the lowest bit of the ptr is used to indicate whether a ptr-to-mem-func points to a virtual or a non-virtual member function. However, some platforms use all bits to encode a function pointer. Such platforms use the lowest bit of the de...
google
android
extern_C
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/extern_C.C
95
utf_8
5ee897a497e0e7fff1e9152d9a6d4fed
// { dg-do assemble } extern "C" { class A { public: void a(); }; } void A::a() {}
google
android
packed1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/packed1.C
226
utf_8
50764f255f496da7ca7c46c49a36a323
// { dg-do run } int main() { struct s { int a; short b; } __attribute__((packed)) t; if (sizeof (t) != (sizeof(int)+sizeof(short))) { return 1; } else { return 0; } }
google
android
protected1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/protected1.C
452
utf_8
60348e5e92f6eabe517fbf0fe4c86b01
// { dg-do assemble } class A { public: int i; A(int j) : i(j){} }; class B : protected A { public: B(int j) : A(j){} void f(){ A k(*this); } }; class C : protected B { public: C(int j) : B(j){} void f(); void g(){ A k(i); } }; class D : public C { public: D(int w) : C(i) {} void ...
google
android
array1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/array1.C
100
utf_8
0a61a52254c1e3a2b526ab1a815a4328
// { dg-do assemble } char *stuff() { char array[10]; // { dg-warning "" } return array; }
google
android
static1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/static1.C
148
utf_8
8a5844fd85b143ac9bd9023567daf7b5
// { dg-do assemble } class A { public: static int a; }; class B : public A { public: static int b; }; int B::a; // { dg-error "" }
google
android
template2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/template2.C
791
utf_8
320f3eae6dc6bbd5aa64e7a285f758f7
// { dg-do assemble } // prms-id: 10046 template <class T> class Array { public: T const & operator[] (int i) const; }; class Referenceable {}; template < class Referencee > class Referencer { public: operator Referencee *() const { return i_referencee; } protected: Referencee* i_referencee; }; class S...
google
android
array2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/array2.C
89
utf_8
4814bbc47b79f5ea9993897987c92f2e
// { dg-do assemble } extern const int a[]; extern const int a[]; extern const int a[];
google
android
inherit2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C
393
utf_8
e61a517d2a4348cf701449839d32bb64
// { dg-do assemble } #include <stdlib.h> class A { public: void z(); A(void) {} private: A(const A &) { abort(); } // { dg-error "private" } const A& operator =(const A &) { abort(); } }; class B : public A { // { dg-error "" } public: B(void) {} }; void f(B b) { // { dg-error "initializing" } } void...
google
android
template1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/template1.C
483
utf_8
07128f5cc8798df78f430904baa475f2
// { dg-do assemble } // prms-id: 10038 template < class Referencee > class Referencer { public: Referencer (Referencee const * pReferencee); }; template <class T> class Array { public: int addElement (T const & e); int addElement (); }; class ScenarioGroup; class ScenarioSet : public Array< Referencer<...
google
android
template4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/template4.C
250
utf_8
aeb5818b98767c6df0e85e3dd85f0da7
// { dg-do run } // prms-id: 10166 template <class A> class B { public: int f() { for(int x=0;x<10;x++) { continue; return 1; } return 0; } private: A w; }; int main() { B<int> c; return c.f(); }
google
android
nested1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/nested1.C
163
utf_8
da80b7e97d4e9ee67decc3ead64065ff
// { dg-do assemble } struct A { struct B { typedef long T; int i; }; }; struct C { struct B { typedef float T; int i; }; }; C::B::T a;
google
android
case1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/case1.C
199
utf_8
8056dcfa8917dfb2a0e8d121205bf105
// { dg-do assemble } // prms-id: 9028 class Foo; int main() { int i=0; switch (i) { case ((Foo *)0): // { dg-error "" } case ((Foo *)1): // { dg-error "" } break; } }
google
android
friend1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/friend1.C
89
utf_8
2f188fa554c65d209a21f12ca8a60494
// { dg-do assemble } class C { public: static friend int f(); // { dg-error "" } };
google
android
delete1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/delete1.C
352
utf_8
e43a987d5f329395c6204f18e61bf3d7
// { dg-do run } // prms-id: 7330 #include <stddef.h> int size = 0; struct X { int x; void *operator new[](size_t sz) throw() { size = sz; return 0; } void operator delete[] (void *vp) { ::operator delete(vp); } }; int main() { X (*px) [10]; px = new X[5][10]; ...
google
android
template3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/template3.C
699
utf_8
d3aa332b02a50a2c976fd3acd8f16058
// { dg-do assemble } // prms-id: 9979 template < class Referencee > class Referencer { public: Referencer() {} }; template <class T> class List { public: List() {} }; template<class T, class KEY> class Dictionary { public: Dictionary() : i_buckets (new List<T>[1234]) {} ~Dictionary() { delete [] i_...
google
android
inherit1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
345
utf_8
6381324057bf382a0e9584c5fcc52260
// { dg-do assemble } class A { char str[10]; public: char* m1 () { return str;} }; class C : public A { public: }; class B : public A { public: char* m1 () { C::m1(); return ""; } // { dg-error "cannot call" } // { dg-warning "deprecated" "depr" { target *-*-* } 14 } }; int main () { A a; B b; C c; a...
google
android
incomplete-cast1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/incomplete-cast1.C
370
utf_8
779ab9435dff9dfb3a118872034a5aaa
// { dg-do assemble } // prms-id: 5274 class VHDLIdentifier; class VHDLPackageProtoRep { public: int thing(); private: virtual VHDLIdentifier &actual_name() ; }; extern void form(const char *format, ... ); int VHDLPackageProtoRep::thing() { form("package `%s'", (char *)actual_name()); // { dg-error "" } c...
google
android
cond1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.bob/cond1.C
666
utf_8
98963d688b2d53c91b4029129c2fab7a
// { dg-do assemble } // prms-id: 9866 class TChar { public: explicit inline TChar(unsigned int aChar); inline operator unsigned int() const; private: unsigned int iChar; }; inline TChar::TChar(unsigned int aChar) : iChar(aChar) {} inline TChar::operator unsigned int() const {return(iChar);} c...
google
android
nest19
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/nest19.C
1,154
utf_8
45f38e149ffb5039ba9a88a9ef169674
// { dg-do assemble } // GROUPS passed nested-classes // This is the first line of file ||t3.C||. // This code demonstrates a variation of the same problem with nested // types. In C++, nested typedefs are not supposed to be visible // outside their class scopes but they apparently are in gcc 2.4.5. // This code com...
google
android
err-msg3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C
302
utf_8
d467baa58472c5539a8d54137ae9fd90
// { dg-do assemble } // GROUPS passed error-messages #include <fstream> #include <iomanip> // This error should not appear: // bug.C: In method `test::test(const class test &)': // bug.C:8: field `' not in immediate context class test{ public: int flags; test() {} }; int main() { return 0; }
google
android
copy3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/copy3.C
748
utf_8
b7141724519f9a12241a6647f951214e
// { dg-do run } // GROUPS passed copy-ctors /* If I compile it with cfront (AT&T C++ Translator 2.00.02 08/25/89) and run it I get: A::A() A::A(const A&) B::Bar() A::~A() A::~A() If I compile it with g++ (gcc version 2.2.2) and run it I get: A::A() B::Bar() A::~A() A::~A() */ extern "C" int printf (cons...
google
android
template29
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/template29.C
311
utf_8
2e66ba1a47e2f936b45a03316358156c
// { dg-do assemble } // GROUPS passed templates template <class ElementType> class A { public: A(ElementType) {} ElementType get() const ; }; template <class ElementType> ElementType A<ElementType>::get() const { return ElementType(0); } int main() { const A<short> a(3); }
google
android
overload11
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/overload11.C
144
utf_8
07907e1d6a94a1f60460f4d196a00926
// { dg-do assemble } // GROUPS passed overloading class foo_int { public: int & i; foo_int (int &j) : i(j) {} void inc () { i++; } };
google
android
crash53
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash53.C
354
utf_8
0d23b5f837eca50d6659a9747fa8e8bd
// { dg-do assemble } // GROUPS passed old-abort class A { public: class B { public: virtual ~B(); }; }; template<int I> class C { public: class B : public A::B { }; // bug2.cc:18: Internal compiler error 233. }; C<0> c;
google
android
enum3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/enum3.C
329
utf_8
8cf25d4893d6ec1d0f9498f4864e48cf
// { dg-do assemble } // GROUPS passed enums enum foo { x = 0 }; enum bar { // this used to say `x' wasn't a constant, because build_enumerator // was getting the value of x wrapped around a NOP_EXPR. It now // strips them off before working on it, so we shouldn't get any // errors for this. y = (x + 0x...
google
android
crash9
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash9.C
422
utf_8
962d23d791b7d37abfadfcf72231ed39
// { dg-do assemble } // GROUPS passed old-abort class A {}; class SimQuery { public: SimQuery(); ~SimQuery(); int SetMeshFile(char name[]); protected: A& scaling; A* mesh; }; SimQuery::SimQuery():scaling(A) {}// { dg-error "" } .* SimQuery::~SimQuery() {} int SimQuery::SetMeshFile(char name[]) { mesh ...
google
android
warnings5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/warnings5.C
176
utf_8
c1f2cde32459383a9969f37c5fa9339e
// { dg-do assemble } // GROUPS passed warnings enum TypeKind { ATK, BTK } ; struct Type { enum TypeKind kind : 8; void setBTK(); }; void Type::setBTK() { kind = BTK; }
google
android
sizeof1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/sizeof1.C
229
utf_8
469166bbd4c9d9e97114b09c480a39e7
// { dg-do assemble } // { dg-options "-pedantic-errors" } // GROUPS passed sizeof // ARM $5.3.2 void f() { } int main() { // sizeof may not be applied to a function int i = sizeof( f);// { dg-error "" } .* return 0; }
google
android
crash56
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash56.C
11,469
utf_8
37576ce6de15ebb6976cb784c3bb47f7
// { dg-do assemble } // { dg-options "-Wno-deprecated" } // GROUPS passed old-abort const bool FALSE = 0; const bool TRUE = 1; class ListDProto { protected: class link; public: ListDProto(); ListDProto(const ListDProto&); virtual ~ListDProto(); void operator=(const ListDProto&); unsigned leng...
google
android
vtables1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/vtables1.C
685
utf_8
62ac13ff7f4e3b97c427d1b8e55a3aa8
// { dg-do run } // GROUPS passed virtual-tables // Check that virtual function tables are generated and used // even for struct's/classes which have no explicit constructors. extern "C" int printf (const char *, ...); int base_func_member_1_called = 0; int derived_func_member_1_called = 0; struct base { virtual ...
google
android
visibility10
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/visibility10.C
295
utf_8
a04d488a9766677467424bbf662856ed
// { dg-do assemble } // GROUPS passed visibility struct base { protected: void base_func() {}// { dg-error "" } .*is protected.* }; struct derived : public base { protected: void derived_func(base *ptr) { ptr->base_func(); }// { dg-error "" } within this context };
google
android
template5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/template5.C
584
utf_8
7ec76da5b6828d911bac3467cf42bb54
// { dg-do assemble } // GROUPS passed templates template<class T> class Vector { public: Vector(int x); ~Vector(); T& operator [] (int i); private: T* v; int sz; } ; template<class T> Vector<T>::Vector(int x) { sz = x; v = new T (sz); } template<class T> Vector<T>::~Vector() { dele...
google
android
ptolemy1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy1.C
369
utf_8
c8d9f333e6678f961092c204706b1072
// { dg-do assemble } // GROUPS passed ptolemy-bugs class Tcl_Interp; class PTcl { public: PTcl(Tcl_Interp* interp = 0); ~PTcl(); int alias(int argc,char** argv); }; typedef int (PTcl::*InterpFuncP)(int,char**); struct InterpTableEntry { const char* name; InterpFuncP func; }; static InterpTableEntry funcTab...
google
android
abstract1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/abstract1.C
250
utf_8
ae92d366fb4b1fb345a39cf07442d5f1
// { dg-do assemble } // GROUPS passed abstract-functions class O { public: virtual int c()=0; }; class I: public O { }; class S: public virtual I { public: int c(); virtual int v()=0; }; class D: public S { int v(); }; D *p=new D();
google
android
template12
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/template12.C
211
utf_8
ddba51178f0d708b9b73306649f2de25
// { dg-do assemble } // GROUPS passed templates inline void foo (const int &x) {} template <class type> inline void foo (const type &x) {x.eat_this_and_die();} int main (int argc, char **argv) {foo (argc);}
google
android
crash36
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash36.C
122
utf_8
de445257f614defad41bbc90815c0723
// { dg-do assemble } // GROUPS passed old-abort struct wait { int w_status; }; int wait(); extern "C" int wait(int*);
google
android
code-gen6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/code-gen6.C
827
utf_8
cb8b6683b1b5000f3533f1b6efec806b
// { dg-do run } // GROUPS passed code-generation // Check that type float parameters can be correctly passed to // methods. extern "C" int printf (const char *, ...); class tres_floats { float ff1; float ff2; float ff3; public: tres_floats (float f1, float f2, float f3); float get_f1 (); float get_f2 (); fl...
google
android
arm1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/arm1.C
198
utf_8
bdc4d1d13818def6ccb6fa43c79d8bf5
// { dg-do assemble } // { dg-options "-pedantic-errors" } // GROUPS passed ARM-compliance // ARM $5.7, it's illegal to do math on a `void*'. int main() { void *p; ++p;// { dg-error "" } .* }
google
android
overload3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/overload3.C
867
utf_8
8f9a7a0e2525ec5a95f59531dc0bf285
// { dg-do assemble } // GROUPS passed overloading typedef int rutBoolean; class rutBigIntRep { public: friend rutBoolean operator>(const rutBigIntRep& a, const rutBigIntRep& b); operator rutBoolean() const; protected: enum Kluge {kluge}; rutBigIntRep(Kluge) {} rutBigIntRep(); rutBigIntRep(const rutBigI...
google
android
init6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/init6.C
375
utf_8
ede67b1757812c2a41023760af3a0608
// { dg-do assemble } // GROUPS passed initialization class Tag { public: Tag(int i):value(i){} int value; }; extern const Tag myTag; extern const Tag myTag=9; // The compiler should not issue an error on this line; expand_static_init // should be checking that there's no initializer for this line, and thus // doe...
google
android
parse1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/parse1.C
246
utf_8
947a08d1eb2c6c39e11bb5d45072caf1
// { dg-do assemble } // GROUPS passed parsing class Try { private: char s; public: // an escaped double-quote should not call consume_string inside // reinit_parse_for_block void mf() { s='\"'; } }; int main() { Try x; x.mf(); }
google
android
warnings4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/warnings4.C
156
utf_8
f1b0a8eb7deb033354851bba84b370b8
// { dg-do assemble } // GROUPS passed warnings int main () { register int x; int * foo = &x; // in C++ it's perfectly legal to do this return 0; }
google
android
crash35
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash35.C
394
utf_8
4223de66df390e48223befc3091d9953
// { dg-do assemble } // GROUPS passed old-abort const unsigned int ENET_INTERRUPT_MID = 5; extern "C" void ENET_RxP(); class EnetReceiver { public: friend void ENET_RxP(); void receiveMessage(); int *messagePointer; }; void EnetReceiver::receiveMessage() { if (*((unsign...
google
android
crash25
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash25.C
284
utf_8
bc249c935459f8b928782161b15f47b8
// { dg-do assemble } // GROUPS passed old-abort class memo{ public: static int rep; }; class port_head : public memo { public: static int rep; unsigned cap(); }; class buff_head : private port_head { public: static int rep; port_head::cap; // { dg-warning "deprecated" } };
google
android
crash64
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash64.C
516
utf_8
000a3c8e442d1855953d0177f586ff4d
// { dg-do assemble { target { ! c++11 } } } // GROUPS passed old-abort typedef __SIZE_TYPE__ size_t; typedef void (*RF_Ptr)(void *); struct _im_pers_mem_spec { _im_pers_mem_spec(void ); _im_pers_mem_spec(auto int of, auto int n); }; struct _type_desc { _type_desc(const char *, int , RF_Ptr , int , int ,...); }...
google
android
crash28
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash28.C
247
utf_8
3acae1cd69bb3c31d731fd11d5c3b288
// { dg-do assemble } // GROUPS passed old-abort class abc { public: void F() { return; } private: typedef int myint; typedef struct { int b; } mystruct; typedef union { int c; } myunion; };
google
android
crash1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash1.C
879
utf_8
62172a7e4c59ed5aa0aa705ae8090fe0
// { dg-do assemble } // GROUPS passed old-abort class D_Interval; class Date { public: Date(const D_Interval*,const Date&); private: const D_Interval* interval; }; class Time_Interval { public: Time_Interval(const Date& start,const Date& stop); const Date& Start() const { return start; } const Date& ...
google
android
bit-fields2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/bit-fields2.C
249
utf_8
1a5afe81ac27807110b2c7f1e488f194
// { dg-do assemble } // GROUPS passed bit-fields struct S { char c; int i:8; } s; int main() { int &ir = s.i; // { dg-error "" } address of bitfield int *ip = &s.i; // { dg-error "" } address of bitfield ir = 10; }
google
android
shadow1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/shadow1.C
142
utf_8
2ae7dc2e9f111a3ddbbb01e5ca479553
// { dg-do assemble } // GROUPS passed errors void f( int a) { int a; // this should be an error now// { dg-error "" } .* { int a; } }
google
android
nest11
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/nest11.C
223
utf_8
bfbc466132e7951c7ce9fabf1a58ea31
// { dg-do assemble } // GROUPS passed nested-classes class A { int x; struct B { int x; }; struct C; friend struct C; struct C { int bug (A::B &y); }; }; int A::C::bug (A::B &y) { return y.x; }
google
android
nest15
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/nest15.C
518
utf_8
442e2da4e45cedff3e6ea8b1cfa648d1
// { dg-do assemble } // GROUPS passed nested-classes class BDDHeap { public: BDDHeap(); BDDHeap(const BDDHeap&); class Page { public: int i; }; struct Pointer { Page *page; unsigned index; Pointer(); Pointer(const BDDHeap& heap); }; struct Half { struct { Page *top; ...
google
android
visibility5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/visibility5.C
265
utf_8
847a939f79de7db94d518e72f9bf6da4
// { dg-do assemble } // GROUPS passed visibility template<int K> class B; template<int K> class A {int n; friend class B<K>;}; template<int K> class B {public: void method(A<K>) const;}; template<int K> void B<K>::method(A<K> X) const {X.n=0;} typedef B<2> B2;
google
android
array1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/array1.C
262
utf_8
9fb0a36cc0560403126227bd96d83828
// { dg-do assemble } // GROUPS passed array-bindings extern "C" int printf (const char *, ...); char array[~(~((__SIZE_TYPE__)0ul)>>1)|~(((__SIZE_TYPE__)0ul)>>3)]; // { dg-error "" } overflow in array dimension.* int main () { printf ("PASS\n"); return 0; }
google
android
scope3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/scope3.C
378
utf_8
6f443676e307f482da1edc2172b5ad24
// { dg-do assemble } // GROUPS passed scoping // This is fixed when NEW_CLASS_SCOPING is on. template<class T> class ArrayG { public: ArrayG(); protected: const unsigned INITIAL; T* array; }; template<class T> ArrayG<T>::ArrayG(): array(new T[INITIAL]) { } struct X { struct Correspondence { in...
google
android
complex1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/complex1.C
548
utf_8
6e22be9c7d61cc5a52941c8561a504a3
// { dg-do run } // { dg-options "" } // This test makes sure that the stuff in lex.c (real_yylex) is // set up to handle real and imag numbers correctly. This test is against // 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" ...
google
android
access1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/access1.C
284
utf_8
fc6063368e5474a8653856d27762de94
// { dg-do assemble } // GROUPS passed access-control class Base { protected: virtual void DoSomething() = 0; }; class Fibber : public Base { public: void DoBP() { DoSomething(); } }; class Flat : public virtual Fibber { public: void DoIt() { DoSomething(); } };
google
android
bool1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/bool1.C
169
utf_8
9b67849cb4ac27393dcb0106ad390716
// { dg-do assemble } // GROUPS passed boolean int main() { typedef char Boolean; // Instrinsic.h Boolean c = false; bool b = true; if (!c != !b) ; }
google
android
misc5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/misc5.C
130
utf_8
73df8742fc3243af61e6c806600b2e92
// { dg-do assemble } // GROUPS passed miscellaneous class A { static A aa[2]; }; A A::aa[2]; // should be completely legal
google
android
crash30
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
121
utf_8
d09610f03864daed6e9a2f6492204235
// { dg-do assemble } // GROUPS passed old-abort #include <string> int main(void) { std::string a[] = {"Hello"}; }
google
android
def-fns1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/def-fns1.C
592
utf_8
350b9b4ee950b8a7ffbc7d2a544f3557
// { dg-do assemble } // GROUPS passed default-functions class dictionary { public: dictionary (int); }; class symbol { public: symbol (); }; // a default ctor should not be generated for hyphenation_language, // since a ctor has already been declared; if one is generated, there // will be an error about not eno...
google
android
static2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/static2.C
311
utf_8
a7ca45289830afd8555d41c2c9c2844f
// { dg-do assemble } // GROUPS passed static class A { public: void member(void) { } static void staticMember() { member (); // illegal, no object for calling non-static method// { dg-error "" } .* } }; int main() { A::staticMember(); }
google
android
crash29
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C
425
utf_8
1b25cc684b9178522362a89217eb4c06
// { dg-do assemble } // GROUPS passed old-abort union Value { Value(){} }; struct GlobalAddress // { dg-message "note" } { GlobalAddress(Value *nvar){} // { dg-message "note" } }; int main() { new GlobalAddress(Value()); // internal error occured here// { dg-error "no matching" } // { dg-message "candidate" ...
google
android
synth1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/synth1.C
666
utf_8
4f9de246b22bde153f40af23fc7a7847
// { dg-do assemble } // { dg-xfail-if "" { sparc64-*-elf } { "*" } { "" } } // { dg-options "-pedantic-errors -g -Wall" } // GROUPS passed synthetics // Check to make sure that g++ doesn't get freaked out about the use // of generated methods that it supposedly "can't see". class Char { public: Char(); Char(c...
google
android
rtti1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/rtti1.C
313
utf_8
f542256d29fc3f891ebfff745c3c7ade
// { dg-do assemble } // GROUPS passed RTTI #include <typeinfo> struct B { virtual ~B(){} }; struct D0 : public virtual B { virtual ~D0(){} }; struct D1 : public virtual D0 { virtual ~D1(){} }; struct C : public virtual B, public D1 { virtual ~C() { } };
google
android
friend2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/friend2.C
198
utf_8
89c2853b246bbebab91ee4249f3bd37f
// { dg-do assemble } // GROUPS passed friends class X { int a; friend void friend_set (X*, int); }; void friend_set (X *p, int i) { p->a = i; } void f() { X obj; friend_set (&obj, 10); }
google
android
sizeof3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/sizeof3.C
237
utf_8
16179429ab050df3f7e21bf20815e01d
// { dg-do assemble } // { dg-options "-pedantic-errors" } // GROUPS passed sizeof // ARM $5.3.2 class bar; int main() { // sizeof may not be applied to an undefined class int k = sizeof (bar);// { dg-error "" } .* return 0; }
google
android
template7
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/template7.C
565
utf_8
722109cba3128ed134107572158467be
// { dg-do assemble } // GROUPS passed templates template <class ET> class ChainElem { public: ET data; }; template <class ET> class Chain { public: ChainElem<ET> *first; virtual ~Chain() {} }; struct B { }; struct X : B { ~X (); }; struct TBNFexpression { }; struct TCaseLabelPair { }; struct TVari...
google
android
nest20
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/nest20.C
652
utf_8
4c77edec6f7551e4309e6dec07951f06
// { dg-do assemble } // GROUPS passed nested-classes // This is the first line of file ||t5.C||. // This code initializing an unnamed union inside a class appears to // be legal C++ input and compiles fine with AT&T cfront 3.0.1, but // gcc 2.4.5 complains about multiple initializations of the same // member. class...
google
android
err-msg2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/err-msg2.C
206
utf_8
31f487fac028affda10935beee342b67
// { dg-do assemble } // GROUPS passed error-messages typedef void (*pfv)(double, double); extern "C" { typedef void (*pfv)(double, double); // { dg-error "" "" { xfail *-*-* } } conflicting linkage }
google
android
template20
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/template20.C
256
utf_8
897a7136619011f1e3d19d16dd2a78d3
// { dg-do assemble } // GROUPS passed templates template <class A, class B> class Map; class Foo { public: static Map<int,int> bar; }; template <class A, class B> class Map { public : int find(); }; int main() { int z = Foo::bar.find(); }
google
android
init1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/init1.C
188
utf_8
e03dc940f61f56cd1996bf49e6201eee
// { dg-do assemble } // GROUPS passed initialization class Thing{ private: int x,y; public: Thing (int v, int q) { x = v; q = y; } void doit(int); }; Thing t(18,19);
google
android
init7
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/init7.C
311
utf_8
1bbf15c68e29929efce6632eabf580cd
// { dg-do assemble } // GROUPS passed initialization struct myChoiceList { int bla; int blubb; int brummbrumm; }; extern const myChoiceList foo; extern const myChoiceList foo = {1,1,1}; // finish_decl should have an exclusion so an error is not produced // for this line. extern const myChoiceList foo;
google
android
crash44
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash44.C
352
utf_8
99f6d128ad96516aeafdae150359d92a
// { dg-do assemble } // GROUPS passed old-abort template <class T> class bug { public: void Foo(const int = 0); void NotRedeclared(const int); private: T TheItem; }; template <class T> void bug<T>::NotRedeclared(const int) { } template <class T> void bug<T>::Foo(const int) { } int main() { bug<char>...
google
android
ctors2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/ctors2.C
479
utf_8
b976465fc875e08dc788220e951e9f2b
// { dg-do run } // GROUPS passed constructors // Check that sub-words sized class members are correctly set // by constructors. extern "C" int printf (const char *, ...); struct base { int f1 : 8; int f2 : 8; base (int arg1, int arg2); }; base global_base(0x55, 0x7e); int main () { if ((global_base.f1 != 0x...
google
android
crash51
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash51.C
459
utf_8
405f96434188666195e1798efc513146
// { dg-do assemble } // GROUPS passed old-abort class obj; typedef obj *obj_t; class obj { public: obj( const obj& o ); }; extern obj nowhere; class set: public obj { unsigned bit_vector; public: set( const obj& o ); set& operator|=( const int q ); }; enum pin_enum { E_F, O_C, O_D, O_...
google
android
template15
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/template15.C
507
utf_8
813d9e5c4acc63a3e9e56905b4f0b177
// { dg-do assemble } // GROUPS passed templates template<class T> class Stack { public: Stack (int s = 10); //Comment out "= 10" and it will compile ~Stack(void); //Omitting "void" doesn't help }; template<class T> Stack<T>::~Stack(void) { } //If this definition comes before the on...
google
android
crash23
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash23.C
272
utf_8
33544868a90fd87dbf29417ea90a49fd
// { dg-do assemble } // GROUPS passed old-abort // This used to die in chainon; it shouldn't any more. class A { public: class B { public: void f (); void g (int); }; void B::f () {}// { dg-error "" } .* void B::g (int val) {}// { dg-error "" } .* };
google
android
anon-union1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/anon-union1.C
161
utf_8
8f1779bd8e0be9254448d93593ccd35a
// { dg-do assemble } // GROUPS passed anonymous-unions static union { char* uC; private: int uI;// { dg-error "" } .*private member.* };
google
android
crash61
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash61.C
194
utf_8
cdbb9c9cfe241a7d44af748e52523748
// { dg-do assemble } // GROUPS passed old-abort template <class TP> class sapp { }; class foo {}; extern foo& __iomanip_setw (foo&, TP);// { dg-error "" } type spec.*
google
android
new2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/new2.C
1,371
utf_8
46f8297d90cafbb23e2ae0bf3a52be6f
// { dg-do run } // GROUPS passed operator-new // Check that if there is a user defined class-specific operator // new for a given class, that operator is invoked when a new // object of the class is requested, regardless of whether or not // there is also a constructor for the given class, and regardless // of whethe...
google
android
crash8
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash8.C
238
utf_8
6b64a687391a0cf3a98a8f7b82194214
// { dg-do compile } // GROUPS passed old-abort template<int a, int b> class Elvis // { dg-error "class Elvis" } { } ; template<int a> class Elvis<0> // { dg-error "wrong number of template arguments" } { int geta() { return a ; } } ;
google
android
misc6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/misc6.C
483
utf_8
62ac4c4e7ac8d55ab12bf733ad6d5ea0
// { dg-do assemble } // GROUPS passed miscellaneous // test that use of `inline' is forbidden when it should be inline int i;// { dg-error "" } .* struct c { inline int i; };// { dg-error "" } .* int foo (inline int i);// { dg-error "" } .* inline class c; // { dg-error "'inline' can only be specified for functions" ...
google
android
crash18
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/crash18.C
588
utf_8
bfae86a3f5c296c84dc86db44e788dc4
// { dg-do compile } // GROUPS passed old-abort typedef int element; class Pix { public: Pix(); Pix(const Pix&); // Friend functions so that v == x works as does x == v works friend int operator==(void *v, const Pix& x) // { dg-message "previously" } { return v == index; } // { dg-error "from this...
google
android
template23
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/template23.C
438
utf_8
a99b2cfa96092ee5eda03d6704610cff
// { dg-do assemble } // GROUPS passed templates template <class T> class T_Base {}; template <class T> class T_Derived : public T_Base<T> {}; class Base { public: Base (float name); }; class Derived : public Base { private: T_Base<int>* data_; // Fix (1): Change date_ from T_Base<int>* to T_Derived<int>* p...
google
android
err-msg9
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/err-msg9.C
163
utf_8
7a6a0e6395384ac6c714734bef224a75
// { dg-do assemble } // GROUPS passed error-messages class foo { public: int ~foo ();// { dg-error "" } return type specification for destructor invalid.* };
google
android
template26
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/template26.C
472
utf_8
f01c3664dd88fbacd2f4a8c9051fcd7b
// { dg-do assemble } // GROUPS passed templates class V { public: V(); V(int); }; template <int I> class AA: public virtual V { public: AA(); AA(int); }; template <int I> class BB : public virtual V { public: BB(); BB(int); }; template <int I> AA<I>::AA() {} template <int I> AA<I>::AA(int i): ...
google
android
overload2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/overload2.C
731
utf_8
ade4467b45d58789068683691ed64ee7
// { dg-do run } // GROUPS passed overloading // Check that calls to the correct overloaded virtual // functions are generated even where the type of the formal // arguments for the overloadings are similar or related. extern "C" int printf (const char *, ...); int proper_method_called = 0; struct base { int memb...
google
android
misc16
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.brendan/misc16.C
364
utf_8
926bd99f92e6fd4c7ad873dd3008323e
// { dg-do assemble } // GROUPS passed miscellaneous-bugs // Using a typedef causes a compiler error typedef unsigned int Uint32; // Using a define so that there isn't a typedef works OK. //#define Uint32 unsigned int Uint32 func0(Uint32, Uint32) { return 0; } Uint32 func1(Uint32, Uint32) { return 1; } Uint3...