plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | eb133c | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb133c.C | 285 | utf_8 | 848e82d17c868821c10f0a107104e2c7 | // { dg-do assemble }
// Gives ICE 109
// Reported against EGCS snaps 98/06/28.
namespace std { }
using namespace std;
int main()
{
try {
}
catch (bad_alloc) { // { dg-error "" }
return 1;
}
return 0;
} |
google | android | eb127 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb127.C | 1,173 | utf_8 | b8c55e6c915ce77498d2870d52cdec65 | // { dg-do assemble }
// Gets ICE 40.
#include <vector>
#include<string>
#include <iostream>
using namespace std;
class ODEsolver
{
private:
void eulerODE(vector<double>& y, double& t, double& dt);
void midpointODE(vector<double>& y, double& t, double& dt);
protected:
void (ODEsolve... |
google | android | eb129a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb129a.C | 746 | utf_8 | c04a24af2e447a423deb4302f7e091b4 | // { dg-do assemble }
// Gives ICE on EGCS release branch as of 98/06/08 on i686-pc-linux-gnulibc1)
#include <list>
#include <functional>
#include <algorithm>
#include <cassert>
int main()
{
std::list<int> l;
l.push_back(1);
l.push_back(2);
std::list<int>::iterator it =
std::find_... |
google | android | eb30 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb30.C | 210 | utf_8 | a7dc048c55c4684fe2a1abc5448c3dee | // { dg-do assemble }
#include <fstream>
class bifstream : public std::ifstream {
public:
bifstream();
// ~bifstream();
};
void load_bin()
{
bifstream InFile;
if (!InFile)
return;
}
|
google | android | eb95 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb95.C | 201 | utf_8 | 49cc5a20317c1043ea84134c98b3e298 | // { dg-do run }
struct A {};
template <class T>
void operator+ (A &i, T &b) {}
template<class T>
void func (A &a, T &b) {}
int main()
{
A a;
#if STRANGE
func(a, "egcs");
#endif
a+"egcs";
}
|
google | android | eb28 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb28.C | 312 | utf_8 | dc881655a5dcfa0cdbdd902204cb69d8 | // { dg-do assemble }
#include <vector>
using namespace std;
enum s { S };
class a
{
vector<s> vs;
friend class b;
};
struct b
{
vector<a> va;
operator vector< vector<s> >()
{
vector< vector<s> > vvs(va.size());
return vvs;
}
};
|
google | android | eh990323-3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-3.C | 276 | utf_8 | c62cf2783cffe038295ade5f26a79dc3 | // { dg-do run }
// try throwing 0 cast to a class object
extern "C" void abort ();
extern "C" void exit (int);
struct A {};
void f()
{
throw (A*)0;
}
int
main()
{
int flag;
flag = 0;
try {
f();
}
catch (A*) {
flag = 1;
}
if (!flag)
abort();
exit (0);
}
|
google | android | eb113 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb113.C | 82 | utf_8 | dda1730a666d8970244424705aa4b904 | // { dg-do assemble }
#include <iostream>
class X : public std::streambuf
{
} ;
|
google | android | eb49 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb49.C | 610 | utf_8 | 262caaf3359d2027128ac4b4da113886 | // { dg-do assemble }
// Here we declare ::S
typedef struct s1 *S;
struct s1
{
int s;
};
struct A
{
// Here we declare A::S
typedef struct s1 *S;
};
template<class T, class U> class XX;
template<class T, class U>
class X
{
public:
static T *do_something ();
friend class T; // { dg-error "" } `T' is a te... |
google | android | eb64 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb64.C | 471 | utf_8 | b6595ba27fd258c0900d7e3a4566c9ca | // { dg-do assemble }
template <class A>
class B:public A {
B(){}
};
template <class A>
class C:public B<A> {
C(){}
};
/*
g++ bugsol.C
bugsol.C:9: Internal compiler error.
g++ -v
Reading specs from
/home/pierre/local/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.16/specs
gcc version egcs-2.90.16 971105 (gcc2-97080... |
google | android | eb4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb4.C | 1,235 | utf_8 | 35bd510eb765e42274acb469df0ed3c0 | // { dg-do assemble }
// Error: Internal Compiler Error in GCC 2.7.2 and EGCS 1998/05/28 snapshot.
#include <iostream>
class some_base
{
public:
class base_func_args;
virtual void func(base_func_args &) = 0; // { dg-message "note" } referenced below
};
class some_base::base_func_args... |
google | android | eb84 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb84.C | 284 | utf_8 | 82ebc0a368a4d3db129faff1d32ded02 | // { dg-do run }
// Error: Internal Compiler error on GCC 2.7.2.3 & EGCS 1998/05/23 snapshot.
class A {
public:
enum { ONE, TWO, THREE };
};
template <const unsigned c1,const unsigned c2,const unsigned c3>
void f() {
}
int
main()
{
f<A::ONE,A::TWO,A::THREE>();
}
|
google | android | eb7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb7.C | 147 | utf_8 | eed0467f169c7a3a218649fd1bb443d9 | // { dg-do assemble }
#include <vector>
class T
{
public:
T();
};
std::vector <T> tp;
void f()
{
tp.insert(tp.begin(), 10 , T());
}
|
google | android | eb6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb6.C | 185 | utf_8 | 1a1f9e745e06ee3866366991f2da25eb | // { dg-do assemble }
class A {
public:
A() { t=0; }
double t;
};
template <class T>
class B {
public:
void f1() { new T; f2(); }
void f2() { new T; }
};
template class B<A>;
|
google | android | eb125 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb125.C | 471 | utf_8 | 20bc0ea9e2cf52f325b3824da6e490ff | // { dg-do assemble }
struct test_box
{
void print(void);
};
void test<class BOX> (test_box *); // { dg-error "" } illegal code
class test_square
{
friend void test<class BOX> (test_box *); // { dg-error "" } does not match
} // { dg-error "after class definition" }
template <cla... |
google | android | eb103 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb103.C | 287 | utf_8 | 9886b6c2178e1508f318b3027cdd915d | // { dg-do assemble }
// Error: Internal compiler error in 2.7.2 & EGCS 1.0.0
template <int nlimb, int i>
inline unsigned f (unsigned* ptr);
template <int nlimb>
inline unsigned f<nlimb,nlimb> (unsigned* ptr) // { dg-error "function template partial specialization" }
{
return 1;
}
|
google | android | eb43 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C | 1,430 | utf_8 | fd599a5f741cc00d639b3b159c66533a | // { dg-do assemble }
// All the pointer_to_binary_function cases used to fail because g++
// couldn't handle converting an overloaded function to a class type.
// The first one should still fail because it requires an implicit conversion
// to pointer_to_binary_function, which has an `explicit' constructor.
// { dg-... |
google | android | eb57 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb57.C | 125 | utf_8 | 0777d21b3dd550747ecc5bbf0087c1fc | // { dg-do assemble }
#include <exception>
//using namespace std;
class A {
class B : public std::exception {}
;
};
|
google | android | eb13 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb13.C | 211 | utf_8 | 651675d5ae1c0851fec63f19ff07b36f | // { dg-do assemble }
template<class T>
class Array {
public:
typedef T T_numtype;
};
template<class T_array>
void f(T_array, typename T_array::T_numtype)
{
}
void g()
{
f(Array<float>(), float());
}
|
google | android | eb93 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb93.C | 599 | utf_8 | fdaf4f720a8e78f34da21f6143459cb5 | // { dg-do assemble }
// Error: Internal compiler error on egcs 1998/05/28 snapshot.
const double M_PI=3.14159265358979323846;
template<int N,int I,int J,int K>
inline double SineSeries()
{
const double x=I*2*M_PI/N;
const bool go=K+1!=J;
return 1.0-x*x/(2*K+2)/(2*K+3)*SineSeries<N*go,I*go,J*go,(K+1)*go>();
}
... |
google | android | eb108 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb108.C | 242 | utf_8 | a3612f3f68ec2ae185d88189192c82c3 | // { dg-do assemble }
class X
{
public:
virtual void f() const = 0;
};
template <class T>
class Y: public X
{
public:
virtual void f() const;
};
template <class T>
void Y<T>::f() const
{
}
template <>
void Y<bool>::f() const;
|
google | android | eb58 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb58.C | 207 | utf_8 | 58bc826ccb2159a92b85635040d7603e | // { dg-do run }
// { dg-options "-w -fpermissive" }
// Test for g++ array init extension
class A {
public:
A(int i) {}
private:
A( const A & ) {}
};
main()
{
A *list = new A[10](4);
}
|
google | android | eb17 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb17.C | 680 | utf_8 | 25673e9695aa96e1359ed114838592b2 | // { dg-do run }
#include <stdio.h>
class A {
public:
virtual void print();
virtual A * clone();
};
struct Pad {
virtual void f () {}
};
class B : public Pad, virtual public A {
public:
void print();
B * clone();
};
void A::print()
{
printf("A\n");
}
void B::print()
{
printf("B\n");
}
... |
google | android | eb80 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb80.C | 103 | utf_8 | 1eb9a1d899e84b46785ab32efead0469 | // { dg-do assemble }
#include <exception>
class A {
class B : public std::exception {}
;
};
|
google | android | eb81 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb81.C | 530 | utf_8 | 78c03dfd8616d6624f4aa754373b8727 | // { dg-do assemble }
class x
{
public:
x (int init_buffer_size=0);
~x ();
};
class xSequence
{
public:
xSequence ();
~xSequence ();
x Get(int index)const;
};
class foo
{
public:
bool bar(const x & name, x & value);
};
bool foo::bar(const x... |
google | android | eb97 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb97.C | 483 | utf_8 | da7c30ff49c68f2cfb12eb420fc61b9c | // { dg-do run }
// Creates bad assembly on sparc and x86
template<unsigned long SIZE>
struct Array { };
template<unsigned long SIZE>
Array<SIZE> test_ok(const Array<SIZE>& a) {
Array<SIZE> result;
return(result);
}
template<unsigned long SIZE>
Array<SIZE + 1> test_error(const Array<SIZE>& a) {
Array<SIZ... |
google | android | eb109 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb109.C | 2,186 | utf_8 | 086613cb67ecbada48515549b727cfa8 | // { dg-do assemble }
#include<map>
#include<iostream>
#include<vector>
#include<string>
using namespace std;
// empty parameter class with a minimal set of operations
// if there are no weights for edges necessary
struct Empty
{
public:
Empty(int=0) {}
bool operator<(const Empty&) const { return true;}
};... |
google | android | eb2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb2.C | 242 | utf_8 | 8767b204079f14a768b1e30e16817c5c | // { dg-do assemble }
typedef __SIZE_TYPE__ size_t;
inline void *operator new(size_t, void *place) throw() { return place; }
struct A
{
A();
~A();
};
void testfunc( void )
{
A* mybuf;
A v[1];
new (mybuf) A();
}
|
google | android | eb90 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb90.C | 265 | utf_8 | cd5292938a62b36f11cfaf58d1d1e034 | // { dg-do assemble }
// { dg-options "-O2" }
#ifdef HIDE_BUG
#define realloc Realloc
#endif
class TmpRgn {
public:
void
realloc();
};
class TmpActor {
TmpRgn tmpRgn;
public:
void
realloc() {
tmpRgn.realloc();
}
};
|
google | android | eb119 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb119.C | 200 | utf_8 | b449592c670d8c3d0d941fff287b9bc1 | // { dg-do assemble }
template<bool B>
void f() // { dg-message "note" }
{
}
int main()
{
f<bool>(); // { dg-error "" } .*
// { dg-message "candidate" "candidate note" { target *-*-* } 9 }
}
|
google | android | eb8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb8.C | 259 | utf_8 | a085e6cf1eca394616113132643a792e | // { dg-do assemble }
class foo {
public:
operator <<(const void *); //{ dg-error "" } no return type
operator <<(char *); //{ dg-error "" } no return type
};
void main() // { dg-error "must return .int" }
{
foo f;
f << (void*)0;
}
|
google | android | ice990323-5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-5.C | 187 | utf_8 | 1e0df75bb630426aaa9e32e30df6eeaf | // { dg-do assemble }
// check attempting to throw an overloaded function
struct A {
void f(int);
void f(long);
};
void g()
{
throw &A::f; // { dg-error "" } insufficient context
}
|
google | android | eb31 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb31.C | 197 | utf_8 | d7b3e4fda9dff8856f7aff223775823f | // { dg-do run }
#include<iostream>
int main() {
try {
throw 1;
} catch(...) {
try {
throw;
} catch(int) {
}
try {
throw;
} catch(int) {
}
}
return 0;
}
|
google | android | eb23 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb23.C | 289 | utf_8 | 9d707a3f73b9ac5715f144793aab4cf0 | // { dg-do assemble }
class foo {
protected:
void __duplicate ();
};
class bar : public virtual foo {
protected:
void __duplicate() {
foo::__duplicate ();
}
};
class oops : public virtual bar {
protected:
void __duplicate() {
foo::__duplicate ();
}
};
|
google | android | eb126 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb126.C | 633 | utf_8 | 8a691bca88fb3b558c8cbbbcd9c83824 | // { dg-do run }
#include <string.h>
class SomeClass_t {
public:
SomeClass_t () : x (11) {}
protected:
float x;
};
class DynamicOnly_t {
public:
static DynamicOnly_t* create (const char* name = "UNDEF",
const SomeClass_t& somec = *(new SomeClass_t
())) {
return new DynamicOn... |
google | android | eb110 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb110.C | 283 | utf_8 | 4e0fb43b2a17ed42c66d97c75cbcff3b | // { dg-do assemble }
class X
{
public:
virtual void f() const = 0;
};
template <class T>
class Y: public X
{
public:
virtual void f() const;
};
template <class T>
void Y<T>::f() const
{
}
template <>
void Y<bool>::f() const;
template <>
void Y<bool>::f() const
{
}
|
google | android | eb92 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb92.C | 81 | utf_8 | ad2141db80c1ca1cddf3b85bdebbdbba | // { dg-do assemble }
template<int N> f<0>(){} // { dg-error "" } invalid code
|
google | android | eb44 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb44.C | 920 | utf_8 | e34f3c7745dc560590ce60b791052c3a | // { dg-do assemble }
// spurious 'const' in error.
// For egcs-2.91.34, the warning message refers to
// class ostream & operator <<(class ostream &, const class Vector<T> &)
// Also, the template instantiation does not provide the missing
// friend function, the non-template function does
#include <cstdio>
#include... |
google | android | eb33 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb33.C | 182 | utf_8 | ef46f07e495b4e06388c1bda41791a72 | // { dg-do run }
#include <fstream>
#include <cstdio>
int
main()
{
std::printf("If you see this, you don't have a problem!\n");
#ifdef EXPOSE_BUG
std::ifstream a;
#endif
}
|
google | android | eb38 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb38.C | 511 | utf_8 | db68a817c3bdd5f97fe7e97593e0eee4 | // { dg-do assemble }
class string
{
public:
string();
string(const string& x);
string(const char* t);
~string();
};
void set_status(string message);
class StatusDelay {
private:
string cause;
public:
StatusDelay(const string& c)
{
set_status(cause);
}
~StatusDelay()
{
... |
google | android | eb102 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb102.C | 463 | utf_8 | ee83a1efbd7590614fbf204920c56047 | // { dg-do run }
// Error: intenral compiler error on 1998/05/28 snapshot.
#include <stdio.h>
#include <stdlib.h>
void evilRises (void **ptr)
{
int *pi;
pi = new int;
*pi = 0;
*ptr = (void *)pi;
}
int main (int argc, char *argv[])
{
#ifdef WORKAROUND
union foo
#else
union
#endif
{
... |
google | android | eb87 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb87.C | 259 | utf_8 | 1b1d44ab52323a9942ada2f5c6a0042c | // { dg-do assemble }
template <unsigned X, class T> struct Foo {
friend void operator<<(int, Foo const &) {}
};
template <unsigned X> class Bar : public Foo<X,int> {};
inline Bar<0> bar(int,int,int) { return Bar<3>(); } // { dg-error "" } no conversion
|
google | android | eb107 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb107.C | 254 | utf_8 | 3e53dc52c997be42c47ab4e29c760531 | // { dg-do assemble }
template <class T>
struct X
{
virtual void f(int) const;
};
template <class T>
struct Y: public X<T>
{
virtual void f(int) const;
};
template <class T>
void Y<T>::f(int) const
{
}
template <>
void Y<bool>::f(int) const;
|
google | android | eb18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb18.C | 133 | utf_8 | 53d207d7ba57cee093db93337912bde1 | // { dg-do assemble }
class C { };
void foo()
{
C c;
} |
google | android | eb26 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb26.C | 430 | utf_8 | bfed9395e04ba5cc65f81b655ac0007e | // { dg-do run }
//
// egcs-2.90.06
// cannot declare friend of enclosing class using its scope, works fine
// without scope or for definition of foo::bar::f
//
class foo
{
public:
static int f();
class bar {
friend int foo::f();
// friend int f();
static int x;
public:
static int f() {return foo::... |
google | android | eb98 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb98.C | 450 | utf_8 | fef125e3f2b4bf1640b4ea14844b5fe5 | // { dg-do assemble }
// Error: Internal compiler error in egcs 1998/05/28 snapshot.
template<class T, unsigned int Length>
inline
unsigned int
extent(T (&x)[Length]) // { dg-message "note" }
{
return Length;
}
extern int b[];
void f()
{
extent(b); // { dg-... |
google | android | ebnull | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/ebnull.C | 235 | utf_8 | 8cbd42dfdf5c3d1001c2ccf679b53f55 | // { dg-do run }
class null {
null (null const&);
void operator& ();
public:
null () {}
template <typename T>
operator T* () const { return 0; }
} const null;
int main ()
{
int *p = null;
return 0;
}
|
google | android | eb59 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb59.C | 493 | utf_8 | 0a93ceef805435716e94c493f877f9c7 | // { dg-do run }
#define INC_FUNCTIONAL 1
#define USE_STATIC_CAST 1
#include <vector>
#include <numeric>
#ifdef INC_FUNCTIONAL
#include <functional>
#endif
using namespace std;
template<class R> int p( int val, R& r )
{
return val + r;
}
template<class R> void f( vector<R>& v )
{
#ifdef USE_STATIC_CAST
accu... |
google | android | eb76 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb76.C | 288 | utf_8 | a76393df8d77e4b40f3b7709a5b15716 | // { dg-do assemble }
// { dg-options "-fno-short-enums" }
// the template operator!= interferes. It should be in a namespace.
#include <utility>
enum T {
V1
};
struct X {
T t : 31;
};
void
f(X& v) {
if( v.t != V1 ) { // complains about taking address of bitfield
}
}
|
google | android | eb66 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb66.C | 247 | utf_8 | e728f40777563cb885cfa405a188c976 | // { dg-do run }
#include <cassert>
#include <iostream>
int bar ()
{
throw 100;
}
int main ()
{
int i = 0;
try
{
i = bar ();
}
catch (...)
{
}
// std::cout << "i = " << i << std::endl;
assert (i == 0) ;
}
|
google | android | eb62 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb62.C | 87 | utf_8 | 4bb576d55e0e1e12e3e9ceeebef0ceec | // { dg-do assemble }
#include <vector>
void f(void)
{
std::vector<int> l(5, 0);
}
|
google | android | eb63 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb63.C | 296 | utf_8 | 59505f841b5e13c6d0d05f1ce320d185 | // { dg-do run }
// { dg-options "-w -fpermissive" }
//This uses GNU extensions, so disable -ansi
#include <stdio.h>
#include <stdlib.h>
class A {
public:
A(bool b) { abort(); }
A(int a, bool b) { printf("cool\n"); }
};
main() {
A* a;
a = new A[2](1,false);
}
|
google | android | eb12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb12.C | 527 | utf_8 | 8a824bc1662e2bc1e829ee6e0d13c4c1 | // { dg-do assemble }
// Error: Internal Compiler Error in 2.7.2. & egcs 1.0.0
#ifndef NO_META_MAX
template<int N1, int N2>
struct meta_max {
enum { max = (N1 > N2) ? N1 : N2 };
};
#endif
struct X {
enum {
a = 0,
n = 0
};
};
template<class T1, class T2>
struct Y {
enum {
a = T1... |
google | android | eb46 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb46.C | 502 | utf_8 | 162242e8a8ce35ee0319175bf101e399 | // { dg-do run }
#include <iostream>
class A1 {
friend class B;
public:
virtual void foo() {}
};
class A2 : public virtual A1 {friend class B;};
class A3 : public virtual A1, private A2 {friend class B;};
class B
{
public:
B(A1* a) : itsA(dynamic_cast<A2*>(a)) {}
A2* itsA;
};
int... |
google | android | eb122 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb122.C | 256 | utf_8 | 6cea022036005800b290af273d7eb4f5 | // { dg-do assemble }
// { dg-options "" }
// Disable -ansi -pedantic-errors because of GNU extension
template<class foo>
class bar {
public:
void baz() { (({ while( foo::baz() );})); }
};
template<class foo>
void baz() { (({ while( foo::baz() );})); }
|
google | android | eb36 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb36.C | 381 | utf_8 | d220747503f1cae3d8e04233dceb1d48 | // { dg-do assemble }
#include <vector>
using namespace std;
template <typename T=float> class foo {
public:
foo();
foo(vector<int> v);
private:
vector<int> v;
T t;
};
template <typename T>
foo<T>::foo() :v(), t() {}
template <typename T=float>
foo<T>::foo(vector<int> v_) :v(v_), t() {} // { ... |
google | android | eb116 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb116.C | 230 | utf_8 | 518101006f1cba51035f142508d3c90a | // { dg-do run }
template <class INT>
class b
{
private:
char a(int x)
{
union {
int i;
char c;
} val;
val.i = x;
return val.c;
}
public:
b() {
}
};
int main() {
b<int> n;
return 0;
}
|
google | android | eb34 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb34.C | 268 | utf_8 | 66189ab4fa15789bd8c06637aab5a9a7 | // { dg-do assemble }
class Base {
public:
class Bar { public: virtual ~Bar() {} };
};
class Derived : public Base {
public:
class Bar : public Base::Bar {};
};
template <class T>
class XYZ : public T::Bar {
};
void test() {
XYZ<Base> b;
XYZ<Derived> d;
}
|
google | android | ice990323-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-1.C | 181 | utf_8 | c67a0b40ab41073ef2b127e44dfed166 | // { dg-do assemble }
//test 2
struct A {};
void f()
{
struct A; // { dg-error "" } forward ref
throw *(new A); // { dg-error "" } invalid use of undefined type
}
|
google | android | eb9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb9.C | 305 | utf_8 | aeca5f507eddd33de61260287c6114e6 | // { dg-do assemble }
template <class Key>
class d0om_Hashmap
{
public:
typedef int value_type;
class iterator
{
public:
value_type* operator-> () const;
};
};
template <class Key>
typename d0om_Hashmap<Key>::value_type*
d0om_Hashmap<Key>::iterator::operator-> () const
{
return 0;
}
|
google | android | eb77 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb77.C | 447 | utf_8 | 349f93b6aba01075501dbe0c1897a06a | // { dg-do run }
#include <iostream>
#include <sstream>
using namespace std;
int
main(int, char* [])
{
stringstream s;
s << "line 1\nline 2\n\nline 4";
s << std::ends;
int nLine = 0;
while( true ) {
char line[100];
s.get(line, 100);
if( ! line ) {
break;
}
++nLine;
std::c... |
google | android | eh990323-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-2.C | 947 | utf_8 | 0f61865a997d9aa8f48d5ac28a1d4ae9 | // { dg-do run }
// check MI and VBC offsets on throw
extern "C" void abort ();
extern "C" void exit (int);
struct A {
int x[23];
};
struct B : virtual public A {
int y[33];
};
struct C : virtual public A, public B {
int z[43];
};
struct D {
int xx[53];
};
struct E : public D, public A {
int yy[63];
};
C c;... |
google | android | eh990323-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-1.C | 880 | utf_8 | 65d8652f97a1d4a88241e9fe00ce3a09 | // { dg-do run }
// check cleanup of template temporaries
extern "C" void abort ();
extern "C" void exit (int);
int ctor = 0;
int dtor = 0;
template <class T> struct A {
A() {ctor++;}
A(int) {ctor++;}
A(const A&) {ctor++;}
~A() {dtor++;}
operator int() {return 0;}
};
template <class T> void ff(T);
template <c... |
google | android | eb79 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb79.C | 699 | utf_8 | a3fc556e3505fac837f3d398e1d92829 | // { dg-do assemble }
// { dg-prune-output "note" }
// Makes bogus x86 assembly code.
#include <iostream>
// The VxWorks kernel-mode headers define a macro named "max", which is not
// ISO-compliant, but is part of the VxWorks API.
#if defined __vxworks && !defined __RTP__
#undef max
#endif
using namespace std;
tem... |
google | android | eb32 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb32.C | 168 | utf_8 | f4a4e96a12a4cb6184f2d8656b2d77b1 | // { dg-do assemble }
class A {
public:
void malloc(unsigned int);
};
void A::malloc(unsigned int) {}
void foo() {
A a;
a.malloc(3); // <-- line 10
}
|
google | android | eb105 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb105.C | 340 | utf_8 | 3659e47043ebbb544b5bad1e021405df | // { dg-do assemble }
template< class T >
void sort( T* t, int n )
{
struct
/*line5*/ {
int operator()(T i, T j)
{
return (i < j) ? -1 : ((j < i) ? 1 : 0) ;
}
} c ;
sort(t, n... |
google | android | eb124 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb124.C | 93 | utf_8 | 41102a1c99ea009d5ff0a3074bf4f821 | // { dg-do assemble }
#include <stdexcept>
class X : public std::runtime_error {
X ();
};
|
google | android | eb111 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb111.C | 122 | utf_8 | 389459a1b35359ae0a53adadeb39890c | // { dg-do run }
int main() {
for(int i=1; i < 9; i++);
for(int i=1; i < 9; i++);
return 0;
}
|
google | android | eb51 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb51.C | 731 | utf_8 | 6d4a283105be144be9d12b5a24a173c7 | // { dg-do assemble }
typedef unsigned long Xv_opaque;
class DynaString
{
public:
DynaString();
DynaString( const DynaString& dynaStr );
DynaString( const long n );
~DynaString();
int operator ==( const char* const string ) const;
};
class DDE_Defaults
{
public:
DynaString GetHost... |
google | android | eb133b | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb133b.C | 305 | utf_8 | 9f0d61586077774e5485a9825b097a4c | // { dg-do assemble }
// Gives ICE 109
// Reported against EGCS snaps 98/06/28.
using namespace std; // { dg-error "" "" { xfail *-*-* } }
int main()
{
try {
}
catch (bad_alloc) { // { dg-error "" }
return 1;
}
return 0;
} |
google | android | eb14 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb14.C | 446 | utf_8 | f0055ccdf10889b518a9ab6870864ee4 | // { dg-do run }
extern "C" void abort ();
template<int N>
struct I {
};
template<class T>
struct A {
int r;
template<class T1, class T2>
void operator()(T1, T2)
{ r = 0; }
template<int N1, int N2>
void operator()(I<N1>, I<N2>)
{ r = 1; }
};
int main()
{
A<float> x;
I<0> a;
I<1> b;
... |
google | android | 980310-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/980310-1.C | 800 | utf_8 | 18090564deaeabb2833db724176f5e3e | // { dg-do run }
// { dg-options "-g" }
// Internal compiler error on egcs 1.0.1 i586-pc-linux-gnulibc1.
typedef __SIZE_TYPE__ size_t;
struct dummy { };
struct arrrrrgh { };
template<class Par,class Rand = arrrrrgh>
struct whyyyyyyy { };
template<class T, class S =dummy>
struct grrrrrrrr { };
template<cla... |
google | android | eb65 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb65.C | 448 | utf_8 | de75043540ca4e516fe1727234b3000e | // { dg-do run }
#include <iterator>
using namespace std;
template<size_t n, size_t i> struct PartialDotProduct {
template<class T>
static T Expand(T* a, T* b) { return T(); }
};
const int N = 10;
template<class In1, class In2>
typename iterator_traits<In1>::value_type
dot(In1 f1, In2 f2)
{
return Part... |
google | android | eb48 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb48.C | 149 | utf_8 | 4f65e058476e0d5ee95cecfc25d27593 | // { dg-do assemble }
char *t1 (const char *s)
{
return const_cast<char *>(s);
}
char *&t1 (const char *&s)
{
return const_cast<char *&>(s);
}
|
google | android | ice990323-4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-4.C | 207 | utf_8 | 109add3f9d0f1266286de36607a6be27 | // { dg-do assemble }
// try throwing template function name
template <class T> void f(T);
template <class T> void f(T)
{
}
void g()
{
throw &f; // { dg-error "" } insufficient contextual information
}
|
google | android | eb37 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb37.C | 286 | utf_8 | d58ae7b46abd9e5199b3fb1440309bb9 | // { dg-do assemble }
template<class T>
struct A {
typedef T T1;
};
template<class T>
struct B {
typedef T T2;
};
template<class T>
struct C {
};
template<class E>
C<typename E::T2::T1>
foo (E)
{
return C<typename E::T2::T1>();
}
void test()
{
foo(B<A<int> >());
}
|
google | android | ice990323-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-2.C | 1,170 | utf_8 | c887f1048097d9ab3916cf9b44becbe7 | // { dg-do run }
// check EH with templates
extern "C" void abort ();
extern "C" void exit (int);
template <class T, int n, class U> struct A {
A() {}
A(const char*) {}
};
void f1()
{
throw *(new A<double, 47, A<int, 37, short> >);
}
void f2()
{
throw *(new A<double, 47, A<int, 36, short> >);
}
void f3()
{
th... |
google | android | eb82 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb82.C | 251 | utf_8 | bf4dffe16b0ade11667a1a290a8444f4 | // { dg-do assemble }
#include <stdio.h>
template <int n1>
double val <int> () // { dg-error "" } bogus code
{
return (double) n1;
}
int main ()
{
printf ("%d\n", val<(int)3> ()); // { dg-error "" } val undeclared
}
|
google | android | eb3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb3.C | 284 | utf_8 | 0164d1f50c2dd32169fccc50aa1a7e01 | // { dg-do assemble }
#include <complex>
template<class T>
class Vec {
public:
Vec() { data = new T; }
Vec<T> split() { Vec<T> tmp; operator=(tmp); return tmp; }
void operator=(const Vec<T> &v) { data = new T; }
T *data;
};
template class Vec<std::complex<double> >;
|
google | android | eb132 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb132.C | 567 | utf_8 | 12e85338a8aa2928e7419fdeed2e93a9 | // { dg-do assemble }
// { dg-options "-O -Wall -fgcse" }
// Reported against EGCS snaps 98/06/28.
//
// Compilation of this program with the flags g++ -Wall -O -fgcse
// or -O2 produces spurious warnings in the standard
// header <std/bastring.h>.
//
// They vanish if the declaration of a::b is taken out.
#include <... |
google | android | eb24 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb24.C | 289 | utf_8 | 6746831f359d3159b992e820ac0aa390 | // { dg-do assemble }
#include <iostream>
template < class T >
class X
{
protected:
union {
int x;
double y;
};
};
template < class T >
class Y : public X<T>
{
public:
using X<T>::x;
void f () { std::cout << this->x << std::endl; }
};
|
google | android | eb19 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb19.C | 311 | utf_8 | 9b0fe19732508a1447e5f3d5af4674fa | // { dg-do assemble }
#define CRASH 1
#ifdef CRASH
#define VIRTUAL virtual
#else
#define VIRTUAL
#endif
class A {};
class B : public VIRTUAL A {};
template <class Imp> class C : public /*virtual*/ Imp {};
// define CRASH and uncomment here ^^^^^^^^^^^
// and the crash goes away!!!!
template class C<B>;
|
google | android | eb130 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb130.C | 361 | utf_8 | 5d3026759b3ae4dd8c91afde6283714e | // { dg-do assemble }
// { dg-options "-Wall -Wno-deprecated" }
// Gives spurious warnings when compiled with -Wall
// EGCS 06/08/98 i686-pc-linux-gnulibc1
#include <backward/hash_set>
__gnu_cxx::hash_set<int> foo; |
google | android | eb21 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb21.C | 364 | utf_8 | dfa1bab9d1d1dbb5b57ebf2c698892d7 | // { dg-do run }
#include <vector>
#include <sstream>
using namespace std;
/*----------------------------------------*/
struct connection_t {
connection_t() {}
};
std::vector<connection_t> connections;
/*----------------------------------------*/
int
main() {
ostringstream str;
connections.insert(connect... |
google | android | eh990323-5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-5.C | 669 | utf_8 | 2663a885e757a8cd6e06528062067fd0 | // { dg-do run }
// check cleanup of partial array objects
extern "C" void abort (void);
extern "C" void exit (int);
int ctor = 0;
int dtor = 0;
int cnt = 1;
struct A {
int x;
A();
A(const A&);
~A();
};
A::A()
{
if (cnt == 10)
throw 57;
x = cnt++;
ctor++;
}
A::A(const A&)
{
if (cnt == 10)
throw 57;
x... |
google | android | eb114 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb114.C | 637 | utf_8 | 3cfd21e032a7b6c6168c382e3a96ce06 | // { dg-do run }
#include <string.h>
class SomeClass_t {
public:
SomeClass_t () : x (11) {}
protected:
float x;
};
class DynamicOnly_t {
public:
static DynamicOnly_t* create (const char* name = "UNDEF",
const SomeClass_t& somec = *(new SomeClass_t
())) {
return new DynamicOn... |
google | android | eb56 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb56.C | 208 | utf_8 | 62fa73b17247c1714c275a963fa7328a | // { dg-do assemble }
// Error: Internal compiler error on 1998/05/28 snapshot.
class foo {
public:
typedef int sometype;
};
struct die : public foo::sometype { // { dg-error "" } invalid base type
};
|
google | android | eb16 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb16.C | 187 | utf_8 | 3b4d8fa7337c0e5185b2f196534753bd | // { dg-do assemble }
template<class T>
struct A {
typedef T T1;
};
template<class T>
struct B : T::T1 { // insert `typename' before T::T1
};
struct C { };
B<A<C> > z;
|
google | android | eb10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb10.C | 479 | utf_8 | 7043c0e8dd58f93b9ec2d562d4af77b8 | // { dg-do assemble }
template <int object_size>
class _fixed_size_allocator
{
private:
struct something { };
static something * asdf;
public:
static void delete_object ();
};
template <class T>
class object_allocator
{
private:
typedef _fixed_size_allocator<sizeof (T)> ... |
google | android | eb123 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb123.C | 177 | utf_8 | 27414451cdd553e1e28ff5c414cae858 | // { dg-do assemble }
// { dg-options "-O2 -W " }
#include "stdio.h"
void writeNote() throw( int )
{
printf( "hello world\n" );
try { }
catch( int ){ throw; }
}
|
google | android | ebnull-oldcast | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/ebnull-oldcast.C | 242 | utf_8 | f01b9fb91e77c1431934b8be5323b026 | // { dg-do run }
class null {
null (null const&);
void operator& ();
public:
null () {}
template <typename T>
operator T* () const { return 0; }
} const null;
int main ()
{
int *p = (int*) null;
return 0;
}
|
google | android | eb50 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb50.C | 271 | utf_8 | 1ad3ceecd4112409b4be018f32d260b2 | // { dg-do run }
struct foo { };
int f(int a, int b)
{
if (b == 0)
throw foo();
return a / b;
}
int main()
{
try {
f(0, 0);
return 1;
} catch (foo x) {
return 0;
}
}
|
google | android | eb15 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb15.C | 395 | utf_8 | e1cc4c0a26466bcb288ed01f4b1e02c6 | // { dg-do assemble }
#include<iostream>
#include<cstddef>
struct A {
A() {
std::cerr<<"A constructing\n";
throw 1;
}
void *operator new(size_t sz) {
std::cerr<<"A allocated\n";
return ::operator new(sz);
}
void operator delete (void *p) {
std::cerr<<"A deleted\n";
::operator delete ... |
google | android | eb104 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb104.C | 635 | utf_8 | d0815bd10637ef31f290d081ddbda880 | // { dg-do run }
#include <string.h>
class SomeClass_t {
public:
SomeClass_t () : x (11) {}
protected:
float x;
};
class DynamicOnly_t {
public:
static DynamicOnly_t* create (const char* name = "UNDEF",
const SomeClass_t& somec = *(new SomeClass_t
())) {
return new Dynamic... |
google | android | eb91 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb91.C | 1,075 | utf_8 | 52295f1074714a7a68d57b9e37bec95e | // { dg-do run }
#include <sys/types.h>
#include <algorithm>
typedef short _eb91_int16_t;
typedef char _eb91_int8_t;
typedef unsigned char _eb91_u_int8_t;
typedef unsigned short _eb91_u_int16_t;
template <class INT>
class other_endian
{
private:
INT value;
_eb91_u_int16_t change_endian(_eb91_u_int16_t x)... |
google | android | eh990323-4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eh990323-4.C | 959 | utf_8 | 7cdf127b9647ac0256ead12616afd081 | // { dg-do run }
// check MI and VBC offsets on throw
extern "C" void abort ();
extern "C" void exit (int);
struct A {
int x[23];
};
struct B : virtual public A {
int y[33];
};
struct C : virtual public A, public B {
int z[43];
};
struct D {
int xx[53];
};
struct E : public D, public A {
int yy[63];
};
C c;... |
google | android | eb129 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb129.C | 742 | utf_8 | e797227013d5ca66f3f2c5b3cac31867 | // { dg-do assemble }
// Gives ICE on EGCS release branch as of 98/06/08 on i686-pc-linux-gnulibc1)
#include <list>
#include <functional>
#include <algorithm>
#include <cassert>
using namespace std;
int main()
{
list<int> l;
l.push_back(1);
l.push_back(2);
list<int>::iterator it =
... |
google | android | eb27 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb27.C | 1,258 | utf_8 | 012e13256611c34a6ded6584b2d7db95 | // { dg-do assemble }
// { dg-options "-Wno-deprecated" }
/* bug.cc */
/* simple program to demonstrate the bug with named return values in gcc
// 8/28/1998 - This dies in add_conversions from dfs_walk, null CLASSTYPE_METHOD_VEC
// for the test<T> record_type. This is marked as an expected failure for now,
// until w... |
google | android | eb71 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb71.C | 430 | utf_8 | ace655424d8104d76d1f908b54d8526d | // { dg-do assemble }
typedef __SIZE_TYPE__ size_t;
class A {
public:
void operator delete(void*, size_t);
void* operator new(size_t);
};
class B : public A {
friend class D;
B();
unsigned counter;
};
class D {
int ins( B*&);
};
int
D::ins( B*& tempN)... |
google | android | eb52 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.robertl/eb52.C | 422 | utf_8 | ad16b6909db3b254930c04fed0ec8d0f | // { dg-do assemble }
class base {
protected:
virtual void f();
};
class d1 : public virtual base {
protected:
void f();
};
void d1::f()
{
base::f();
}
class dd1 : public virtual d1 {
protected:
void f();
};
void dd1::f()
{
d1::f();
base::f();
}
class d1_and_base : public virtual d1, publ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.