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
chromium
virtual
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/virtual.C
659
utf_8
30f9b5535184121baf2ec1b03c4ce3b6
// { dg-do assemble } // Newsgroups: gnu.g++.bug // Subject: gcc-2.5.5 bug in multiple inheritance and pure virtual functions // Date: 25 Jan 1994 23:41:36 -0500 // Bug: g++ fails to notice definitions of abstract virtuals. class A { public: virtual void a1() = 0; virtual void a2() = 0; }; class B { public: vir...
google
chromium
synth8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/synth8.C
232
utf_8
bbe86c8c489266c11677d7fd660aa887
// { dg-do assemble } // Bug: the synthesized constructor for A tries to use the mem-initializer // list for the B constructor. struct A { virtual ~A(); }; struct B { B(); char* x; A* a; }; B::B() : x(0), a(new A()) { }
google
chromium
template23
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/template23.C
195
utf_8
17d21442206f559b41c86a494675f0a6
// { dg-do assemble } // Testcase for instantiation with cv-qualified type template<class T> struct A { void foo(); }; template<class T> void A<T>::foo() { } template class A<const int>;
google
chromium
overload26
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/overload26.C
409
utf_8
cb3dbce2f7d778dfd0a2002a389931a5
// { dg-do assemble } // Bug: g++ tries to build up a mangled name for its ideal match, which // fails for one call below. extern const char foo[]; extern const char baz[10]; extern const char *fred; struct A { void f(const char *); } *a; void bing(const char *); int main () { a->f(foo); // { dg-bogus "" } bec...
google
chromium
rfg23
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/rfg23.C
159
utf_8
33c899e34b73d78a4e367c8ce81771b9
// { dg-do assemble } signed char *ptr2 = "hello"; /* { dg-error "" } changing sign */ unsigned char *ptr3 = "hello"; /* { dg-error "" } changing sign */
google
chromium
crash10
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/crash10.C
144
utf_8
b908a684a68228cc43c1c82e98f30c15
// { dg-do assemble } // PRMS Id: 5155 struct A { enum foo { bar }; }; typedef A::foo A::foo; // { dg-error "" } causes compiler segfault
google
chromium
new5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/new5.C
82
utf_8
a0e06fefdf82fe1040c38c7cfbfe6cc6
// { dg-do run } int main () { const int *p = new const int (0); delete p; }
google
chromium
warning5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/warning5.C
406
utf_8
a527d9d80c0f8b1b8cc068fbe97dd294
// { dg-do run } // { dg-options "-Wall" } // PRMS Id: 5135 // Bug: g++ complains that the result of the new expression is not used. extern "C" int printf (const char *, ...); inline void * operator new (__SIZE_TYPE__, void *p) { return p; } class foo { public: foo() : a(42) {}; int a; }; int main() { char bu...
google
chromium
template41
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/template41.C
579
utf_8
06612c475479383f58b655c5b6f0dad6
// { dg-do run } // PRMS Id: 11420 // Bug: Can't handle indirect virtual template base init. extern "C" int printf (const char *, ...); template<class T> class Vbase { public: Vbase(T i) { printf ("%d\n", i); } }; template<class T> class D1 : virtual public Vbase<T> { public: D1(T i) : Vbase<T>(i) {} }; temp...
google
chromium
template25
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/template25.C
788
utf_8
f99f8582ab403089e9e338e2a37e5eda
// { dg-do run } // PRMS Id: 6393 // Bug: g++ is too lax in considering UPTs to be the same. template <class R, class T> class Bar { public: R do_bar (T arg); }; template <class T> class Foo { T i; public: void do_foo () {} void do_foo (T const & t) {} void do_foo (Bar<char, T> const & bar); // {} Put t...
google
chromium
tredecl4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/tredecl4.C
266
utf_8
1e383f120373a81aa0013338e72ae641
// { dg-do assemble } // It is illegal to use the name of a class template for anything else, // including another class template. template <class T> class A { }; // { dg-message "previous" } template <class U, class V> class A { }; // { dg-error "redeclared" }
google
chromium
incomplete2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/incomplete2.C
95
utf_8
f6155a6c2f02b991be6ed6d9e1a08f7a
// { dg-do assemble } struct A { int foo(A a) { return a.bar(); } int bar(); int n; };
google
chromium
scoping15
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/scoping15.C
384
utf_8
8ed8d8244b592c10ad46057d72681a50
// { dg-do assemble } // { dg-options "-ffriend-injection" } // Bug: g++ ignores the :: qualification and dies trying to treat an integer // variable as a list of functions. class DComplex { public: friend double imag(const DComplex& a); }; class FComplex { public: friend float imag(const FComplex& a); };...
google
chromium
conversion2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/conversion2.C
174
utf_8
bd60454e9aad86ae0c3b5482d873c71f
// { dg-do assemble } // PRMS Id: 3069 void f(int&); // { dg-error "" } referenced by error below void g(const int& i) { f(i); // { dg-error "" } discarding const }
google
chromium
typeck
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/typeck.C
383
utf_8
7291a856ad3f7266858cde00b217ccd2
// { dg-do assemble } // Bug: g++ fails to catch incompatibilities in the parameter lists when // assigning. typedef struct S *type_p; typedef struct S const *ctype_p; typedef ctype_p (*PF) (int); type_p callee (type_p arg) { return 0; } void foobar () { static PF p = callee; // { dg-error "" } p = callee; ...
google
chromium
template17
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/template17.C
192
utf_8
921113a11d24628ad027766ee5b2838b
// { dg-do assemble } // Caught by Booch Components. // Bug: g++ tries to instantiate nested enums. template <class T> struct A { struct B { }; enum C { c }; }; template struct A<int>;
google
chromium
init2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/init2.C
146
utf_8
be5d677079c8e62557abf64331250b34
// { dg-do run } // PRMS Id: 5126 extern int i, j; static const int foo [] = { i, j }; int i = 5, j = 42; int main() { return foo[1] != 42; }
google
chromium
shadow1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/shadow1.C
171
utf_8
61616ca0577f487c8999427865215005
// { dg-do assemble } // { dg-options "-Wshadow" } class x { public: void fun(); private: int foo; }; void x::fun() { } main () { float foo; }
google
chromium
ref6
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/ref6.C
75
utf_8
89bc02b90fb886d6f423287b16b4a241
// { dg-do assemble } const int &f(); int &a = f(); // { dg-error "" }
google
chromium
optimize
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/optimize.C
556
utf_8
50849d785fd4c47ffa71357f340f5f0e
// { dg-do assemble } // { dg-options "-O -pedantic-errors" } // Bug: g++ claims that control can fall off the end of these functions. // PRMS Id: 4943 struct A { A(); A(const A&); A& operator= (const A&); ~A(); }; int f () { A a[2]; return 1; } // { dg-bogus "" } jump_optimize int g () { A a; re...
google
chromium
rfg3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/rfg3.C
261
utf_8
f09660c79805379617f5d3f5b0e40aab
// { dg-do assemble } // Bug: g++ remembers the members of OUTER and complains about the second // definition. void test () { { struct OUTER { struct INNER { int mbr; } member; }; } { struct OUTER { struct INNER { int mbr; } member; }; } }
google
chromium
enum2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/enum2.C
125
utf_8
40709fda41cada7eee5228b625340a33
// { dg-do assemble } enum tristate { no = -1, maybe, yes }; void foobar () { tristate var = no; // { dg-bogus "" } }
google
chromium
warning6
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/warning6.C
96
utf_8
72dab6b8f0b29b602295c6af7a5f15be
// { dg-do assemble } // { dg-options "-Wunused" } struct A { int i:8; virtual ~A() {} };
google
chromium
overload1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/overload1.C
204
utf_8
1af3ca24349ac74154f0d4733a757f63
// { dg-do assemble } // Bug: g++ thinks there is a conversion from void * to B *. struct A { operator void* (); }; struct B: public A { }; void bar (A& a) { B* bp = (B*)a; // { dg-error "" } }
google
chromium
enum
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/enum.C
232
utf_8
ccd6d94073b06051f8b3a501c9e981a1
// { dg-do assemble } // PRMS Id: 4337 // Bug: Enums are not looked up to arbitrary depth. struct W { enum A { B }; }; struct X : public W {}; struct Y : public X {}; struct S { X::A a1; Y::A a2; // { dg-bogus "" } };
google
chromium
scoping9
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/scoping9.C
195
utf_8
ab7a07cc0487ab0ed3103edee5f02796
// { dg-do assemble } // Bug: g++ silently mangles the second 'B' to 'A::B', so the definition is // lost. struct A { enum B { }; }; struct C: public A { enum B { }; void foo (C::B); };
google
chromium
anon4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.jason/anon4.C
208
utf_8
0f6b640e9b92540551a77f97d30556b8
// { dg-do assemble } // { dg-options "-O" } // PRMS Id: 5371 // Bug: g++ screws up the alignment of buff and dies. main() { union { double a; char buff[sizeof(double)]; }; void *p = buff; }
google
chromium
vtable3b
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable3b.C
326
utf_8
56ddac7d105a11ccda8236145c04d603
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define B1_EMPTY #define B2_EMPTY #define C_EMPTY #define C_PARENTS B1, B2 #include "vtable3.h"
google
chromium
empty2
.C
native_client/nacl-gcc/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
chromium
arraynew
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/arraynew.C
3,331
utf_8
5b8c1cef0fdb68da111bf9010d1d6d4f
// { dg-do run } #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 #include <cstdlib> #include <new> void* p; void* operator new[](size_t s) throw (std::bad_alloc) { // Record the base of the last array allocated. p = malloc (s); return p; } template <typename T> void check_no_cookie (int i) { void* ...
google
chromium
vtable3e
.C
native_client/nacl-gcc/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
chromium
empty3
.C
native_client/nacl-gcc/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
chromium
vbase1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vbase1.C
2,821
utf_8
84fee86dc35b4828d76a638ec9084b6d
// { dg-do run } // Bug 1611. Under the new ABI, the vtable can be clobbered during dtoring our // primary vbase. We mustn't use the vtable after that to locate our vbases. #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 #include <stdio.h> #include <stdlib.h> int *ctorVBase = 0; int *dtorVBase = 0; int *ct...
google
chromium
empty
.C
native_client/nacl-gcc/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
chromium
vbase8-5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vbase8-5.C
1,184
utf_8
aa70acbcac721d041f597b57b2ec733b
// { dg-do run } // { dg-options "-w" } // Bug 3145 case 5. Horribly complicated class hierarchy class C0 {}; class C1 : virtual public C0 {}; class C2 : public C0 , virtual public C1 {}; class C3 : virtual public C0 , virtual public C2 , public C1 {}; class C4 : virtual public C0 , virtual public C2 ...
google
chromium
cxa_vec
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/cxa_vec.C
5,741
utf_8
7892020dde0db36cf45f8dcadf8e80fc
// This test fails on VxWorks in kernel mode because it depends on the // library version of "::operator new[]" calling the "::operator new" // defined in this module. This doesn't work because the library version // of "::operator new[]" is built into the kernel itself; library relocations // are resolved when the ke...
google
chromium
vtable3g
.C
native_client/nacl-gcc/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
chromium
vbase2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vbase2.C
465
utf_8
7514a6865a786af97664162d7f6693e9
// { dg-do run } // Bug 3006. Constructor vtables were wrong. struct A { virtual ~A() {} }; class B : public virtual A {}; class C : public virtual B {}; class D1 : public virtual C {}; class D2 : public virtual C {}; class E : public virtual D1, public virtual D2 { }; int main(int argc, char* argv[]) { new ...
google
chromium
vtable3j
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable3j.C
342
utf_8
cd547f8ebbbd2c13300e6fd29957e501
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define B1_EMPTY #define B2_EMPTY #define C_EMPTY #define C_PARENTS virtual B1, virtual B2 #include "vtable3.h"
google
chromium
vtable3d
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable3d.C
325
utf_8
71f2b50063c96145699b0d6494715818
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define A_EMPTY #define B1_EMPTY #define C_EMPTY #define C_PARENTS B1, B2 #include "vtable3.h"
google
chromium
primary5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/primary5.C
456
utf_8
6f380830639cca69801edec0c70561f2
// { dg-do run } // Check primary bases are chosen correctly. struct A1 { virtual void Foo () {} }; struct A : A1 { }; struct B : 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
chromium
primary2
.C
native_client/nacl-gcc/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
chromium
vbase4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vbase4.C
2,523
utf_8
7a8c83347ec272dc6fe09ae4ba3841e0
// { dg-do run } // Bug 3089. We ICE'd in construction vtables. int failed; void fail (int val) { if (!failed) failed = val; } struct A { virtual ~A(); A (); virtual void check (void *whole, void *base); }; A::A () { check (this, this); } A::~A () { check (this, this); } void A::check (void *whole, voi...
google
chromium
vbase6
.C
native_client/nacl-gcc/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
chromium
bitfields
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/bitfields.C
3,656
utf_8
239685c9a494cf055e6fc0f6f0b73f2a
// { dg-do run { target i?86-*-linux* x86_64-*-linux* i?86-*-freebsd* } } // { dg-require-effective-target ilp32 } // { dg-options "-malign-double" } /* Test the layout of bitfields in C aggretagtes for compliance with the IA-64 ABI. */ #include <cstring> template<typename T> inline unsigned alignmentof () { stru...
google
chromium
primary3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/primary3.C
1,096
utf_8
e70f6c72d0bdb4e3f855ac85cd751b3f
// { dg-do run } // Check primary bases are chosen correctly. struct A {virtual void Foo () {}}; struct B1 : virtual A {}; struct B2 : virtual A {}; struct C : virtual B1, B2 {}; struct D : virtual C {}; int main () { C c; D d; A *apc = &c; B1 *b1pc = &c; B2 *b2pc = &c; A *apd = &d; B1 *b1pd = &d; ...
google
chromium
ptrflags
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/ptrflags.C
1,443
utf_8
57336bb0967886c438b9ee6c25ae18ef
// { dg-do run } // Test rtti pointer flags #include <typeinfo> #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 #include <cxxabi.h> struct A {int m;}; struct B; using namespace abi; int expect (int flags, std::type_info const &info) { abi::__pbase_type_info const *ptr = dynamic_cast <abi::__pbase_t...
google
chromium
vbase7
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vbase7.C
590
utf_8
75d3d2cb334305e3b2db0cabeb9bfcfe
// { dg-do run } // Build don't run // // 3132. A virtual thunk was missing. struct A { int x; virtual ~A() {} }; struct B { virtual ~B() { } }; struct C { virtual ~C () {} }; struct D : public virtual A {}; struct E : virtual public B, virtual public D {}; struct F : virtual public C, virtual public E {}; st...
google
chromium
primary4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/primary4.C
523
utf_8
9395d9e9e9319220bb7b637faff8c284
// { dg-do run } // Check primary bases are chosen correctly. struct A { virtual void Foo () {}}; struct B1 : virtual A {}; struct B2 : virtual A {}; struct C : virtual B1 {}; struct D : virtual B1, B2, C {}; int main () { D d; A *ap = &d; C *cp = &d; #if __GXX_ABI_VERSION >= 100 if (static_cast <void *> (a...
google
chromium
vbase3
.C
native_client/nacl-gcc/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
chromium
layout1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/layout1.C
708
utf_8
e915ea504ea36f4637508e741b9b2d89
// { dg-do run } #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 struct R { virtual void r (); }; struct S { virtual void f (); }; struct T : virtual public S { virtual void g (); }; struct U : public R, virtual public T { virtual void h (); }; struct V : public R, virtual public S, virtual public...
google
chromium
vtable3a
.C
native_client/nacl-gcc/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
chromium
vtable3f
.C
native_client/nacl-gcc/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
chromium
vtable2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable2.C
3,891
utf_8
42d4bbe5c694e1f4bc9f0d996d822c52
// { dg-do run } // { dg-options "-fno-strict-aliasing" } #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 #include <stddef.h> struct S0 { virtual void s0 (); }; struct S1 : virtual public S0 { virtual void s1 (); }; struct S2 : virtual public S1 { virtual void s1 (); virtual void s0 (); }; struct S...
google
chromium
align
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/align.C
3,434
utf_8
b15581e0d3c70a81bb7ba6044391e968
// { dg-do run { target i?86-*-linux* x86_64-*-linux* i?86-*-freebsd* i?86-*-darwin* } } // { dg-require-effective-target ilp32 } // { dg-options "-malign-double" } /* Test the size and alignment of fundamental C types for compliance with the IA-64 ABI. */ template<typename T> inline unsigned alignmentof () { str...
google
chromium
vbase8-9
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vbase8-9.C
1,164
utf_8
55753064a6448159c52e77b933d914df
// { dg-do run } // { dg-options "-ansi -pedantic-errors -w" } // This is case number 9 class C0 {}; class C1 : public C0 {}; class C2 : public C1 , public C0 {}; class C3 : virtual public C0 , public C2 , virtual public C1 {}; class C4 : virtual public C2 , public C0 , virtual public C3 , public C...
google
chromium
vtable
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable.C
1,340
utf_8
305181b858f05a2e683bd7322f635642
// { dg-do run } // { dg-options "-fno-strict-aliasing" } // Test various aspects of vtable layout. #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 struct S0 { virtual void h () { } int k; }; struct S1 { virtual void f () { } int i; }; struct S2 : virtual public S0 { virtual void g () ...
google
chromium
mangle1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/mangle1.C
145
utf_8
c620ee03e0290cf5f0d193f0774b3dc8
// { dg-do assemble } struct S {}; void f (void (S::*)()) {} void f (void (S::*)() const) {}
google
chromium
crash1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/crash1.C
497
utf_8
cadb8d830b6294a594d395f81b7e01d7
// { dg-do assemble } // // Bug 1944. We failed to calculate nearly emptiness properly, and // lost primary too. struct A1 {}; struct A2 {}; struct B1 : virtual A1 {}; struct B2 : virtual A2 {}; struct C1 : virtual B2 {}; struct C2 : virtual B2 {}; struct D1 : virtual C1, virtual C2 {}; struct D2 : virtual C2, virtua...
google
chromium
vtable3h
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable3h.C
358
utf_8
b86d5b2f1a0ac5ed5ff66e208411b4de
// { 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, virtual B2 #include "vtable3.h"
google
chromium
vbase5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vbase5.C
486
utf_8
f24cdc14a8e761a5a448f7caa08a1ecd
// { dg-do assemble } // // 3130. A virtual base can have canonical and non-canonical instances // of its primary. The canonical one should be first in dfs order. struct A { virtual ~A (); }; struct B { virtual ~B (); }; struct C : virtual public A, virtual public B {}; class D : public virtual C {}; class E : pu...
google
chromium
vtable3c
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable3c.C
325
utf_8
94c945a522d2f7e3475e5aafd3f5219b
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define A_EMPTY #define B2_EMPTY #define C_EMPTY #define C_PARENTS B1, B2 #include "vtable3.h"
google
chromium
aggregates
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/aggregates.C
2,308
utf_8
f058ddff11f1bf80eab26675f6fe1035
// { dg-do run { target i?86-*-linux* x86_64-*-linux* i?86-*-freebsd* } } // { dg-require-effective-target ilp32 } // { dg-options "-malign-double" } /* Test the data layout of C aggregates by checking aggregate size and alignment and field offsets for compliance with the IA-64 ABI. */ template<typename T> inline u...
google
chromium
vmihint
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vmihint.C
1,345
utf_8
445d95964ba4a777690cdf56c7f1bcb7
// { dg-do run } // Test rtti hint flags #include <typeinfo> #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 #include <cxxabi.h> struct A {int m;}; struct A1vA : virtual A {int m;}; struct A2vA : virtual A {int m;}; struct A1A : A {int m;}; struct A2A : A {int m;}; struct B {int m;}; struct C1 : B, virtual...
google
chromium
vtable3i
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/vtable3i.C
334
utf_8
009984378760d1ddf776bfd45984bc54
// { dg-do run } // { dg-additional-files "vtable3.h" } // Check constructor vtables work. #define B1_EMPTY #define B2_EMPTY #define C_EMPTY #define C_PARENTS virtual B1, B2 #include "vtable3.h"
google
chromium
ptrmem
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/ptrmem.C
3,948
utf_8
d893dc682da1e13f9a91975fccf0936f
// { 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
chromium
primary
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.abi/primary.C
1,205
utf_8
b8080a80cc44827c530c09fa1b9d46d7
// { dg-do run } // Test to see that primary bases are selected correctly. #if defined (__GXX_ABI_VERSION) && __GXX_ABI_VERSION >= 100 // S1 is a nearly-empty base. struct S1 { virtual void f () { } }; // S2 is a dynamic, but not nearly-empty, base. struct S2 { virtual void g () { } int i; }; // S1 ...
google
chromium
t118
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t118.C
104
utf_8
cfada6946ead957280ae6f95432ba823
// { dg-do assemble } // GROUPS niklas pt template <class T> class C1 {}; class C1<int> C1_int_object;
google
chromium
t113
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t113.C
171
utf_8
f591ab4acb3f4e7db61710046c08d1b7
// { dg-do assemble } // GROUPS passed niklas explicit-construct virtual-base struct A {}; struct B : virtual A { B(); }; struct C : B {}; struct D { D(C&); }; D d(C());
google
chromium
t135
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t135.C
392
utf_8
85a59b001f1a893825cd16133bef4459
// { dg-do compile } // GROUPS niklas pt friend template <class T> class C1 { public: void diddle_C2 (); }; class C2 { int data_member; // { dg-error "" } friend class C1; // { dg-error "" } }; class C2 C2_object; template <class T> void C1<T>::diddle_C2 () { C2_object.data_member = 99; // { dg-error "" } } C...
google
chromium
t119
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t119.C
114
utf_8
41f11f072ca0663080f51f412ad6b53c
// { dg-do assemble } // GROUPS passed niklas i386 unsigned long foo(unsigned long x) { return x & ~0104000; }
google
chromium
t127
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t127.C
110
utf_8
7904f98f43a515fdf9e8e6672706a0d3
// { dg-do assemble } // GROUPS passed niklas nested-types struct A { struct B { ~B (); }; }; A::B::~B () {}
google
chromium
t126
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t126.C
163
utf_8
5d36ef6b00441a8e9e5c00c50746f48d
// { dg-do assemble } // GROUPS passed niklas nested-types static-members struct A { static void f (); struct B { void g () {} void h () {} }; };
google
chromium
t136
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t136.C
103
utf_8
6599e71625a4a19d9b43b308d1287065
// { dg-do assemble } // GROUPS niklas overloading extern "C" void f (char*); void f (const char*) {}
google
chromium
t133
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t133.C
152
utf_8
8fb56c6c10b9da35bb085a6e82a5b45d
// { dg-do assemble } // GROUPS passed niklas nested-types struct A { struct B { void operator = (const B&); }; }; void A::B::operator = (const B&) {}
google
chromium
t123
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t123.C
85
utf_8
1a639a7e75350ba12757b19e656c1737
// { dg-do assemble } // GROUPS passed niklas dwarf struct S { S(); }; void f(S) {}
google
chromium
t132
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t132.C
123
utf_8
7dcc45bfc569ed4118cb6b53d5e9340d
// { dg-do assemble } // GROUPS passed niklas construct-destruct struct S { S (); ~S (); }; void f () { while (1) S s; }
google
chromium
t122
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t122.C
162
utf_8
1b3b229ac405b2fbcf3790a93c83de9b
// { dg-do assemble } // GROUPS passed niklas dwarf struct S { S(); }; inline void foo ( S a, S b ) {} void bar (S s1, S s2) { foo (s1, s2); }
google
chromium
t137
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t137.C
144
utf_8
969690b4748db129277de3dfe7bb02a4
// { dg-do assemble } // GROUPS passed niklas nested-types struct A { struct B { void f (); }; struct C : B { void f () { B::f (); } }; };
google
chromium
t121
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t121.C
304
utf_8
5f25a73dd5c2f616272e1e5517731f9e
// { dg-do assemble } // GROUPS passed niklas ellipsis void f (); void g1 (void (*) (...)); void h1 () { g1 (f); }// { dg-error "invalid conversion" } struct S { void g2 (void (*) (...)); void h2 () { g2 (f); } };// { dg-error "match" "match" } // { dg-message "candidates" "note" { target *-*-* } 5 }
google
chromium
t138
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t138.C
104
utf_8
dce5054bc14c4ad290248070481ead9f
// { dg-do assemble } // GROUPS passed niklas hiding struct A; void f (A*); A* A; void g () { f (A); }
google
chromium
t128
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t128.C
214
utf_8
f928214ae91b7394e701a140f379e7f3
// { dg-do assemble } // GROUPS niklas uncaught default-construct struct A { A (int); }; struct B : A {}; // { dg-message "note" } without ctor // ERROR - candidates void f () { B (0); }// { dg-error "match" } .*
google
chromium
t115
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t115.C
160
utf_8
64bb7503f0719564d07f9a959c3c42d9
// { dg-do assemble } // GROUPS passed niklas virtual-base struct A { A(); virtual void f(); }; struct B : virtual A { B(); }; struct C : B {}; C *c = new C;
google
chromium
t129
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t129.C
136
utf_8
57d76f11324259e61f1488b04c21e736
// { dg-do assemble } // GROUPS passed niklas nested-types struct X { struct A { A (int); }; struct B : A { B (int a) : A (a) {} }; };
google
chromium
t139
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t139.C
176
utf_8
6718dc34f49d0e0a618170c0ac397c38
// { dg-do assemble } // { dg-options "-w" } // GROUPS passed niklas hiding ARM struct stat {}; stat gstat; int stat (struct stat*); void f () { struct stat* ps; stat (ps); }
google
chromium
t134
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t134.C
117
utf_8
7e51d009869b4e1f1515ddc72862eeb6
// { dg-do assemble } // GROUPS passed niklas static-members extern "C" int f (); struct A { static void f () {} };
google
chromium
t120
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t120.C
226
utf_8
454ce864069be433da5b205c87c63b8a
// { dg-do assemble } // GROUPS passed niklas ellipsis typedef void (*T) (...); void f (); struct S { void g (T); void h() { g(f); } };// { dg-error "match" "match" } // { dg-message "candidates" "note" { target *-*-* } 5 }
google
chromium
t140
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t140.C
260
utf_8
dd564b31d57cb02e5d6c101dbdedb0ea
// { dg-do run } // GROUPS passed niklas hiding local-types extern "C" int printf (const char*, ...); int val = 1; void S () { printf ("FAIL\n"); } void f () { printf ("PASS\n"); val = 0; } int main () { struct S { S () { f (); } }; S (); return val; }
google
chromium
t124
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t124.C
160
utf_8
5abf997c400a39a87b9de8f61d198101
// { dg-do assemble } // GROUPS passed niklas nested-types static-members struct A { static void f (); struct B { static void g () { f (); } }; };
google
chromium
t130
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t130.C
139
utf_8
4e9939fd81ddfb825419b9d812b75927
// { dg-do assemble } // GROUPS passed niklas nested-types struct A; struct B { struct A { A(int); }; struct C : A { C() : A (0) {} }; };
google
chromium
t141
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t141.C
182
utf_8
9dcffcf8c3516f9c39af76149432b312
// { dg-do assemble } // { dg-options "-Wshadow" } // GROUPS passed niklas scoping ARM class X { X (int); }; void X (int);// { dg-warning "hides constructor" } void f () { X (1); }
google
chromium
t125
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t125.C
153
utf_8
32ef3d2daa861741f36627abea74253c
// { dg-do assemble } // GROUPS passed niklas nested-types static-members struct A { static void f (); struct B { void h () { f (); } }; };
google
chromium
t114
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t114.C
116
utf_8
ba13c4585fa6a5faac4b771e4db64801
// { dg-do assemble } // GROUPS passed niklas explicit-construct struct A { A(); }; struct B { B(A&); }; B b(A());
google
chromium
t131
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.niklas/t131.C
112
utf_8
e06d77af0ab382304fa4d3092aca707d
// { dg-do assemble } // GROUPS passed niklas static-members struct A { static A a; }; A f () { return A::a; }
google
chromium
16251
.C
native_client/nacl-gcc/libstdc++-v3/testsuite/27_io/basic_iostream/cons/16251.C
1,042
utf_8
e92b73f6e3dec267cac47c191431c094
// 27.6.1.5 - Template class basic_iostream #include <iostream> class mystream : public std::iostream { public: mystream () { }; }; // libstdc++/16251 void test01() { mystream x; x.rdbuf(std::cout.rdbuf()); x << std::endl; } int main() { test01(); return 0; }
google
chromium
INFBLOCK
.C
chromium/deps/nacl_sdk_binaries/nsis-2/Source/zlib/INFBLOCK.C
22,817
utf_8
91b4ffc1ecdf66eddfd0aad3ba428cbb
/* * This file is a part of the zlib compression module for NSIS. * * warranty. * * Unicode support by Jim Park -- 08/27/2007 * All messages and true strings turned into TCHARs for when we * create viewable messages. */ #include "../Platform.h" #include "../exehead/config.h" #include "ZUTIL.H" ...
google
chromium
dtor
.C
native_client/nacl-toolchain/newlib/libgloss/m68k/dtor.C
330
utf_8
43b215ef5b769dbd29a8f357ab05c18a
#include <stdio.h> extern "C" void print (char *, ...); class foo { public: foo () { print ("ctor\n"); } ~foo () { print ("dtor\n"); } }; foo x; main () { outbyte ('&'); outbyte ('$'); outbyte ('%'); print ("FooBar\r\n"); /* whew, we made it */ print ("\r\nDone...\r\n"); fflush(stdout); }
google
chromium
dtor
.C
native_client/nacl-toolchain/newlib/libgloss/sparc/dtor.C
335
utf_8
04da33f1419682870ae686bba36f3546
#include <stdio.h> extern "C" void print (char *, ...); class foo { public: foo () { print ("ctor\n"); } ~foo () { print ("dtor\n"); } }; foo x; main () { outbyte ('&'); outbyte ('$'); outbyte ('%'); print ("FooBar\r\n"); /* whew, we made it */ print ("\r\nDone...\r\n"); /* fflush(stdout); */ }
google
chromium
pr27337
.C
native_client/nacl-toolchain/gcc/libgomp/testsuite/libgomp.c++/pr27337.C
1,137
utf_8
b7d3ba53e1428eb4ab2cf1cdcd576335
// PR middle-end/27337 // { dg-do run } #include <omp.h> extern "C" void abort (void); struct S { S (); ~S (); S (const S &); int i; }; int n[3]; S::S () : i(18) { if (omp_get_thread_num () != 0) #pragma omp atomic n[0]++; } S::~S () { if (omp_get_thread_num () != 0) #pragma omp atomic n[1]++;...
google
chromium
ctor-12
.C
native_client/nacl-toolchain/gcc/libgomp/testsuite/libgomp.c++/ctor-12.C
880
utf_8
223d0cf490744b1bfb4f1cc606e36f45
// PR c++/36308 // { dg-do run } extern "C" void abort (); static int n; struct A { A () { l = 0; #pragma omp atomic ctors++; } A (const A &x) { l = x.l; #pragma omp atomic copyctors++; } virtual A& operator= (const A &x) { l = x.l; #pragma omp atomic assigno...