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
vaarg1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/vaarg1.C
211
utf_8
12a6c106f340c7482ff5acff5c3ba0c7
// { dg-do assemble } #include <stdarg.h> #include <stdio.h> void f (int i, ...) { va_list ap; va_start (ap, i); vprintf ("test", ap); va_end (ap); }
google
chromium
defarg8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/defarg8.C
674
utf_8
56c31a277d90ddf2a30fb0acb32b386a
// { dg-do assemble } // { dg-options "-pedantic-errors -ansi -w" } // As of G++ 3.4, we no longer attempt to detect dependencies; the // standard does not require that we do. // Bug 1038. Default args on class members can produce circular dependencies. // Make sure we spot them, and don't depend on a particular order...
google
chromium
access2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/access2.C
301
utf_8
5607efc598712c2be2844d0ce4b7d7e1
// { dg-do assemble } // Based on a testcase in the Standard, submitted by several people class Outer { typedef int T; struct Inner { T i; // { dg-error "" "" { xfail *-*-* } } not accessible - void f() { T j; // { dg-error "" "" { xfail *-*-* } } not accessible - } }; };
google
chromium
nested3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/nested3.C
158
utf_8
878198f66083d1a53425f4fc666da671
// { dg-do assemble } class Foo { public: class Bar; }; class Foo::Bar { public: Bar() {} };
google
chromium
local1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/local1.C
181
utf_8
f02d7bee1a6e33dff41829b90a2f55e5
// { dg-do link } struct Outer { virtual ~Outer() {} }; int main() { { struct Inner : virtual public Outer {} inner; } { struct Inner : virtual public Outer {} inner; } }
google
chromium
debug2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/debug2.C
315
utf_8
ff25450bb13adebb57a287d4d4c6f1bc
// { dg-do assemble } // { dg-options "-funroll-loops -O2 -g" } inline void f() { typedef int T; } inline void g() { typedef double U; } int n; struct B { ~B() { for (int i = 0; i < n; ++i) g(); } }; struct D : public B { ~D() { for (int j = 0; j < n; ++j) f(); } }; D d;
google
chromium
crash40
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/crash40.C
505
utf_8
0ca4ff6d948e35f2891e5d06e8a9e4b7
// { dg-do assemble } // Bug 1917. We were considering thunks to clones to be clones. and // hence getting confused. struct A { virtual ~A(); }; struct B { virtual ~B(); }; struct C: public A,B {}; template <class TYPE> inline TYPE sqr(const TYPE& x) { return 1; } int f(const int t) { return sqr(t); }
google
chromium
ptrmem10
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/ptrmem10.C
151
utf_8
63a937bd90ab3d2c6b0b65c86cb6033b
// { dg-do run } // Test that we properly convert a constant ptm to bool. class A { }; int main() { int A::*const p = 0; if (p) return 1; }
google
chromium
asm1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/asm1.C
158
utf_8
ba720d64a0cf99613a5d491c9d9a9315
// { dg-do assemble } struct S { int i asm ("abc"); // { dg-error "" } `asm' specifier not permitted };
google
chromium
conv8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/conv8.C
405
utf_8
9b12408882bf33ddd9b1857d3ffaa148
// { dg-do assemble } class bar { public: bar(); virtual ~bar(); static void a(); }; class baz : public bar { }; class foo : virtual public baz { public: static void a(); void b(); }; typedef void (bar::*T)(); T d; void foo::a() { typedef void(foo::*t)(); t c = & foo::b; d = (T) c; //...
google
chromium
cleanup4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/cleanup4.C
359
utf_8
da96bf64cf2b426e4b27b07809d4d55f
// { dg-do assemble } // { dg-options "-O2 -fno-exceptions" } class foo { public: foo (); ~foo (); }; class bar { public: bar (); bar (const foo&); }; int i; foo f (); inline bar x () { switch (i) { case 0: return bar (f ()); default: return bar (); } } bar y () { return x (); }
google
chromium
conv2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/conv2.C
391
utf_8
c1e0694d756e50904baf31182dd73510
// { dg-do assemble } // { dg-options "-pedantic-errors" } void cheat( int* i ) { ++(*i); } struct t { void cheat( int& i ) { ++i; } }; int main() { void (t::*member)( const int& ) = &t::cheat; // { dg-error "" } conversion void (*cheater)( const int* ) = &cheat; // { dg-error "" } converting t t2; ...
google
chromium
crash15
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/crash15.C
613
utf_8
86b31fd7ce431a2d82f09b6039da031c
// { dg-do assemble } // { dg-options "-O2" } // g++ crashed because we unsaved the TARGET_EXPR for the return value // for get_allocator without first expanding it, because it was part of the // cleanup for the temporary string. // Derived from libstdc++ v3 code. class AA {}; void fee (const AA&); class basic_st...
google
chromium
dtor10
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/dtor10.C
412
utf_8
7299011904104fb6c29ba323cb11ab6d
// { dg-do run } extern "C" void abort (); int j; struct S { static S* s[5]; S () { s[j++] = this; } S (const S&) { s[j++] = this; } ~S () { for (int k = 0; k < j; ++k) if (s[k] == this) return; abort (); } }; S* S::s[5]; struct T { int i; S s; }; T t; T f () { return t; } void g (S) { ...
google
chromium
friend5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/friend5.C
145
utf_8
0161e6b486d3b3dee4f0cf2bc41f3cd9
// { dg-do assemble } struct A { friend bool(); // { dg-error "" } invalid declaration };
google
chromium
crash10
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/crash10.C
918
utf_8
a60d440d97e27b06efd91dce983278ee
// { dg-do assemble } template <class T> class REFptr { public: REFptr(); REFptr(T *pObj); virtual ~REFptr(); operator T* () const; }; class GEL; class GELsubc { public : virtual GEL *GELcast() const; }; class GELptr : public REFptr<GEL>{ public : ...
google
chromium
unchanging1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/unchanging1.C
676
utf_8
b62e589f26ea50c3e520fbd34f0dfe9d
// { dg-do run } // { dg-options "-O2" } #include <iostream> #include <complex> using namespace std; class A { protected: int a; complex<double> *b; public: A(int n); inline complex<double>& operator[] (int x); }; A::A(int n) { a = n; b = new complex<double>[a]; for (int i=0; i<a; i++) b[i] = complex...
google
chromium
crash27
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/crash27.C
193
utf_8
ca920fbfee24aea8dd36d80beb365d07
// { dg-do assemble } X(Y(long, Type, CLink)); break; default: break; } } } // { dg-error "" } struct A { inline A (); }; inline A::A () { }
google
chromium
new5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/new5.C
205
utf_8
32154308cdeb3f9a775d1995218bf06b
// { dg-do run } // Test that const-correctness is observed when using new. struct A { A() { } int f () { return 1; } int f () const { return 0; } }; int main () { return (new const A)->f (); }
google
chromium
friend9
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/friend9.C
429
utf_8
5eea2191994afdf9e4907504265a6124
// { dg-do assemble } // Bug 853: We reported the wrong line no for a friend access violation class F { class Internal; // { dg-error "" } is private }; class C { friend class F::Internal; // { dg-error "" } in this context public: typedef enum { A, B } e; C (); ~C(); void m(); };
google
chromium
virtual8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/virtual8.C
322
utf_8
28eb577ae2eb298d335601c4cb3648be
// { dg-do run } extern "C" int printf (const char*, ...); struct A { virtual void f () { printf ("%x\n", this); } }; struct B : public A { }; struct C : public A { }; struct D : virtual public B, public C { }; int main () { D d; A* a1 = (A*) (B*) &d; A* a2 = (A*) (C*) &d; a1->f (); a2->f (); ...
google
chromium
crash30
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/crash30.C
191
utf_8
8ddbf498f146b1275504ed7450d2e35b
// { dg-do assemble } struct foo { foo(); void x(); }; void foo::x() throw(bar) // { dg-error "" } parse error { } void bar() { foo x; }
google
chromium
typeinfo1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/typeinfo1.C
142
utf_8
b484a46bc776173d0149a8e516119f33
// { dg-do assemble } #include <typeinfo> struct S { S (const char*); }; void f(S s); void f(std::type_info); void g() { f("abc"); }
google
chromium
empty1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/empty1.C
460
utf_8
ee6c301abacfe5428f15dcdccc0731da
// { dg-do run } // This test case checks that the return value optimization works for // empty classes. // PR c++/5995 extern "C" void abort(); extern "C" int printf (const char *, ...); int i; struct A; struct A* as[10]; struct A { A () { as[i++] = this; } A (const A&) { as[i++] = this; } ~A() { if (i == 0 || ...
google
chromium
init2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/init2.C
182
utf_8
09cdc6f15b9f59aca7cb90db7fa556d5
// { dg-do run } // { dg-options "-O3" } typedef int (*fp)(); struct S { fp f; }; static int f() { return 0; } static const S s = { &f }; int main() { return (*s.f)(); }
google
chromium
store-expr2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/store-expr2.C
1,159
utf_8
85453f43ce18c96c4eb59fbee21b435e
// { dg-do run { target i?86-*-* x86_64-*-*} } // { dg-require-effective-target ilp32 } // { dg-options "-mtune=i686 -O2" } class G {}; struct N { N *a; }; struct V { typedef N *W; W *m, *n; int s() const { return int(n - m); } const W &operator[](int x) const { return *(m + x); } }; struct H; struct J { ...
google
chromium
override2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/override2.C
387
utf_8
1ac3bd50583791f213271d4572952a13
// { dg-do assemble } // Test for diagnosis of missing final overrider. struct A { virtual void f (); }; struct B1: virtual A { virtual void f (); }; struct B2: virtual A { virtual void f (); }; struct C: public B1, public B2 {}; // { dg-error "" } no final overrider
google
chromium
bitfld2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/bitfld2.C
199
utf_8
6c144611ffdf0e5ed4ad302ac9a49191
// { dg-do assemble } // { dg-options "-funsigned-bitfields" } typedef int i[4]; struct S { i j:12; // { dg-error "" } array type as bitfield };
google
chromium
shadow1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/shadow1.C
210
utf_8
1f1e919597a50858bc10855c813640fc
// { dg-do assemble } // Bug: g++ thinks that the i in g() shadows the parm from f() void f (int i) { struct A { void g () { int i; } }; }
google
chromium
anon7
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/anon7.C
447
utf_8
7af91bac25d1ca90b85af326822c7fbf
// { dg-do assemble } struct A { union { int a; // { dg-error "" } conflicts with previous declaration }; int a; // { dg-error "" } }; struct B { int b; // { dg-error "" } conflicts with previous declaration union { int b; // { dg-error "" } duplicate member }; }; struct C { union { int c...
google
chromium
base1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/base1.C
524
utf_8
1a53f03083b3662b443a4b0f992b7e7f
// { dg-do assemble } // We lost information about which base wasn't an aggregate type, plus we // allowed cv qualifed bases via typedefs. typedef int I; typedef int cI; struct A {}; typedef const A cA; typedef A pA; struct B : I {}; // { dg-error "" } not an aggregate struct C : cI {}; // { dg-error "" } not an aggr...
google
chromium
init6
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/init6.C
231
utf_8
ef17244e8beb00b8e2b159085fa4524c
// { dg-do run } // Test for default-initialization of POD-structs in functional cast notation. struct foo { int a[10]; }; int main() { foo f = foo(); int r = 0; for (int i = 0; i < 10; ++i) r |= f.a[i]; return r; }
google
chromium
eh5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/eh5.C
413
utf_8
50ccfaa907c448bee3f02ccdb3da5d91
// { dg-do assemble } // { dg-options "-O2" } struct X {}; struct Y { Y(); virtual ~Y(); }; struct Z { int f (const int *x); int g; }; inline int operator<< (Z &os, int x) { os.f (&x); return os.g; } void foo (Z &a, X *b, X &c) { X *d = b; int e = 0; Z &f = a; if (!(f << e)) do { do { } wh...
google
chromium
addrof1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/addrof1.C
510
utf_8
97d12fac5830df23ec0def891ee3ccdb
// { dg-do run } extern "C" void abort (); typedef struct st { unsigned char a; unsigned char b; unsigned char c; unsigned char d; } __attribute__((aligned(4))) st; void testme(int, int, int); static inline void stupid_func(st s) { testme(s.a, s.b, s.c); } int main(...
google
chromium
rtti2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/rtti2.C
1,185
utf_8
47269c712b78f6938afa4ebc3cd7cadb
// { dg-do run } // { dg-options "-frtti" } // test of rtti of single inheritance and multiple inheritance classes #include <typeinfo> extern "C" { int printf(const char *, ...); void exit(int); } class X { public: int xi; }; class Y : public X { short ys; }; class Z : public Y { int zi; }; Z z; Y y; ...
google
chromium
enum2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/enum2.C
304
utf_8
feb92c7dc6c4aa9d4c55f0948efbc038
// { dg-do assemble } // We'd like the enum location to be its identifier. enum thing // { dg-error "" } previous def { val1 }; enum thing // { dg-error "" } multiple def { val2 };
google
chromium
overload1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/overload1.C
134
utf_8
ed134b735a26a8d28537d1024870f261
// { dg-do run } struct A { A operator+ (int) const { return *this; } }; A operator+ (A, float); int main () { A a; a + 1; }
google
chromium
anon4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.other/anon4.C
345
utf_8
0f703db296c3a1d1c06be17ffadd3f98
// { dg-do assemble } // Anon unions cannot have user defined member functions // [class.union/2]. Make sure we spot that. struct A { union { // { dg-error "" } anon union cannot have member fns void bad(); }; };
google
chromium
parse4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C
312
utf_8
31688bf1cd1491c8def445df80420070
// { dg-do assemble } class B { public: B( int t ) {} void f() {} }; int g() { return 0; } // referenced below int main() { int try1; B( try1 ).f(); // no syntax error B b( g() ); // no syntax error B( ::g() ).f(); // no syntax error B( g() ).f(); // no syntax error }
google
chromium
enum4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/enum4.C
143
utf_8
a88b4a73ce1ec205a26606c69baf3bc1
// { dg-do assemble } // GROUPS passed enums class X { public: enum { a }; }; enum { b = 1 }; enum ok { y = b }; enum notok { z = X::a };
google
chromium
crash35
.C
native_client/nacl-gcc/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
chromium
ns1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/ns1.C
250
utf_8
8a70a49dd8f898539a46d196782e0fe5
// { dg-do assemble } // GROUPS passed old-abort struct B { void f(char); void g(char); }; class C { int g(); }; class D2 : public B { using B::f; // ok: B is a base of D2 using C::g; // { dg-error "not a base type" } };
google
chromium
crash54
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash54.C
139
utf_8
76cab97db1c153ad14cd499c7d483fa7
// { dg-do assemble } // GROUPS passed old-abort int main() { int a[100], **p; p = &a[50];// { dg-error "" } assignment to.* }
google
chromium
visibility4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/visibility4.C
257
utf_8
715aa94186b2b202e2e9a4997d26444f
// { dg-do assemble } // GROUPS passed visibility template <class T> class Feld { public: Feld(const Feld&) {} }; class Polynom : private Feld<double> { Polynom(); friend Polynom f(const Polynom&); }; Polynom f(const Polynom& p) { return p; }
google
chromium
scope1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/scope1.C
205
utf_8
c5a732d7f389384df8cd0dd46d74d63b
// { dg-do assemble } // GROUPS passed scoping int f (int i) { if (i) for (int j = i; j; j--) ; return j; // error: j should only be in scope inside the body of `for'// { dg-error "" } .* }
google
chromium
cvt3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/cvt3.C
1,181
utf_8
da756acecfe70ec41aaa89417ba6d9f3
// { dg-do assemble } // GROUPS passed conversions class GttObject {}; class GctObject: virtual public GttObject {}; class NDAMObject: virtual public GttObject, virtual public GctObject {}; class GctHashObject: virtual public GctObject {}; class GctRef: virtual public GctHashObject { public: operator void*() const; }...
google
chromium
init3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/init3.C
680
utf_8
f2652f181d69d7a6744ebc38c4ae83ed
// { dg-do run } // GROUPS passed initialization // 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" int printf (const char *, ...); extern "C" void exit (int); int count = 0; void die () { printf ("FAIL\n");...
google
chromium
array1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/array1.C
308
utf_8
a7c1c5bf5fb350f58205d6afa6b5c059
// { dg-do assemble } // { dg-options "-fconserve-space -fcommon" } // 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
chromium
line1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/line1.C
215
utf_8
959fe25b280f458705654cf507385e0b
// { dg-do assemble } // GROUPS passed error-messages typedef struct s S;// { dg-error "" } previous.* struct S { int member:1; }; // the lineno for this should be 2, not 0// { dg-error "" } conflicting types.*
google
chromium
nest23
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest23.C
174
utf_8
fba04cbf985f18cbd964bbcbd904749d
// { dg-do assemble } // GROUPS passed nested-classes class CS { public: class PS { }; }; class NCS: public CS { public: class S: public PS { }; }; int i;
google
chromium
delete2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/delete2.C
356
utf_8
d18fef4b5dc740a3a5a5a20881e799a0
// { dg-do run } // GROUPS passed operator-delete // Check that using the delete operator with a null pointer // is allowed (as called for by The Book, pg. 259) extern "C" int printf (const char *, ...); struct base { int member; }; base* bp; void test () { delete bp; } int main () { bp = (base *) 0; test ()...
google
chromium
overload4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/overload4.C
527
utf_8
f619636346ec7b8d3d62e5857c1e970e
// { dg-do assemble } // GROUPS passed overloading typedef void * (*NewObject) (void); class B { public: static void WantsNew (NewObject creator); // { dg-message "candidates" } }; class A { public: static A * NewOne (void); static void InitClass (void) { B::WantsNew ( (...
google
chromium
warnings5
.C
native_client/nacl-gcc/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
chromium
err-msg7
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/err-msg7.C
118
utf_8
30efe9b8a3b56a4ab66d9e2fff61777a
// { dg-do assemble } // GROUPS passed error-messages class foo { public: volatile int () {}// { dg-error "" } };
google
chromium
crash60
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash60.C
219
utf_8
08f4af8421ae9483842f92b9e3925bcb
// { dg-do assemble } // GROUPS passed old-abort class X { public: X (); int f[4]; }; // Note that we mistakenly initialize the array data member as if it // was scalar X::X () : f (0) {}// { dg-error "" } .*
google
chromium
explicit1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C
239
utf_8
8fb3d1219e1b6bb6804f440fea6cc972
// { dg-do assemble } // $7.1.2 disallows explicit on anything but declarations of // constructors ... including friends. class foo { public: foo(); }; class bar { public: friend explicit foo::foo(); }; // { dg-error "" } explicit friend
google
chromium
crash64
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash64.C
535
utf_8
7b28429aabaa749adf34cbdaf06b79bf
// { dg-do assemble } // 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 ,...); }; struct metatype { i...
google
chromium
warnings8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/warnings8.C
129
utf_8
93cc067d918fc872a51c4f9a4b3e5d3d
// { dg-do assemble } // { dg-options "-Wall" } // GROUPS passed warnings bool foo(unsigned char c) { return (c & 17) != 0; }
google
chromium
misc9
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/misc9.C
585
utf_8
f86b0e544d5f1025664f2856ea4e776d
// { dg-do assemble } // GROUPS passed miscellaneous //The program listed below produces the following error during compilation: // % g++ bug17.cc // bug17.cc: In method `class Y& Y::operator = (const class Y&)': // bug17.cc:18: invalid use of non-lvalue array class X { public: X& operator=(const X&) { retur...
google
chromium
nest21
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest21.C
2,032
utf_8
693ba8ff2344c35725152e19ccf93570
// { dg-do run } // GROUPS passed nested-classes #include <iostream> #include <cstdio> #include <cstring> static char output[1024]; class BDDRetrace { public: class Dump { public: virtual Dump& operator<<(char c) = 0; virtual Dump& operator<<(int i) = 0; virtual Dump& operator<<(double r) = 0; }; ...
google
chromium
nest15
.C
native_client/nacl-gcc/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
chromium
crash2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash2.C
168
utf_8
3f31ad7a3d6312a1259fb61edfad7bec
// { dg-do assemble } // GROUPS passed old-abort // The compiler used to crash on this example. class x { public: x(); static const x y[23]; }; const x x::y[23];
google
chromium
crash25
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash25.C
253
utf_8
69b3ac5571772380992e500975ef6502
// { 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; };
google
chromium
template3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template3.C
701
utf_8
aed9cdf54df20f79aba75b526a8d38b0
// { dg-do run } // GROUPS passed templates extern "C" int printf (const char *, ...); extern "C" void exit (int); int count = 0; void die (int x) { if (x != ++count) { printf ("FAIL\n"); exit (1); } } class A { public: void f() const { die (-1); } }; template <class Item> class B : ...
google
chromium
alignof
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/alignof.C
313
utf_8
733594e93bfb4299cc0b06179acc3789
// { dg-do assemble } // GROUPS passed extensions struct bar { int bit : 1; }; void foo (int *r, bar t) { // doing alignof on a bit-field should be illegal __alignof__ (t.bit);// { dg-error "" } .* // both of these (a regular ref and an INDIRECT_REF) should work __alignof__ (r); __alignof__ (*r); }
google
chromium
init5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/init5.C
182
utf_8
32c57193ecdb3b2c97d578375591d859
// { dg-do assemble } // GROUPS passed initialization int main( int argc, char**argv, char** envp ){ char* domain = argv[1]; domain = domain? (char*)"component" : domain; }
google
chromium
misc4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/misc4.C
219
utf_8
36f9d2b7189e1066203482c3d645a308
// { dg-do assemble } // GROUPS passed miscellaneous // This should not emit an error about A::~A() being redefined; we // should check that it is a pure virtual. class A { public: virtual ~A() = 0; }; A::~A() {}
google
chromium
delete1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/delete1.C
573
utf_8
750e8cf6468a830d6ad90ed7ebbd6a3d
// { dg-do assemble } // { dg-options "-pedantic-errors" } // GROUPS passed operator-delete /* ARM $5.3.4 */ void f(char *p, char *q[], const char *r, const char *s[]) { delete 0; /* illegal: non-pointer */// { dg-error "" } .*expected pointer.* delete (char*)0; /* no effect */ delete p; delet...
google
chromium
crash38
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash38.C
911
utf_8
9a365f2dc5bc82428d2fc83004ca21a9
// { dg-do assemble } // GROUPS passed old-abort /* I received the following message when using g++ (version 2.3.3): main.cc: In method 'Implicit<implicit<INTEGER,2>,3>::Implicit()': main.cc: Internal compiler error 241. */ #include <iostream> class INTEGER { int x; public: typedef int BASE; INTEGER(...
google
chromium
crash55
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash55.C
289
utf_8
6cdee92a5511adff52c806834e4de51d
// { dg-do compile } // GROUPS passed old-abort extern int f(int); // { dg-error "ambiguates" } int& f(int x) // { dg-error "new declaration" } { int local; // { dg-warning "reference to local" } local = x+2; return local; }
google
chromium
temporary1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/temporary1.C
201
utf_8
d6da73a6e5dbf7c46a8d20958ce49353
// { dg-do assemble } // GROUPS passed temporaries #include <stdio.h> int main () { int a = 2; if (----a == 0) printf ("a = 0\n"); printf ("a = %d\n", a); }
google
chromium
scope3
.C
native_client/nacl-gcc/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
chromium
ctors1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/ctors1.C
448
utf_8
ef0c32aa9cb62fa23978bbf6604a9c13
// { dg-do run } // GROUPS passed constructors // Check that global level object constructors get called. extern "C" int printf (const char *, ...); struct base { int f1; int f2; base (int arg1, int arg2); }; base global_base(0x55, 0xff); int main () { if ((global_base.f1 != 0x55) || (global_base.f2 != 0xff)...
google
chromium
dtors1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/dtors1.C
958
utf_8
2f857c17e34da916969e892b4b17fb4b
// { dg-do run } // GROUPS passed destructors // Check that when an object of a derived class is (implicitly) // destructed (on exit from the block in which it is declared) // that the destructor for the base class also gets executed. // // (also check that this execution doesn't seg-fault) extern "C" int printf (con...
google
chromium
enum7
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/enum7.C
170
utf_8
90cae2634dbb2044ba67663b6c759a0a
// { dg-do assemble } // GROUPS passed enums enum color { red, green, blue, orange, brown }; struct s { enum color field:2; // { dg-warning "too small" } };
google
chromium
parse6
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C
76
utf_8
b43936b6abd4d40567c033f09683b3bb
// { dg-do assemble } class A { }; int main() { A a = a; A b(b); }
google
chromium
crash3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash3.C
452
utf_8
509e32a23f0fa15e85d26c26684c4a3c
// { dg-do assemble } // GROUPS passed old-abort int strcmp(); extern "C" { // dies in common_type, cuz the TREE_TYPE of t2 is 0, so it can't get its // TYPE_MAIN_VARIANT value. // <void_type 184510 void permanent VOID // size <integer_cst 1844e0 type <integer_type 182548 int> constant perman...
google
chromium
operators6
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/operators6.C
155
utf_8
52b3628faa7d652f30e4e4cf72e3bae4
// { dg-do assemble } // GROUPS passed operators class a { public: a* operator->() { return this; } void p(); }; void a::p() { operator->(); }
google
chromium
warnings1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C
214
utf_8
b2f8f2c21840b4f450c2e42ca987cc2e
// { dg-do assemble } // { dg-options "-Wctor-dtor-privacy" } // GROUPS passed warnings // there should be a warning about foo only defining private methods class foo { // { dg-warning "private" } int bar(); };
google
chromium
bool1
.C
native_client/nacl-gcc/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
chromium
copy3
.C
native_client/nacl-gcc/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
chromium
mutable1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/mutable1.C
103
utf_8
5d2329af0ff02e79f3f79c0b57005d11
// { dg-do assemble } // GROUPS passed mutable class foo; class bar { mutable foo const *foobar; };
google
chromium
ptrmem2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem2.C
531
utf_8
7a7306f6328f57ef001c6f5ba4e22fa9
// { dg-do assemble } // GROUPS passed pointers-to-members struct C { struct N { int g1(int); int g2(int); }; typedef int (N::*pmfn)(int); int f1(int); int f2(int); }; int (C::*f)(int) = &C::f1; /* The compiler should not crash on the line below; this change fixes it: * cp-tree.c (...
google
chromium
crash36
.C
native_client/nacl-gcc/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
chromium
crash9
.C
native_client/nacl-gcc/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
chromium
template6
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template6.C
275
utf_8
414d59c74cbc5fb2ce7f12c2f6af33a2
// { dg-do assemble } // GROUPS passed templates struct B { }; struct X : B { ~X (); }; struct Request { X s; }; template <class ET> class TC { ET data; }; struct TMem { ~TMem() {} TC<Request> *req; }; struct FIO { void init (); FIO () { init(); } };
google
chromium
sizeof3
.C
native_client/nacl-gcc/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
chromium
array-refs
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/array-refs.C
153
utf_8
16edd78f1a50b1993dbd9ca1f037bf4c
// { dg-do assemble } // GROUPS passed arm int a, b; // declaring an array of references should be illegal int & v[ 2] = { a, b};// { dg-error "" } .*
google
chromium
template5
.C
native_client/nacl-gcc/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
chromium
crash18
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash18.C
586
utf_8
3e7a431e54812cbc89e33a4ea503b985
// { 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-error "previously" } { return v == index; } // { dg-error "from this l...
google
chromium
crash67
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash67.C
105
utf_8
ceface3afb873c88388917e015eb9333
// { dg-do assemble } // GROUPS passed old-abort
google
chromium
static1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/static1.C
144
utf_8
0b5d1af57221388b1b3a700bd348b25a
// { dg-do assemble } // GROUPS passed static class A { public: int a; };// { dg-error "" } .* void foo7 () { A::a = 3; }// { dg-error "" } .*
google
chromium
sizeof1
.C
native_client/nacl-gcc/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
chromium
nest11
.C
native_client/nacl-gcc/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
chromium
friend1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/friend1.C
149
utf_8
88f54cb5637017d0140fbe47b4d64a12
// { dg-do assemble } // GROUPS passed friends class A { private: A () {} friend struct B; }; class B { public: A a; }; B b; int main () {}
google
chromium
template27
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template27.C
417
utf_8
fda6ea3340caa213364034a337eacbb4
// { dg-do assemble } // GROUPS passed templates template<class K, class V> class MapLS { }; class String {}; class X1 { }; class RefProto { }; template<class REP> class Ref { }; template <> class MapLS<String, Ref<X1> >: public MapLS<String, RefProto> { ...
google
chromium
template12
.C
native_client/nacl-gcc/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
chromium
union3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/union3.C
132
utf_8
f0cd272a2f8d0f4a5b5e00305fe64682
// { dg-do assemble } // GROUPS passed unions union alan { int a; char *b; alan(); }; alan mary; alan::alan() { a=0; }
google
chromium
nest18
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest18.C
798
utf_8
af8abd37d8c348f3e90a688f87da5c28
// { dg-do assemble } // GROUPS passed nested-classes // This is the first line of file ||t2.C||. // This code demonstrates what appears to be a bug 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 // compiles f...
google
chromium
crash47
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash47.C
1,841
utf_8
d94800227b9326614c08ee7405b8e23b
// { dg-do assemble } // GROUPS passed old-abort const int TRUE = 1; const int FALSE = 0; class Rep { protected: Rep(): count(0) { } Rep(const Rep& other): count(0) { } Rep& operator=(const Rep& other) { /* DO NOT copy over other.count */ return *this; } public: // TODO - for now // Because i...