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 | ivinline-4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/ivinline-4.C | 1,117 | utf_8 | 752c5976448e662eea95cf4e8d306ea5 | /* Verify that simple virtual calls are inlined even without early
inlining, even when a typecast to an ancestor is involved along the
way. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual ... |
google | chromium | ivinline-8 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/ivinline-8.C | 1,253 | utf_8 | b77b088af2395d7f3835635726cb3301 | /* Verify that virtual calls are inlined (ithout early inlining) even
when their caller is itself indirectly inlined. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual int bar (int i);
virtua... |
google | chromium | iinline-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/iinline-1.C | 960 | utf_8 | d190270f1bd1bec019768c3db19b8de2 | /* Verify that simple indirect calls are inlined even without early
inlining.. */
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining" } */
/* { dg-add-options bind_pic_locally } */
extern void non_existent (const char *, int);
class String
{
private:
const char *data;
public:
... |
google | chromium | devirt-c-6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-c-6.C | 940 | utf_8 | f2bb748502e340561bce6eaed7285e91 | /* Verify that ipa-cp correctly detects the dynamic type of an object
under construction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-inline" } */
extern "C" void abort (void);
class A
{
public:
int data;
A();
virtual int foo (int i);
};
class B : public A
{
public:
virt... |
google | chromium | pr46984 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr46984.C | 726 | utf_8 | 0a828f86c08497837f067c382a901c9f | // { dg-options "-O -fipa-cp -fno-early-inlining -flto" }
// { dg-do run }
// { dg-require-effective-target lto }
extern "C" void abort ();
class A
{
public:
virtual void foo () {abort();}
};
class B : public A
{
public:
int z;
virtual void foo () {abort();}
};
class C : public A
{
public:
void *a[32];
un... |
google | chromium | devirt-c-5 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-c-5.C | 934 | utf_8 | ad089602076d0837c4e1b41303e15c92 | /* Verify that ipa-cp correctly detects the dynamic type of an object
under construction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline" } */
extern "C" void abort (void);
class B;
class A
{
public:
int data;
A();
A(B *b);
virtual int foo (int i)... |
google | chromium | ivinline-7 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/ivinline-7.C | 1,420 | utf_8 | 1a572b8ed9bedcab8fcccfe717f7770e | /* Verify that simple virtual calls are inlined even without early
inlining, even when a typecast to an ancestor is involved along the
way and that ancestor is not the first one with virtual functions. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C... |
google | chromium | devirt-6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-6.C | 702 | utf_8 | 8c636e7513618b1b3735a28c660923df | /* Verify that we either do not do any devirtualization or correctly
spot that foo changes the dynamic type of the passed object. */
/* { dg-do run } */
/* { dg-options "-O3" } */
extern "C" void abort (void);
extern "C" void *malloc(__SIZE_TYPE__);
inline void* operator new(__SIZE_TYPE__, void* __p) throw() { ... |
google | chromium | devirt-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-1.C | 1,060 | utf_8 | 7522727dcb8122398374b49264575c77 | /* Verify that simple virtual calls are converted to direct calls by ipa-cp. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual int foo (int i);
};
class B : public A
{
public:
... |
google | chromium | ivinline-3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/ivinline-3.C | 979 | utf_8 | ca3786151455fd8823bd9e5f76ef48da | /* Verify that simple virtual calls on an object refrence are inlined
even without early inlining. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual int foo (int i);
};
class B : public A
{
pu... |
google | chromium | pr46287-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr46287-2.C | 810 | utf_8 | 65aea08882bab12228acc06c61c33a2b | // Check that indirect calls to thunks do not lead to errors.
// { dg-do run }
// { dg-options "-O -finline -finline-small-functions -finline-functions" }
extern "C" void abort ();
class A
{
public:
virtual void foo () {abort();}
};
class B : public A
{
public:
int z;
virtual void foo () {abort();}
};
class ... |
google | chromium | ivinline-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/ivinline-2.C | 965 | utf_8 | f11bb6281d1b4bc0516d6f2da86b7092 | /* Verify that simple virtual calls using this pointer are inlined
even without early inlining.. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual int foo (int i);
int middleman (int i)
{
... |
google | chromium | pr45565 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr45565.C | 533 | utf_8 | 34f01b9fc4157e35aef42fe4303714df | // { dg-do compile }
// { dg-options "-O -fno-toplevel-reorder -fno-inline -fipa-cp -fipa-cp-clone -fkeep-inline-functions" }
template < typename Derived > struct AnyMatrixBase
{
};
struct Matrix Random ();
struct Matrix:AnyMatrixBase < Matrix >
{
void bar ()
{
throw;
}
void foo (Matrix other)
... |
google | chromium | iinline-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/iinline-2.C | 1,127 | utf_8 | e237de4e932633797dc4c7de8f8cd59b | /* Verify that simple indirect calls are inlined even without early
inlining.. */
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining" } */
/* { dg-add-options bind_pic_locally } */
extern void non_existent (const char *, int);
class String
{
private:
const char *data;
public:
... |
google | chromium | pr43812 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr43812.C | 860 | utf_8 | 8f31add58ec72eb54693c3a9f4769173 | /* { dg-do compile } */
/* { dg-options "-O -fwhole-program -fipa-cp" } */
typedef float scoord_t;
typedef scoord_t sdist_t;
typedef sdist_t dist_t;
template<typename T> class TRay { };
typedef TRay<dist_t> Ray;
class BBox { };
class RenderContext { };
class RefCounted {
public:
void deref () const {
if (-... |
google | chromium | pr44372 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr44372.C | 561 | utf_8 | e4f8dcc7620cbae1961d6880134b1dd5 | /* { dg-do compile } */
/* { dg-options "-O -fipa-cp -fipa-cp-clone" } */
template < typename > class S3;
struct S1
{
struct
{
int i[10];
} s0;
S1 () : s0 ()
{ }
template < typename T > S1 (S3 < T > s3, int)
{
f (s3);
}
};
struct S2
{
template < typename T > S2 s (S3 < T > s3)
{
S1 (s... |
google | chromium | devirt-7 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-7.C | 1,332 | utf_8 | 831dffcc5053f58ea018aa52bae05a8f | /* Verify that IPA-CP can do devirtualization even if the virtual call
comes from a method that has been early-inlined into a descendant. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-cp" } */
extern "C" void abort (void);
class Distraction
{
public:
float f;
double d;
Distraction ()
{
f = 8... |
google | chromium | 20090113-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/20090113-1.C | 224 | utf_8 | 181d03bf17027cab97eb47736f11ff30 | /* { dg-do compile } */
/* { dg-options "-O3" } */
struct S1 {
S1() { }
};
struct S2 {
int n;
S1* p;
void f() {
p = new S1[n = 1];
}
};
struct S3 {
S2 s2;
void g() {
s2.f();
}
};
void h() {
S3().g();
}
|
google | chromium | devirt-g-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-g-1.C | 689 | utf_8 | b0edc395f80882a5212de90390f76d08 | // { dg-do compile }
// { dg-options "-O2 -fdump-ipa-cp -fdump-tree-optimized" }
struct S { S(); virtual void xyzzy(); void otherstuff(); };
struct R { int a; S s; R(); };
S s;
R r;
void S::xyzzy ()
{
otherstuff ();
otherstuff ();
}
static void __attribute__ ((noinline)) foo(S *p) { p->xyzzy(); }
void bar() {foo... |
google | chromium | devirt-c-3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-c-3.C | 1,059 | utf_8 | 3bbe80cc3cdceeb172618324e67986c2 | /* Verify that ipa-cp correctly detects the dynamic type of an object
under construction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-inline" } */
extern "C" void abort (void);
class Distraction
{
public:
float f;
double d;
Distraction ()
{
f = 8.3;
d = 10.2;
}
... |
google | chromium | devirt-c-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-c-1.C | 894 | utf_8 | d9ee2e9e087701ec5f1913d66694018d | /* Verify that ipa-cp correctly detects the dynamic type of an object
under construction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline" } */
extern "C" void abort (void);
class A
{
public:
int data;
A();
virtual int foo (int i);
};
class B : publi... |
google | chromium | pr45572-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr45572-2.C | 1,083 | utf_8 | 0d4cd7a0dcc526799f7b4db021c2f68d | // { dg-do compile }
// { dg-options "-finline-small-functions -findirect-inlining -finline-function+
typedef struct
{} __mpf_struct;
typedef __mpf_struct mpf_t[1];
typedef const __mpf_struct *mpf_srcptr;
typedef __mpf_struct *mpf_ptr;
extern "C" {
void __gmpf_add (mpf_ptr, mpf_srcptr, mpf_srcptr);
}
class _knumber
{
... |
google | chromium | ivinline-5 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/ivinline-5.C | 1,046 | utf_8 | e2e016d5b9ac7632c863e3915550ac6a | /* Verify that virtual call inlining does not pick a wrong method when
there is a user defined ancestor in an object. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual int foo (int i);
};
clas... |
google | chromium | pr46287-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr46287-1.C | 763 | utf_8 | 177b805c9038f9f21dc4bd1516592ade | // Check that indirect calls to thunks do not lead to errors.
// { dg-do run }
// { dg-options "-O" }
extern "C" void abort ();
class A
{
public:
virtual void foo () {abort();}
};
class B : public A
{
public:
int z;
virtual void foo () {abort();}
};
class C : public A
{
public:
void *a[32];
unsigned long ... |
google | chromium | pr45875 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr45875.C | 654 | utf_8 | 308bcf23bb271af4ffddb96f07a09beb | /* { dg-do compile } */
/* { dg-options "-O3 -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
virtual int foo (int i);
};
class B
{
public:
class A confusion;
};
int A::foo (int i)
{
return i + 1;
}
int __attribute__ ((noinline,noclone)) get_input(void)
{
return 1;
}
... |
google | chromium | iinline-3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/iinline-3.C | 1,057 | utf_8 | ed2ebadecdee89ff7f0834345b5ae2e8 | /* Verify that we do not indirect-inline using member pointer
parameters which have been modified. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining" } */
/* { dg-add-options bind_pic_locally } */
extern "C" void abort (void);
class String
{
private:
const char *data;
public:
String (const cha... |
google | chromium | devirt-d-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-d-1.C | 895 | utf_8 | 8c656947335d6be6c04696553802a105 | /* Verify that ipa-cp correctly detects the dynamic type of an object
under destruction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline" } */
extern "C" void abort (void);
class A
{
public:
int data;
~A();
virtual int foo (int i);
};
class B : publi... |
google | chromium | pr43695 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr43695.C | 245 | utf_8 | 02f3704c0511b2d171c55dbf09c64325 | /* { dg-do compile } */
/* { dg-options "-fipa-cp -fipa-cp-clone" } */
extern void baz(int) __attribute__ ((noreturn));
struct S {
~S();
};
__attribute__ ((noreturn, noinline))
void bar(int i)
{
baz(i);
}
void foo()
{
S s;
bar(0);
}
|
google | chromium | devirt-c-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-c-2.C | 1,013 | utf_8 | e28a7830f2cb71b053b96d758e2538da | /* Verify that ipa-cp correctly detects the dynamic type of an object
under construction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline" } */
extern "C" void abort (void);
class Distraction
{
public:
float f;
double d;
Distraction ()
{
f = 8.3... |
google | chromium | devirt-3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-3.C | 1,184 | utf_8 | 48c9df6f6e861f2448fa74314b9affb3 | /* Verify that simple virtual calls on an object refrence are
converted to simple calls by ipa-cp. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual float distraction (float f... |
google | chromium | devirt-5 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-5.C | 1,393 | utf_8 | bef829571c10195d63a0c4ff07d958ef | /* Verify that ipa-cp can convert simple virtual calls to a direct
ones even when a typecast to an ancestor is involved along the way
and that ancestor is not the first one with virtual functions. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } ... |
google | chromium | ivinline-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/ivinline-1.C | 959 | utf_8 | aca8aa7b3a60ff79ea40865d6981a112 | /* Verify that simple virtual calls are inlined even without early
inlining. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual int foo (int i);
};
class B : public A
{
public:
virtual int fo... |
google | chromium | ivinline-9 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/ivinline-9.C | 1,551 | utf_8 | 183fbdadd1b160f2169558fac9a0b7af | /* Verify that simple virtual calls are inlined even without early
inlining, even when a typecast to an ancestor is involved along the
way and that ancestor itself has an ancestor wich is not the
primary base class. */
/* { dg-do run } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp"... |
google | chromium | pr46287-3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr46287-3.C | 758 | utf_8 | e8c7134cc40956db0ba67738dbd45120 | // Check that indirect calls to thunks do not lead to errors.
// { dg-do run }
// { dg-options "-O -fipa-cp" }
extern "C" void abort ();
class A
{
public:
virtual void foo () {abort();}
};
class B : public A
{
public:
int z;
virtual void foo () {abort();}
};
class C : public A
{
public:
void *a[32];
unsig... |
google | chromium | devirt-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-2.C | 963 | utf_8 | 1f8b782b071d676d5bbf1aa05c165b89 | /* Verify that simple virtual calls using this pointer are converted
to direct calls by ipa-cp. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual int foo (int i);
int middleman (int i)
{
re... |
google | chromium | devirt-c-4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-c-4.C | 1,392 | utf_8 | 66fc1acee659c21a80900278dc4e5398 | /* Verify that ipa-cp correctly detects the dynamic type of an object
under construction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-inline" } */
extern "C" void abort (void);
class Distraction
{
public:
float f;
double d;
Distraction ()
{
f = 8.3;
d = 10.2;
}
... |
google | chromium | access6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/access6.C | 263 | utf_8 | ab58a6a04cf0bf3550d451378c197a00 | // PR c++/28588
class Foo {
static void f(); // { dg-error "private" }
static void f(int);
static void g(); // { dg-error "private" }
};
void h()
{
Foo foo;
void (*f)();
f = foo.f; // { dg-error "context" }
f = foo.g; // { dg-error "context" }
}
|
google | chromium | using5 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/using5.C | 357 | utf_8 | 491cba5b58845b29ea7f37bff5d6702d | template<int> struct A
{
A::A; // { dg-error "constructor" }
};
struct B
{
void f ();
using B::f; // { dg-error "not a base" }
}; |
google | chromium | pure1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/pure1.C | 625 | utf_8 | 766fe5b4a709e73fe26896c37842fb64 | // PR c++/23266
// { dg-do compile }
void foo0() = 0; // { dg-error "like a variable" }
virtual void foo1() = 0; // { dg-error "outside class|variable" }
struct A
{
void foo2() = 0; // { dg-error "non-virtual" }
static void foo3() = 0; // { dg-error "static membe... |
google | chromium | thunk3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/thunk3.C | 145 | utf_8 | fbd285dcc7270a076d780f76a8ce05f4 | // PR c++/18492
struct X{ ~X(); };
struct B
{
virtual void a( X ) = 0;
};
struct D : public virtual B
{
void a( X );
};
void D::a( X ){}
|
google | chromium | crash2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/crash2.C | 140 | utf_8 | 16fa44188961b0a25cc35f173651cce3 | // PR c++/30298
struct A {};
struct B : A, A {}; // { dg-error "duplicate base type" }
struct B : A, A {}; // { dg-error "redefinition" }
|
google | chromium | thunk11 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/thunk11.C | 143 | utf_8 | 87c44d1c4b40e8ad862b5b5e67316bc0 | // PR c++/42256
// { dg-do link }
// { dg-additional-sources "thunk11-aux.cc" }
// { dg-options "-O2" }
#include "thunk11.h"
int
main ()
{
}
|
google | chromium | ptrmem2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/ptrmem2.C | 303 | utf_8 | fad492da1e6e9e175df8d618db9cf1fa | // PR c++/16810
struct C {
virtual void f() {}
};
struct B {virtual ~B() {} };
class D : public B, public C
{
public:
virtual void f() {}
};
typedef void ( C::*FP)();
typedef void ( D::*D_f)();
int main() {
D *d = new D();
C *c = d;
const FP fptr = (FP) &D::f;;
(d->* (D_f)fptr)();
}
|
google | chromium | sizeof1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/sizeof1.C | 167 | utf_8 | 54283d70e732fdf112e0764a095a182a | // PR c++/35007
struct AffEntry
{
union {
char base[256];
} conds;
};
struct PfxEntry
: public AffEntry
{
PfxEntry()
{
sizeof(conds.base[0]);
}
};
|
google | chromium | pr48798 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/pr48798.C | 63 | utf_8 | d52d42fc3833f2c9203fd161bd8ca97e | // PR c++/48798
typedef struct A {} const t;
struct B : t {};
|
google | chromium | access7 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/access7.C | 145 | utf_8 | fe96fafc31fdff9fba0f4354102ff1ad | struct B {
static void f();
};
template <typename T>
struct D : private B {
void g() {
f();
}
};
void h() {
D<int> d;
d.g();
}
|
google | chromium | thunk7 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/thunk7.C | 929 | utf_8 | 658608f7154000cf6832d516ba8f2be5 | // { dg-do run }
#include <stdlib.h>
class A
{
int a, b;
public:
virtual void foo (int a, int b, int c, int d);
};
class B
{
int c, d;
public:
virtual void bar (int a, int b, int c, int d);
};
class D : public virtual A, public virtual B
{
int e, f;
};
void A::foo(int a, int b, int c, int d)
{
... |
google | chromium | error2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/error2.C | 258 | utf_8 | b70b0b78a846f3d11d419c86043a1fdc | // PR c++/28259
// { dg-do compile }
struct A
{
virtual A* foo(); // { dg-error "overriding" }
};
struct B : virtual A; // { dg-error "before" }
struct C : A
{
virtual B* foo(); // { dg-error "invalid covariant" }
};
B* C::foo() { return 0; }
|
google | chromium | error4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/error4.C | 167 | utf_8 | 6585e3eb587683498e082c97eb7f5805 | //PR c++/28740
struct A { virtual ~A(); };
struct B : A A {}; // { dg-error "expected|initializer|invalid" }
A foo(const B &b) // { dg-error "" }
{
return b;
}
|
google | chromium | conv1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/conv1.C | 269 | utf_8 | 860b10ddf83da89ca71e00e1586f331e | typedef struct _A A;
typedef struct _A B;
void some_function(B *b);
class AClass {
public:
operator A*() { return 0;}
};
class BClass :public AClass {
public:
operator B*() { return 0;}
};
int main(int argc, char **argv) {
BClass b;
some_function(b);
}
|
google | chromium | thunk5 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/thunk5.C | 190 | utf_8 | fd1a48e42812d7a049499f6df69ff7fe | // PR c++/21123
struct A
{
A(const A &a);
const A& operator=(const A& a);
};
struct B
{
virtual A f(A);
};
struct C : virtual B
{
virtual A f(A);
};
A C::f(A a)
{
return a;
}
|
google | chromium | namespace-as-base | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/namespace-as-base.C | 122 | utf_8 | 0f6055e72f90fb0e0e43e2ab7aa7141a | // { dg-do compile }
namespace Out {
namespace In {
}
}
class Klasse : public Out::In { // { dg-error ".*" "" }
};
|
google | chromium | covariant7 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant7.C | 1,574 | utf_8 | b65228e6b0e055c2282298a8be7a5263 | // { dg-do compile }
// { dg-prune-output "direct base" }
// { dg-options "-fdump-class-hierarchy" }
// We ICE'd
struct c0 {};
struct c1 : virtual c0
{
virtual c0 &f2() volatile;
};
struct c2
{
int m;
};
struct c3 : virtual c0, virtual c1, c2
{
virtual c1 &f2() volatile;
};
struct c4 : virtual c3, virtual c0, vi... |
google | chromium | ptrmem3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/ptrmem3.C | 500 | utf_8 | 592d6abc110ab9527c8334e13ec7cfee | // PR 21455 bogus error with pointer to member of incomplete
class XMLFile;
typedef bool (XMLFile::*ParserFunctionPtr)();
struct ParserElement
{
ParserFunctionPtr getPreFunc() const { return preFunc; }
ParserFunctionPtr getPostFunc() const { return postFunc; }
ParserFunctionPtr preFunc;
ParserFunctionPtr postF... |
google | chromium | error3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/error3.C | 145 | utf_8 | c3afb04ef418b95bf30acc9eb2a2f204 | //PR c++/27316
struct A {};
struct B : A
! // { dg-error "token" }
{};
struct B : A
! // { dg-error "token" }
{};
|
google | chromium | access5 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/access5.C | 83 | utf_8 | c2411e6f8a0da7e3d67e7b6f69f5a766 | struct S { ~S(); };
struct T : virtual private S {};
struct U : private T {};
U u;
|
google | chromium | access4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/access4.C | 278 | utf_8 | 2ef6c26071aeff4bfc7114533bcbb6dc | struct Container { int Count(); };
struct List : private Container {
using Container::Count;
};
struct INetContentTypeParameterList : private List { void Clear(); };
void INetContentTypeParameterList::Clear() {
Count();//Calling non static but in a non-static method.
}
|
google | chromium | thunk8 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/thunk8.C | 437 | utf_8 | 4d1b2c07599a5eb535ef57e6a781d9a4 | /* PR target/27387
We used to generate a non-PIC thunk on thumb even with -fPIC.
Make sure that won't happen anymore. */
/* { dg-do compile } */
/* { dg-require-effective-target arm_thumb1_ok } */
/* { dg-options "-mthumb -fPIC" } */
struct A {
virtual void f ();
};
struct B {
virtual void g ();
};
struc... |
google | chromium | base2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/base2.C | 289 | utf_8 | 260417b2989a13a1902a4b8b6ec39008 | // Bug 17620. Bogus duplicate base error.
struct S {};
typedef S B;
struct D1 : B {};
struct D2 : B {}; |
google | chromium | virtual2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/virtual2.C | 189 | utf_8 | 97a2f1a9fc23a8a008f5567cb6bbefa7 | //PR c++/29022
struct A
{
operator int();
};
struct B : virtual A, A<0> {}; // { dg-error "token" }
int foo(B &b)
{
return b; // { dg-error "cannot convert" }
}
|
google | chromium | using3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/using3.C | 178 | utf_8 | c9b550ead8867586800cdeee63308c31 | class A
{
public:
typedef int T;
int a;
};
class B : virtual private A
{
};
class C : virtual private A, public B
{
public:
using A::a;
using A::T;
};
C::T x;
|
google | chromium | covariant9 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant9.C | 492 | utf_8 | 0511cb5b77e0c5f25eb7db8a8b1daba4 | // { dg-do link }
// { dg-options "-w -ansi -pedantic" }
// PR c++/12698. Duplicate covariant thunks emitted.
struct c1 {};
struct c0 {
int i;
virtual c1& f10() {}
};
struct c2 : virtual c1, c0 { };
struct c6 : virtual c2, c0 {
virtual c2& f10() {}
};
struct c14 : virtual c2 { };
struct c19 : virtual ::c6 {
vir... |
google | chromium | null1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/null1.C | 257 | utf_8 | 929bd841afc583f6793a33214c34c08a | // PR c++/5453: Test that we don't assume that the pointer target of a
// reference is non-null just because we know the reference isn't.
// { dg-do run }
struct V { };
struct A: virtual public V { };
A* ap;
A*& apr (ap);
int main ()
{
V* vp = apr;
}
|
google | chromium | covariant15 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant15.C | 295 | utf_8 | 764a60120a5dcf46b78223dc70cad2dd | /* This used to ICE (PR c++/27492) */
/* { dg-do "compile" } */
struct A {};
class B : A
{
virtual A* foo(); /* { dg-error "overriding" } */
};
struct C : virtual B
{
virtual C* foo(); /* { dg-error "invalid covariant return type" } */
};
C* C::foo() { return 0; }
struct D : C {};
|
google | chromium | access1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/access1.C | 252 | utf_8 | 176e66df5d6aa9dd76c8fe406b78a370 | // Test that we can access a member from an inaccessible base if it has
// been promoted with a using-declaration.
// { dg-do compile }
struct A
{
int i;
};
struct B: private A
{
using A::i;
};
struct C: public B
{
void f () { B::i = 0; }
};
|
google | chromium | using2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/using2.C | 488 | utf_8 | 26f51eac0b25566825aafb23697d10a4 | // { dg-do run }
// PR 7919. Methods found via using decls didn't have their this
// pointers converted to the final base type.
struct Base {
int m;
protected:
void *Return () { return this; }
};
struct Derived : Base {
using Base::Return;
virtual ~Derived () {}
};
int main ()
{
Derived d;
return stati... |
google | chromium | virtual4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/virtual4.C | 335 | utf_8 | b7f032736331f1ff851d46fe5aef118a | // PR c++/31027
struct A {};
template<typename T>
struct C: virtual A {
C() {}
template<typename T_OTHER> C(const C<T_OTHER>&) {}
C func(const class C<long>&) const;
operator bool() const;
};
template<typename T>
struct D: C<T> {
void func2() {
C<int>a;
a.func(a);
}
};
void func3() {
C<int>a;
... |
google | chromium | covariant11 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant11.C | 453 | utf_8 | ca45ea7dee32a2ef2bfe9224172afb59 | // { dg-do compile }
// PR c++/12700 ICE with covariancy
struct c2 { int i; };
struct c1 {
virtual c2& f8() {}
};
struct c3 : c1, c2 {
virtual c2& f8() {}
};
struct c11 : public c1 {
virtual c3& f8() {}
};
struct c15 : virtual c3 {
virtual c2& f8() {}
};
struct c18 : virtual c11 {
virtual c15& f8();
};
c15& c... |
google | chromium | covariant6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant6.C | 330 | utf_8 | c5a6312f5be1ce7f30501a4b629453f3 | // { dg-do compile }
// We ICE'd
struct c0 {};
struct c1 : virtual c0
{
virtual c0 &f2();
};
struct c3 : virtual c1
{
virtual c1 &f2();
};
c1 &c3::f2()
{
throw 0;
}
struct c4 : virtual c3
{
}; |
google | chromium | virtual5 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/virtual5.C | 363 | utf_8 | 96de23b6f959c8b18d4f5e0f021ad980 | // Test that a synthesized op= can override one from a base.
// { dg-do run }
struct B;
struct A
{
virtual B& operator=(const B&);
};
struct B: A
{
B(int i): i(i) { }
int i;
// implicitly-declared op=
};
B& A::operator=(const B& b) { return static_cast<B&>(*this); }
int main()
{
B b1 (123);
B b2 (0);
... |
google | chromium | operator2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/operator2.C | 451 | utf_8 | 8ec3eec10bb6beeb5a1ec171d1b02302 | typedef int INT_TYPEDEF;
template<class T>
class TypedIfc
{
public:
virtual ~TypedIfc() { }
virtual operator const T&() const = 0;
virtual const T& operator= (const T& t) = 0;
};
template<class Tnative>
class NullIfc : public TypedIfc<Tnative>
{
public:
const Tnative& operator= (const Tnative& t) { return t; ... |
google | chromium | virtual1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/virtual1.C | 275 | utf_8 | 5d675d5e8dcd9e6e6286c004b1e515ee | //PR c++/27952
struct A
{
virtual ~A() {}
};
struct B : A, virtual A {}; // { dg-error "duplicate base|forward declaration" }
struct C : A, B {}; // { dg-error "duplicate base|invalid use" }
C c; // { dg-error "aggregate" }
|
google | chromium | implicit-trivial1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/implicit-trivial1.C | 398 | utf_8 | 7d95023c0874a9aa20b68dc49fda4f5e | // PR c++/46807
// { dg-options -std=c++98 }
// In C++98/03, B::B(const B&) is trivial because A::A(const A&) is trivial,
// even though doing overload resolution would mean calling the template
// constructor. In C++0x, we do overload resolution to determine triviality.
struct A
{
A() {}
private:
template <class... |
google | chromium | union1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/union1.C | 98 | utf_8 | 8ac7470626f12e0cdefa40e25583472b | // PR c++/15507
struct A {
// empty
};
struct B : A {
int b;
};
union U {
A a;
B b;
};
|
google | chromium | covariant13 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant13.C | 443 | utf_8 | a30e748e839e3234af2982a8507640f3 | // PR 21427: ICE on valid
struct B1 {
public:
virtual void foo();
};
struct B2 {
public:
virtual B2 & bar() = 0;
};
struct I : public B1, B2 {
public:
virtual ~I();
virtual I & bar();
};
struct D : public I {
virtual ~D();
}; |
google | chromium | covariant10 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant10.C | 369 | utf_8 | cddfdb8e9f01440bf52ef339bab825d0 | // { dg-do compile }
// PR c++/12699 ICE with covariancy
struct c1 {
virtual void f1() const {}
};
struct c5 {};
struct c6 : virtual c1 {
virtual c5* f33() const {}
};
struct c13 : virtual c5 { };
struct c17 : virtual c6
{
virtual c13* f33() const {}
}; |
google | chromium | covariant5 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant5.C | 322 | utf_8 | 93a19aa63029d81a5f4f59b8b81d11a8 | // { dg-do compile }
// We ICE'd
struct c0 {};
struct c1 : virtual c0
{
virtual c0 &f2();
};
struct c3 : c1
{
virtual c1 &f2();
};
c1 &c3::f2()
{
throw 0;
}
struct c4 : virtual c3
{
}; |
google | chromium | covariant8 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant8.C | 509 | utf_8 | 9a768cc9dfee9447ec4b15a45df32035 | // { dg-do compile }
// ICE with covariant thunks.
struct c0 {};
struct c1 : virtual c0
{
virtual c0 &f2 ();
};
struct c2
{
int m;
};
struct c3 : virtual c0, virtual c1, c2
{
virtual c1 &f2 ();
};
c1 &c3::f2 ()
{
throw 0;
}
struct c4 : virtual c3, virtual c0, virtual c1 {};
struct c8 : virtual c2, virtual c0 {... |
google | chromium | thunk6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/thunk6.C | 305 | utf_8 | 2dfbca1638b220825eaaf7ab19f120af | // PR c++/26957
struct LongDouble {
char ld[16];
};
struct DynAny {
virtual void insert_longdouble(LongDouble value) = 0;
};
struct TAO_DynCommon : public virtual DynAny {
virtual void insert_longdouble (LongDouble value);
};
void TAO_DynCommon::insert_longdouble (LongDouble value) { }
|
google | chromium | covariant1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant1.C | 396 | utf_8 | d5b9e7987bad7019aaec9e69eab66e85 | // PR c++/5607
// { dg-do run }
class A {
public:
virtual A* getThis() { return this; }
};
class B {
int a;
public:
virtual B* getThis() { return this; }
};
class AB : public A, public B {
public:
virtual AB* getThis() { return this; }
};
int main ()
{
AB* ab = new AB();
A* a = ab;
B* b = ab;
if ... |
google | chromium | volatile1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/volatile1.C | 169 | utf_8 | 768bdcc7042d268b87a11846a928e38c | // PR c++/19299
// { dg-do compile }
struct V
{
virtual void foo() = 0;
};
void bar(V volatile* p)
{
p->V::~V();
} |
google | chromium | template-as-base | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/template-as-base.C | 205 | utf_8 | 11e5d1f68073db04c0dcb3d956d68731 | // Distilled from PR C++/3656
namespace N
{
template<typename> struct X { };
}
struct A : N::X { }; // { dg-error "expected class-name" "" } |
google | chromium | access8 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/access8.C | 163 | utf_8 | 17be1beac7572a9dd41db722b95cd985 | // PR c++/29138
class A
{
public:
int i;
class A1
{
int j;
};
};
class B : private A
{
public:
A::i;
A::A1;
};
void
f ()
{
B b;
B::A1 a1;
}
|
google | chromium | multiple1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/multiple1.C | 266 | utf_8 | 0538ccbaac8b13faa65f78233c14d00f | // { dg-options "-w" }
struct Base {
int b;
Base(int b) : b(b) { }
};
struct Derived : public Base {
Derived(int d) : Base(d) { }
};
struct Final : public Derived, public Base {
Final(int f) : Derived(f), Base(f-1) { }
};
int main()
{
Final f(5);
}
|
google | chromium | covariant12 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant12.C | 325 | utf_8 | 024b0d1452f48d9188fd4c6f01697f03 | // PR 20232: ICE on invalid
struct T { };
struct S;
struct B
{
virtual T *Foo (); // { dg-error "overriding" "" }
};
struct D : B
{
virtual S *Foo (); // { dg-error "invalid covariant" "" }
}; |
google | chromium | virtual6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/virtual6.C | 98 | utf_8 | b3a302411cd7b45b85975ae0f8b1d8fb | // PR c++/45473
struct A
{
virtual void B ();
};
struct B : A
{
B ();
};
struct C : B
{
};
|
google | chromium | base3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/base3.C | 178 | utf_8 | cb15d1bc001789d3b80a65e3c34f3576 | // PR c++/35985
// { dg-do compile }
template<typename T> struct A : T {}; // { dg-error "struct or class type" }
struct B;
A<void (B::*)()> a; // { dg-message "required" }
|
google | chromium | covariant4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant4.C | 1,292 | utf_8 | 8c6bb6aaa56fa2bea8b375c52fab5688 | // { dg-do run }
// covariant returns. Fixed & virtual offset.
struct B1;
struct B2;
struct D;
struct B1
{
virtual B1 *foo1 () {return this;}
virtual B2 *foo2 (D *);
};
struct B2
{
virtual B2 *baz1 () {return this;}
virtual B1 *baz2 (D *);
};
struct Pad1 { virtual ~Pad1 (){}};
struct Pad2 { virtual ~Pad2 (){}};... |
google | chromium | local3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/local3.C | 228 | utf_8 | b542b48ead2e56bb6bd2a0ae0f0e435f | // PR c++/13744 (ice-on-valid-code)
// { dg-do compile }
template<int> void foo()
{
struct A
{
virtual void bar() { A a(*this); }
} a;
}
template void foo<0>(); |
google | chromium | covariant16 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant16.C | 259 | utf_8 | 32f88811a0b79385570154e352028dd2 | /* PR c++/28253 This used to ICE. */
/* { dg-do compile } */
struct A
{
virtual A* foo();
};
struct B : virtual A
{
virtual B* foo(); /* { dg-error "overriding" } */
};
struct C : B
{
virtual C& foo(); /* { dg-error "conflicting return type" } */
};
|
google | chromium | virtual7 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/virtual7.C | 292 | utf_8 | b9460b0712e4342a9676337f00a986b0 | // Origin: PR c++/47666
// { dg-do compile }
template <typename T>
struct A
{
int a;
};
template <typename T>
struct B : public A <T>
{
};
class D : public B <D *>
{
virtual D & operator= (const D &);
};
class E : virtual public D
{
};
class F : public E
{
virtual void foo ();
};
|
google | chromium | thunk4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/thunk4.C | 194 | utf_8 | 36499d0eccceff40478008f2dc2f180f | // PR c++/21123
struct A
{
A( const A &a);
const A& operator=( const A& a);
};
struct B
{
virtual A f();
};
struct C : virtual B
{
virtual A f();
A a;
};
A C::f()
{
return a;
}
|
google | chromium | cond1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/cond1.C | 169 | utf_8 | f3b3605ed6515de4b142977d92356815 | // { dg-do compile }
struct A { A(); A(const A&); int i; };
struct B: public A { };
int f (bool b, A& ar, B& br)
{
return (b?ar:br).i;
} |
google | chromium | virtual3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/virtual3.C | 160 | utf_8 | 88e3f23768b2dfe530d163660b058796 | //PR c++/29022
struct A
{
operator int();
};
struct B : virtual A; // { dg-error "token" }
int foo(B &b)
{
return b; // { dg-error "cannot convert" }
}
|
google | chromium | covariant18 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant18.C | 411 | utf_8 | 299041871d0a75a982e0c449266a9d35 | // PR c++/47873
// { dg-do run }
struct Base
{
virtual ~Base(){}
virtual Base& This() { return *this; }
};
struct Ent : virtual Base
{
void *m_Body;
Ent& This() { return *this; }
virtual Ent& body()
{
return This();
}
};
struct Msg : virtual Ent
{
Msg()
{
bod... |
google | chromium | covariant3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant3.C | 1,146 | utf_8 | 24ff947b4da8f1fcee6c7b66d8388009 | // { dg-do run }
// covariant returns. Virtual offset.
struct B1;
struct B2;
struct D;
struct B1
{
virtual B1 *foo1 () {return this;}
virtual B2 *foo2 (D *);
};
struct B2
{
virtual B2 *baz1 () {return this;}
virtual B1 *baz2 (D *);
};
struct D : virtual B1, virtual B2
{
virtual D *foo1 () {return this;}
vir... |
google | chromium | covariant17 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/covariant17.C | 554 | utf_8 | 5ab99a1e863904d348c5aaf2266263b6 | // PR c++/43120
// { dg-do run }
extern "C" void abort ();
struct A {
int a;
A(int a_) : a(a_) {}
A(const A &other) { }
virtual void dummy() {}
};
struct B {
virtual B *clone() const = 0;
};
struct C : public virtual B {
virtual C *clone() const = 0;
};
struct E* ep;
struct E : public A, public C {
... |
google | chromium | access3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/access3.C | 315 | utf_8 | 782f289a8885743348299a4efef52f20 | // { dg-do compile }
class __new_alloc {
public:
static void allocate() {}
};
template <class _Alloc>
class __debug_alloc : public _Alloc {
public:
static void allocate();
};
template <class _Alloc>
void __debug_alloc<_Alloc>::allocate() {
_Alloc::allocate();
}
template class __debug_alloc<__new_alloc>;
|
google | chromium | using4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/using4.C | 321 | utf_8 | 5fa38874a73026f9b2fd718cdccff27d | struct B {
void f();
};
struct D : B {
using B::f;
using B::f; // { dg-error "repeated" }
}; |
google | chromium | using6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/inherit/using6.C | 312 | utf_8 | 2a609ed8062419576ed46e3e969999d6 | struct A
{
operator int ();
};
template <typename T> struct TPL : A
{
using A::operator T; // { dg-error "operator float" }
};
TPL<int> i;
TPL<float> j; // { dg-message "required" } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.