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
init11
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/init11.C
169
utf_8
9a287d5c1abd4ec24b10f2c76eab0f0a
// { dg-do assemble } // GROUPS passed initialization struct String { char * string; String(const char* st); }; extern char array []; static String sub = array;
google
chromium
misc3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/misc3.C
227
utf_8
a617bb436e9c9afcf63c2d3be86658dc
// { dg-do assemble } // GROUPS passed miscellaneous-bugs // The compiler should not error about taking the addr of main in this example. class fred { private: void main () { } public: fred ( ) { &fred::main; } };
google
chromium
init7
.C
native_client/nacl-gcc/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
chromium
crash23
.C
native_client/nacl-gcc/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
chromium
template2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template2.C
197
utf_8
9722953c39ced970015aa9729e896d56
// { dg-do assemble } // GROUPS passed templates template <class Q> class Conc { public: static int body(); }; template <class Q> int Conc<Q>::body() {return 0;} int main () { Conc<int> s2; }
google
chromium
template22
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template22.C
290
utf_8
331b872c84ae0b83cf60a5e245c5389d
// { dg-do run } // GROUPS passed templates extern "C" int printf (const char *, ...); template <class T> class Foo { public: void func (int const& i); }; template <class T> void Foo<T>:: func (int const& i) {} int main () { Foo<int const> foo; printf ("PASS\n"); return 0; }
google
chromium
init8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/init8.C
222
utf_8
5ad1e47e12a8b41a95f79f673f9c0514
// { dg-do assemble } // GROUPS passed initialization class A { public: A(const A & a) : i_member(a.i_member) { } A(const int & i) : i_member(i) { } union { int i_member; }; };
google
chromium
overload9
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/overload9.C
451
utf_8
a002da7352ae83efdd53878f60e3b437
// { dg-do assemble } // GROUPS passed overloading class CLogger { public: void operator() (int,const char *) {}; // { dg-message "candidates" } void operator() (int,const char *, ...) {}; // { dg-message "note" } } Log; class CGLogger : public CLogger { } GLog; int main() { Log(1,"Test");// { dg...
google
chromium
ctors3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/ctors3.C
156
utf_8
c4ac1885be2041f32f4b901e3e8a6128
// { dg-do assemble } // GROUPS passed constructors class A; class B { public: B(); static A sa; }; class A { public: A(int i); }; A B::sa(1);
google
chromium
groff1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/groff1.C
593
utf_8
c42688562e8873f0b3d710da92fd0eea
// { dg-do run } // GROUPS passed groff /* This should compile properly with the new overloading scheme. */ extern "C" int printf (const char *, ...); extern "C" void exit (int); int win = 0; class symbol { public: symbol(const char *p, int how = 0) {} symbol() {} }; class dictionary { public: void lookup(s...
google
chromium
nest2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest2.C
195
utf_8
a19881ab8fa85bcc5df938e0dbfdd9f4
// { dg-do assemble } // GROUPS passed nested-classes class A { protected: class B { public: ~B(); private: float _datum; }; private: B *_b; }; A::B::~B() { _datum = 8.0; }
google
chromium
err-msg6
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/err-msg6.C
158
utf_8
00afba961ae25414c47ec5c93e6b54e1
// { dg-do assemble } // GROUPS passed error-messages class foo { public: ~bar () {}// { dg-error "" } destructor `bar' must match class name `foo'.* };
google
chromium
label1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/label1.C
162
utf_8
f88bce394dffb1d830c0d26236adf218
// { dg-do assemble } // GROUPS passed labels // it should only give 1 error, about using an undefined label int main(void) { goto dummy; }// { dg-error "" } .*
google
chromium
code-gen4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/code-gen4.C
562
utf_8
d33a7c1ca1105d06aae19e79d769c996
// { dg-do run } // { dg-options "-O" } // GROUPS passed code-generation // Options: -O // // Check that when an int value is assigned to a short int, the proper // half of the int (i.e. the low order half) ends up in the short. // // This fails with 1.32.0 with -O and f1() is inline. // // Workaround - declare "f1_ar...
google
chromium
crash5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash5.C
1,652
utf_8
318cf0dc34fa93fdba1f0e7691d777a5
// { dg-do assemble } // GROUPS passed old-abort // Should have been fixed by: // // // * cp-cvt.c (build_default_binary_type_conversion): Look deeper into // what ARG1 and ARG2 are if they're POINTER_TYPEs. class CountableSet { public: virtual ~CountableSet() { } }; template<class T> class FixedSet : virtual...
google
chromium
nest10
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest10.C
273
utf_8
e6320d64763b67bdb98cab5b655bf5ca
// { dg-do assemble } // GROUPS passed nested-classes class A { public: class B { public: int f (); void g (int); private: int b; }; }; int A::B::f () { int val=b; return val; } void A::B::g (int val) { b = val; } int main () { }
google
chromium
redecl2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/redecl2.C
843
utf_8
e2e8fdf313b5b763652b98d52b6fd29f
// { dg-do run } // GROUPS passed redeclaration // Check that if multiple declarations of the same single // function are present in different places in the same file, // and if these declarations differ (as allowed) in the number // of argument defaults provided, that correct values are // passed at all call points a...
google
chromium
crash68
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash68.C
496
utf_8
1978e1f61a11b5ee6839705fd2b801ae
// { dg-do assemble } // { dg-options "-w -O" } // GROUPS passed old-abort class RWDlist { public: RWDlist& operator=(const RWDlist&); }; class DataItemRWGDlist : public RWDlist {}; class Base {}; class DataItemList : public Base { private: DataItemRWGDlist m_diList; }; class StatementGroup { public:...
google
chromium
enum9
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/enum9.C
330
utf_8
1b25732806de3aff6a92e6548039d784
// { dg-do assemble } // GROUPS passed enums enum fig { figgy, pudding, // { dg-error "comma at end" } }; class X { public: static fig (*open)(void *thing, const char *filename); static fig (*parse)(void *thing); }; enum fig (*X::open)(void *thing, const char *filename) = 0; fig (*X::parse)(void *th...
google
chromium
template18
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template18.C
166
utf_8
516a1d806d3a459e5cadd6571789ec0f
// { dg-do assemble } // GROUPS passed templates template<class T> class X; typedef X<int> IX; template<class T> class X { public: T x; }; struct A { IX c; };
google
chromium
ctors2
.C
native_client/nacl-gcc/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
chromium
overload7
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/overload7.C
688
utf_8
20c8208207072ded537d54825c012514
// { dg-do run } // GROUPS passed overloading extern "C" int printf (const char *, ...); struct NoName { int first; int second; }; class Casted { public: NoName x; double y; Casted ( int _x , double _y ): y(_y) { x.first = _x; ...
google
chromium
crash33
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash33.C
113
utf_8
33c3ae35e83af61bf06ee581e97f8dab
// { dg-do assemble } // GROUPS passed old-abort extern void foo(void *); int main() { foo((struct bar *)0); }
google
chromium
crash28
.C
native_client/nacl-gcc/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
chromium
misc2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/misc2.C
443
utf_8
17c9323951efbf191223de7c11466ff8
// { dg-do assemble } // GROUPS passed miscellaneous-bugs // Should be fixed by: // // * cp-decl.c (grokvardecl): Don't complain about duplicate // definitions of `extern "C"' declarations (parallelize it with how // regular `extern' decls are handled). extern "C" double _MaXdOuB, _MiNdOuB; extern "C" double _MaXdOu...
google
chromium
crash22
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash22.C
318
utf_8
7b2c605c6218e8948fecbe9842677c4b
// { dg-do assemble } // GROUPS passed old-abort struct A { void a1(); void a2(); }; struct B { void A::a1(); // this used to die in chainon(), now grokdeclarator should// { dg-error "" } cannot declare.* void A::a2(); // should be fixed by the 930629 change.// { dg-error "" } cannot declare.* };
google
chromium
operators3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/operators3.C
144
utf_8
adee67364642085c61dd0cd25135210e
// { dg-do assemble } // GROUPS passed operators class X { }; void operator->(X& a, X& b) {} // MUST be a member function// { dg-error "" } .*
google
chromium
friend3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/friend3.C
352
utf_8
d3e01a0d5a63b03e48f6aea49851d962
// { dg-do assemble } // GROUPS passed friends class B { friend class A; enum { bEnum = 1, // { dg-error "comma at end" } }; int bArray[ bEnum ]; public: void bFunction(int arg[ bEnum ]); }; class A { int aMember; public: void aFunction(int a[B::bEnum]) { B b; b.bArray[...
google
chromium
new3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/new3.C
871
utf_8
1c0d9a54b1da2e9f826a97b8b7a722b6
// 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
warnings2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/warnings2.C
151
utf_8
74dea83d2980de218faf5473ae79df96
// { dg-do assemble } // GROUPS passed warnings class K { public: void f() { }; // there should be no warning about this semicolon };
google
chromium
crash65
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash65.C
249
utf_8
fef44fa88ae32d141b474c51a371aa94
// { dg-do assemble } // GROUPS passed old-abort class X { public: virtual const char* XY(const void* val) const = 0; }; class Y : public X { public: using X::xy;// { dg-error "" } no memb.* using X::z;// { dg-error "" } no memb.* };
google
chromium
err-msg12
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/err-msg12.C
175
utf_8
73c1bfcf937197fbbb2fa6b4fceb6d08
// { dg-do assemble } // GROUPS passed error-messages class foo { public: friend mutable int x ();// { dg-error "" } non-object member `x' cannot be declared `mutable' };
google
chromium
friend2
.C
native_client/nacl-gcc/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
chromium
enum14
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/enum14.C
109
utf_8
b180e28476416bee81e2f1814451fa2a
// { dg-do assemble } // { dg-options "-fshort-enums" } // GROUPS passed enums enum E { A = 0x80000000 };
google
chromium
crash37
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash37.C
340
utf_8
80e5a4815f34399009395248c62241a4
// { dg-do assemble } // GROUPS passed old-abort typedef int _sigset_t; extern "C" { extern int sigaction(int signo, const struct sigaction *action_spec_p, struct sigaction *old_action_p); } extern "C" { extern void foo(); } class SS { friend void foo(); protected: void goo(); }; inline...
google
chromium
operators8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/operators8.C
130
utf_8
412200ab340af309b05a21dd952707ea
// { dg-do assemble } // GROUPS passed operators struct A { char *p; operator char *(); }; char foo(A a) { return a[0]; }
google
chromium
template26
.C
native_client/nacl-gcc/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
chromium
def-fns1
.C
native_client/nacl-gcc/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
chromium
nest24
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest24.C
138
utf_8
cd228511a48f71249c67e69f03d3d6fc
// { dg-do assemble } // GROUPS passed nested-classes struct A { A (){} }; void foo () { struct B {}; struct S : B { A a; }; }
google
chromium
scope2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/scope2.C
368
utf_8
a9d5e4eb3d5a79edcae73706ea6bcbdc
// { dg-do assemble } // GROUPS passed scoping class A { public: A() {} ~A() {} virtual void f() {} }; class B : public A { public: B() {} ~B() {} virtual void f() {} }; B GLOBAL_B; B& foo() {return GLOBAL_B;} int main() { // build_scoped_method_call and build_scoped_ref should know how // to de...
google
chromium
nest17
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest17.C
159
utf_8
6bc8badb7ef6d461cfae233116e71163
// { dg-do assemble } // GROUPS passed nested-classes class T { public: typedef int I; class Y {int y;}; typedef Y Z; }; T::I i; T::Y y; T::Z z;
google
chromium
overload3
.C
native_client/nacl-gcc/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
chromium
crash34
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash34.C
103
utf_8
5871bb0ee6d20847bec083029e90bc58
// { dg-do assemble } // GROUPS passed old-abort operator int () {}// { dg-error "" } .*// ERROR - .*
google
chromium
copy8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/copy8.C
1,614
utf_8
330313d34e8179459b8d6fdbca0b4371
// { dg-do run } // GROUPS passed copy-ctors /* This report is for GCC 2.3.3 running on a Sun/4. The bug is that when a class instance is passed-by-value, GCC does not correctly copy the value. At the end of this report is an example program that demonstrates the bug. It should print: construct A('x') copy A('x'...
google
chromium
copy7
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
430
utf_8
696c1f641ba8cf4c76eea17b05a68e7c
// { dg-do run } // GROUPS passed copy-ctors extern "C" int printf (const char *, ...); extern "C" void exit (int); void die () { printf ("FAIL\n"); exit (1); } class B { public: B() {} B(const B &) { printf ("PASS\n"); exit (0); } private: int x; }; class A : public B { public: A() {} A(const B &) {...
google
chromium
parse1
.C
native_client/nacl-gcc/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
chromium
nest4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest4.C
218
utf_8
4811561ff30dbc1a325e8ace167fef89
// { dg-do assemble } // { dg-options "-pedantic-errors" } // GROUPS passed nested-classes class vec { class blah { }; ::vec::blah satan( 0);// { dg-error "" } .* blah herman( 0);// { dg-error "" } .* };
google
chromium
crash62
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash62.C
749
utf_8
75b73030bfec1570c06879b52ebb4bb3
// { dg-do assemble } // GROUPS passed old-abort #include <iostream> void fubar(std::ostream* out, const char* s) { (*out) << s << std::endl; return; } int main() { // Declare a ref and a pointer to the same ostream. // std::ostream* out = &std::cerr; std::ostream& die = std::cer...
google
chromium
misc6
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/misc6.C
395
utf_8
b8a8eda70869f8f829acb2f408a05010
// { 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 inline typedef int t; // { dg-error...
google
chromium
operators1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/operators1.C
234
utf_8
2af972e38ef7cf8be77bddab49ea6e6b
// { dg-do assemble } // GROUPS passed operators struct A { int x; }; int operator()(A x,float y) { // MUST be a member function// { dg-error "" } .* return 1; } int main() { A x; x(1.0); // { dg-error "" } no match for call }
google
chromium
crash48
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash48.C
392
utf_8
54fb77c029d81db410ad23b8cbdb9b1c
// { dg-do compile } // GROUPS passed old-abort class internal { // { dg-message "internal::internal" } int field; int anotherfield; }; class bug { // { dg-message "bug::bug" } internal* numbers; bug(int size); }; bug::bug(int size) // { dg-message "bug::bug" } { numbers = new internal(size * size);// { dg-erro...
google
chromium
crash11
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash11.C
661
utf_8
92eff1245a05c05e1cc8bebcf1a3e004
// { dg-do assemble } // GROUPS passed old-abort extern "C" int printf (const char *, ...); class A { int i; // { dg-error "" } private int j; // { dg-error "" } private public: int h; A() { i=10; j=20; } virtual void f1() { printf("i=%d j=%d\n",i,j); } friend virtual void f2() { printf("i=%d ...
google
chromium
template1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template1.C
243
utf_8
8ea3f375d9d6dc50b944e77d696584d2
// { dg-do assemble } // GROUPS passed templates // g++-2.2.1: member functions returning a template type template <class T> struct list { }; struct A { list<int> L; list<int> get_list(); }; list<int> A::get_list() { return L; }
google
chromium
template30
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template30.C
427
utf_8
7168d5a5ef2d632863cc9e00648acbc5
// { 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
enum3
.C
native_client/nacl-gcc/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
chromium
crash51
.C
native_client/nacl-gcc/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
chromium
crash14
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash14.C
300
utf_8
4b3db8cbbfa7bf87638bbbff3162da29
// { dg-do assemble } // GROUPS passed old-abort extern "C" int printf (const char *, ...); class cl { int i; public: cl(int j = 0) {i = j;} int get_i() {return i;} }; int main() { cl ob[3] = {1, 2, 3}; int i; for(i=0; i<3; i++) printf("%d\n", ob[i].get_i()); return 0; }
google
chromium
crash26
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash26.C
129
utf_8
8205b5bda9e4b98bed0dd54ab9af735b
// { dg-do assemble } // GROUPS passed old-abort struct B { B(); }; class C : virtual public B { public: C() { } };
google
chromium
template15
.C
native_client/nacl-gcc/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
chromium
overload5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/overload5.C
626
utf_8
a4396bbce384652b7936e281f7ab7cc8
// { dg-do assemble } // GROUPS passed overloading class Foo { public: int operator << (const signed char&); int operator << (const unsigned char&); int operator << (const short&); int operator << (const unsigned short&); int operator << (const long&); int operator << (const unsigned long&); }; int main (...
google
chromium
asm-extn1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C
346
utf_8
dc09c52e242933d7d8122e9ef75476a1
// { dg-do assemble { target sparc-sun-* } } // { dg-options "-S" } // GROUPS passed asm-extension // This used to crash because c_expand_asm_keyword didn't know what to // do with this. The parser rules were changed to accept an expr, instead // of a stmt. extern void traptable(void); main() { asm("wr %0,%%tbr...
google
chromium
err-msg2
.C
native_client/nacl-gcc/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
chromium
crash29
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C
361
utf_8
83ca9b9e0591d5b70adf4e5bb85d45a7
// { dg-do assemble } // GROUPS passed old-abort union Value { Value(){} }; struct GlobalAddress {// { dg-message "note" } GlobalAddress(Value *nvar){} // { dg-message "candidates" } }; int main() { new GlobalAddress(Value()); // internal error occured here// { dg-error "no matching" } //new GlobalAddress(new ...
google
chromium
new1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/new1.C
186
utf_8
718799fe9f078dd0e2bedf0e9597bd91
// { dg-do assemble } // GROUPS passed operator-new typedef __SIZE_TYPE__ size_t; struct x { int a; void * operator new (size_t, void *); }; struct x * f(void *p) { return new (p) x; }
google
chromium
misc16
.C
native_client/nacl-gcc/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...
google
chromium
bit-fields1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/bit-fields1.C
103
utf_8
71850593e8cd2b3b928db637dd968118
// { dg-do assemble } // GROUPS passed bit-fields struct bar { int : 2 = 1;// { dg-error "" } .* };
google
chromium
nest20
.C
native_client/nacl-gcc/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
chromium
nest13
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/nest13.C
503
utf_8
1abeb376cbfaad85af7d961d1957a048
// { dg-do assemble } // GROUPS passed nested-classes // The bug here is that wer'e getting a message about inner not // being a basetype itself. I think it's because it's being // compared as the "inner" we knew about when it was forward-declared, // versus the "inner" we know about when it *has* been defined. clas...
google
chromium
crash13
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash13.C
506
utf_8
440a4666ca3b9be9549267d67d3e2987
// { dg-do assemble } // { dg-options "-Wreturn-type" } // GROUPS passed old-abort class gen_op { public: gen_op ( ); gen_op (const gen_op &Op1); ~gen_op ( ); void operator = (const gen_op &Op1); }; class spin_op { public: spin_op(); spin_op(const spin_op& SOp); ~spin_op(); void operator= (const s...
google
chromium
new-array
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/new-array.C
271
utf_8
ce18ed55b4cb7e1075e495fefce8d00f
// { dg-do assemble } // GROUPS passed operator-new typedef struct { int a; } AStruct; void MakeBug() { AStruct *job; // This used to crash, it should now give error(s). job = new AStruct[];// { dg-error "" } .* job = new AStruct; } int main () { MakeBug(); }
google
chromium
visibility5
.C
native_client/nacl-gcc/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
chromium
overload10
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/overload10.C
559
utf_8
2ec9f8f263e22d591e448662a3e509f1
// { dg-do assemble } // GROUPS passed overloading class Bed { public: static void bed_func( int (*f)(int &, int, int)); }; class g_func { public: static int save_status; // in compute_harshness, we should be using comptypes, not ==, to // check if this is equivalent to the previous decl; the on...
google
chromium
crash39
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
711
utf_8
2e312fb3ecdee7d2802bc5d63bafaf95
// { dg-do assemble } // { dg-options "-w" } // GROUPS passed old-abort //#include <GetOpt.h> #include <stdio.h> class GetOpt { private: static char *nextchar; enum OrderingEnum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER }; OrderingEnum ordering; static int first_nonopt; static int last_nonopt; void exch...
google
chromium
sizeof2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/sizeof2.C
273
utf_8
232bbc492ea7277970b768de8806f2c0
// { dg-do assemble } // { dg-options "-pedantic-errors" } // GROUPS passed sizeof // ARM $5.3.2 void f() { } struct foo { int bit : 1; }; int main() { // sizeof may not be applied to a bit-field foo f; int i = sizeof (f.bit);// { dg-error "" } .* return 0; }
google
chromium
friend4
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C
230
utf_8
94d3ab39061fa7dd30bbab154b3bf1e4
// { dg-do assemble } // GROUPS passed friends // do_friend should complain that foo was declared as a friend of // A before A was defined struct A; // { dg-error "forward" } struct B { friend A::foo (); };// { dg-error "" } .*
google
chromium
vtables1
.C
native_client/nacl-gcc/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
chromium
code-gen1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/code-gen1.C
687
utf_8
723ea3fbd94d850176380c81b9592351
// { dg-do run } // GROUPS passed code-generation // Check that sub-word sized structs/classes are passed correctly // if the struct/class has a constructor (i.e. ANY constructor). extern "C" int printf (const char *, ...); struct base { unsigned int f1 : 8; unsigned int f2 : 8; base (int ii) { } }; base glo...
google
chromium
init1
.C
native_client/nacl-gcc/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
chromium
prepost3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/prepost3.C
172
utf_8
f8dd4c752216e799de3b9b80e065b0af
// { dg-do assemble } // GROUPS passed prefix-postfix class Y { public: friend Y operator++ (Y&); friend Y operator++ (Y&, char); // illegal// { dg-error "" } .* };
google
chromium
misc14
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
257
utf_8
7ebaf061672f83fca99a3f202292c438
// { dg-do assemble } // GROUPS passed miscellaneous-bugs class X { public: enum e { New // { dg-error "conflicts with previous" } , // { dg-error "comma at end" } }; static int New(int); // { dg-error "declaration of" } }; int main() {}
google
chromium
err-msg11
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/err-msg11.C
146
utf_8
94c75c3e0971db04d1f8bb06af164bc2
// { dg-do assemble } // GROUPS passed error-messages void foo (mutable int x);// { dg-error "" } non-member `x' cannot be declared `mutable'.*
google
chromium
template16
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template16.C
190
utf_8
80d8f014093b5239a7faf1e1696a8057
// { dg-do assemble } // GROUPS passed templates template<class T> class TList { typedef void (T::*TVOIDFUNT)(); typedef T* (T::*TTPFUNT)(T*); }; class A; class B : TList<A> { };
google
chromium
redecl1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/redecl1.C
232
utf_8
57c9511cda77de7914bdac00e907c313
// { dg-do assemble } // GROUPS passed redeclaration inline int min(int x, int y) {return x < y ? x : y;} /* 235 */// { dg-error "" } .* int min(int a, int b); inline int min(int a, int b) {return (a < b)?a:b;}// { dg-error "" } .*
google
chromium
template8
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template8.C
331
utf_8
cd4ddcb646c1124030c201f629f89db5
// { dg-do assemble } // GROUPS passed templates #include <stdio.h> // make sure we accept unions for templates template<int n> union Double_alignt{ double for_alignt; char array[n]; }; int main(){ Double_alignt<20000> heap; printf(" &heap.array[0] = %d, &heap.for_alignt = %d\n", &heap.array[0], &heap.for_a...
google
chromium
dtors3
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/dtors3.C
1,253
utf_8
e2a9f30a7ba6f25639381c312b380c4d
// { dg-do run } // GROUPS passed destructors // Check that member and base classes get properly destructed // when an object of a derived class is destructed via a pointer // to it which only has a "compile-time" type of "pointer-to-base". // // Note that in order for this test to work properly, the destructor // for...
google
chromium
rtti1
.C
native_client/nacl-gcc/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
chromium
crash1
.C
native_client/nacl-gcc/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
chromium
overload2
.C
native_client/nacl-gcc/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
chromium
crash17
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash17.C
727
utf_8
bde6a8384e3bb59092d0c83de1fed4cf
// { dg-do assemble } // GROUPS passed old-abort // // This one creates // // gcc2: Internal compiler error: program cc1plus got fatal signal 11 // // when compiled with g++. // The error goes away, if // 1) int ClassInvariant() is not virtual or // 2) GnObject has a virtual destructor or // 3) GnWidget has no virtual...
google
chromium
typedef1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/typedef1.C
310
utf_8
fb83949bbd4d6e05979bbb79b91d4010
// { dg-do assemble } class baseClassA { public: private: class internalClassA { public: private: typedef int privateType; privateType memberA; }; }; class baseClassB { public: private: class internalClassA { public: private: typedef unsigned int privateType; privateType memberB; }; };
google
chromium
crash50
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/crash50.C
365
utf_8
2c7f8a7eb2573701d3b0b03c69b5be88
// { dg-do assemble } // GROUPS passed old-abort class B { public: int i; }; int operator & (const B &s) { return ( s.i );} class C { public: C &operator = (const C &x) { return *this; } }; C &(C::*DD)(const C &x) = ...
google
chromium
template19
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/template19.C
492
utf_8
eec3608ad6426a4863e21a95a0447248
// { dg-do assemble } // GROUPS passed templates template <class T> class Base { public: Base() { } }; template <class memberType, class keyType> class Middle : public Base<memberType> { public: Middle (keyType const & (*ko) (memberType const &)) { } }; // EXCHANGE the following lines for this code t...
google
chromium
ptrmem1
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem1.C
357
utf_8
9393209c77dd45bd002437c27c5920e4
// { dg-do assemble } // GROUPS passed pointers-to-members class my_class { public: typedef void func_type (int num); my_class (int num, func_type* proc); void dispatch (void); private: int _num; func_type *_proc; }; my_class::my_class (int num, func_type* proc) : _num(num), _proc(proc) { } void my_class...
google
chromium
warnings10
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/warnings10.C
129
utf_8
5f0d83c9a3322cfa98bdcc72e3240081
// { dg-do assemble } // GROUPS passed warnings void foo() { int i; if (1) { for (int i = 0; i < 10; i++) ; } }
google
chromium
warnings4
.C
native_client/nacl-gcc/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
chromium
warnings9
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/warnings9.C
108
utf_8
ba46cd513c748cfd9b7ff43dc0003a78
// { dg-do assemble } // { dg-options "-Wall" } // GROUPS passed warnings inline int foo() { return 3; }
google
chromium
arm2
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/arm2.C
567
utf_8
03e3c6cc2504c84e79335688e1814a6a
// { dg-do assemble } // GROUPS passed ARM-compliance // ARM 9.4 ``There cannot be a static and a nonstatic member function // with the same name and the same argument types.'' // // The trick is to make sure it's caught with both orders (static, // then normal, and vice-versa. class X { public: int foo(); ...
google
chromium
template29
.C
native_client/nacl-gcc/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
chromium
copy5
.C
native_client/nacl-gcc/gcc/testsuite/g++.old-deja/g++.brendan/copy5.C
1,495
utf_8
a9b230fa3f6f281be0b5d7c1b0744eeb
// { dg-do run } // GROUPS passed copy-ctors /* bad: sibelius402> a.out a=5 a.virtMember()=30 BaseClass::Increm --> {i=5, virtMember()=30} a=7 a.virtMember()=30 b=7 b.virtMember()=30 BaseClass::Increm --> {i=7, virtMember()=999} b=9 b.virtMember()=30 sibelius403> good: sibelius406> a.out a=5 a.virtMember()=30...
google
chromium
abstract1
.C
native_client/nacl-gcc/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();