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 | err1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/err1.C | 164 | utf_8 | aa0fcbaf8ea7e055b67c4601ff453ca2 | // { dg-do assemble }
struct gorf {
int stuff;
void snarf(); // { dg-error "" }
};
template <class T> void gorf::snarf() { return; } // { dg-error "" }
|
google | android | p783b | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p783b.C | 614 | utf_8 | 57d4e40988ddb63958724eff83209409 | // { dg-do run }
// This one check for objects being destroyed twice. The bug it is
// looking for is the extra dtor call on C() even though it is never
// built.
// prms-id: 783
extern "C" int printf (const char *, ...);
extern "C" void exit (int);
class C {
int i;
public:
// C() {printf ("C ctor at %x\n", this... |
google | android | mi2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/mi2.C | 704 | utf_8 | 758bdd829c502019a7e7b27b4df96d9c | // { dg-do run }
class A {
char a;
public:
A(char x) : a(x) { }
virtual ~A() { }
};
class B : virtual public A {
char b;
public:
B(char x) : A('b'), b(x) { }
~B() { }
};
class C : virtual public A {
char c;
public:
C(char x) : A('c'), c(x) { }
~C() { }
};
class D : virtual public A, public B, publ... |
google | android | p4736c | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p4736c.C | 981 | utf_8 | c1acbf8597dd2cbb95d9cb9fc5e04912 | // { dg-do run }
// prms-id: 4736
int did_fail;
class Rep {
public:
virtual ~Rep() { }
};
class Rep_1 : public Rep {
};
class VBaseMain {
public:
virtual ~VBaseMain() { }
};
class OtherVBase {
public:
virtual ~OtherVBase() { }
};
class Rep_2 : public Rep {
};
class DVBase : public VBaseMain, public Rep_2,... |
google | android | dyncast7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/dyncast7.C | 484 | utf_8 | fb9b779da9bd2d460c71d8c0f1f6d090 | // { dg-do run }
// { dg-options "-fexceptions" }
#include <typeinfo>
#include <stdexcept>
class A {
public:
virtual void j () {}
};
class B : public A { };
void x (A& a) {
// These should all work.
const B& b2 = dynamic_cast<B&>(a);
const B& b3 = dynamic_cast<const B&>((const A&)a);
const B& b4 = d... |
google | android | eh23 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh23.C | 627 | utf_8 | ba2fa37a3d06ff66a8b70eeecfbe42db | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
#include <exception>
#include <stdlib.h>
struct double_fault { };
int fault_now;
class E {
public:
E() { }
E(const E&) {
if (fault_now)
throw double_fault();
}
};
void foo() {
try {
throw E();
} catch (...) {
... |
google | android | net39 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net39.C | 444 | utf_8 | bff1e48fcafb1ef983be4b8a95f47c87 | // { dg-do run }
void *vp;
class silly {
public:
virtual int b() { return 1; }
};
class solly : silly {
public:
virtual int b() { return 2; }
};
class thing {
public:
virtual int a() { return 3; }
};
class thong : public solly, public thing {
public:
virtual int a() {
if (this != vp) return 4;
else re... |
google | android | parse1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/parse1.C | 162 | utf_8 | bcf5a42db1bd2a06014dd0a5a3c098e4 | // { dg-do assemble }
enum { name1 };
struct name0 { };
struct name1 { };
struct derived1 : public name1 { };
struct derived2 : public name0, public name1 { };
|
google | android | p10951 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p10951.C | 241 | utf_8 | 2a5ad552fb34f7ba919d73e7f3207bbb | // { dg-do assemble }
// prms-id: 10951
inline int m1(const int& a) {
return 1;
}
template <class T>
class A {
public:
typedef int st;
static int m2t() {
return m1(1);
}
};
A<int>::st i;
int m3() {
return A<int>::m2t();
}
|
google | android | eh35 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh35.C | 267 | utf_8 | 98340d3e928839992e396233429893c6 | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
main() {
try {
throw 'a';
} catch (char a) {
try {
throw 'a';
} catch (int i) {
return 1;
} catch (char c) {
return 0;
}
}
return 1;
}
|
google | android | eh7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh7.C | 121 | utf_8 | d36c25daa6dca17afa70fcba137b4d7e | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
main() {
if (0)
throw 1 | 2;
}
|
google | android | p6746 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p6746.C | 330 | utf_8 | cbbbcd386c28e518426b73c8326aae7b | // { dg-do assemble }
// prms-id: 6746
class call_trace {
public:
call_trace(const char* fcn_name);
~call_trace();
};
static char * last_tree;
extern "C" void prt();
char * smt_mark_stree() {
const char* _my_name = "smt_mark_stree" ;
call_trace _t(_my_name);
return last_tree = 0 ? (char*)0 : (prt(), (ch... |
google | android | p6311 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p6311.C | 238 | utf_8 | 31d4b934b63d1ccd3fce41f3cdd4ee83 | // { dg-do run }
// prms-id: 6311
struct Foo {
int member;
} a = { 42 }, *ptra = &a;
int Foo::*pmd = &Foo::member;
int main() {
if (pmd == 0)
return 1;
if (a.*pmd != 42)
return 2;
if (ptra->*pmd != 42)
return 3;
}
|
google | android | ns6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/ns6.C | 83 | utf_8 | 807d61ee0b7b2a5e312665da5920e809 | // { dg-do assemble }
namespace A {
int i = 1;
}
namespace A {
int j = i;
}
|
google | android | vtable1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/vtable1.C | 172 | utf_8 | 7518c658d812f0b7b8fd0dbd60801a23 | // { dg-do link }
// { dg-options "-fno-implement-inlines " }
struct type {
virtual void m1();
virtual void m2() { }
};
void type::m1() { }
int main() {
type t;
}
|
google | android | p10849a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p10849a.C | 421 | utf_8 | 3dcc8f21f5f9b0981a00f610b3528d2d | // { dg-do run }
// prms-id: 10849
struct A
{
int comm;
A(int i) : comm(i) { }
};
struct S1 { char c1; };
struct B : public S1, public A
{
B(int i) : A(i) { }
};
struct C : public A
{
C(int i) : A(i) { }
};
struct D : public B, public C
{
virtual int g() {
int D::*pmd = (int C::*)&C::comm;
retur... |
google | android | p8804 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p8804.C | 203 | utf_8 | 1004649e4f7df3cafa990e7bef0051b9 | // { dg-do run }
// prms-id: 8804
extern "C" int printf (const char *, ...);
struct Fails {
int i;
union {
union {
int c;
};
};
};
Fails d;
int main() {
return &d.i == &d.c;
}
|
google | android | net28 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net28.C | 473 | utf_8 | 86b92cf1f624f5601b525fbdce436512 | // { dg-do assemble }
// shows an InterViews problem on RS6000 and i386. Doesn't happen on
// SPARC.
// From fbrowser.c.
class test {
};
typedef int ( test ::* test2)(int fd);
class ivFileBrowserImpl_IOCallback
{
public:
int inputReady(int fd);
test * _obj;
test2 _input;
};
int ivFileBrowserImp... |
google | android | eh30 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh30.C | 103 | utf_8 | 198548c5cd351bbbe4e256679463bf71 | // { dg-do assemble { target native } }
// { dg-options "-fexceptions -fPIC -S" }
main() { throw 1; }
|
google | android | for2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/for2.C | 363 | utf_8 | f985c5b411c95d1c5af9e499f554a0ca | // { dg-do assemble }
void foo() {
for (class C {};;)
;
C c; // { dg-error "declared" "decl" }
}
void bar() {
for (enum E {num};;)
;
E e; // { dg-error "declared" "decl" }
}
void bee () {
int i = 0;
for (int fun() = 0; i != 2; ++i) { // { dg-warning "extern" "extern" }
// { dg-error "initi... |
google | android | p3708b | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p3708b.C | 1,527 | utf_8 | 192a029941916db1a5b164e5eda8ebaf | // { dg-do run }
// prms-id: 3708
extern "C" int printf (const char *, ...);
extern "C" void exit(int);
void *ptr;
class A {
public:
A() { printf ("A is constructed.\n"); }
virtual void xx(int doit) { printf ("A is destructed.\n"); }
};
class A1 {
public:
A1() { printf ("A1 is constructed.\n"); }
virtual v... |
google | android | for1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/for1.C | 106 | utf_8 | bb215f95244a8c053f7a3cc356de3981 | // { dg-do assemble }
int main() {
for( {int i = 0; int j = 0;} i < 10; ++i ) ; // { dg-error "" }
}
|
google | android | opr-as1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/opr-as1.C | 146 | utf_8 | 33f8b01274afad390de5e0293e69a362 | // { dg-do run }
// Shows a problem with the default op= not being an implementation...
class C {
int i;
};
C a, b;
int main() {
a = b;
}
|
google | android | rtti3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/rtti3.C | 442 | utf_8 | 6333d51732f347371e88b98280b27571 | // { dg-do run }
class base {
public:
virtual ~base() {}
virtual void m1() = 0;
virtual void m2() = 0;
};
class intermediate : public virtual base {
public:
virtual ~intermediate() {}
virtual void m1() {}
virtual void m2() {}
};
class derived : public intermediate {
public:
virtual int IwantedThisMetho... |
google | android | p9068 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p9068.C | 469 | utf_8 | f9706ed701a43a2569eeb24751b95086 | // { dg-do assemble }
// prms-id: 9068
struct ostream {
void operator<< (int); // { dg-message "operator|no known conversion" } fn ref in err msg
};
class C {
public:
static int& i ();
static int& i (int signatureDummy);
};
void foo (ostream& lhs, const C& rhs)
{
lhs << rhs.i; // { dg-error "match" } no su... |
google | android | err2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/err2.C | 135 | utf_8 | 216f3aa279cf9943770bb8e55c4c43de | // { dg-do assemble }
class foo {
public:
void apply(foo *(foo::*memptr)()) {
this->*memptr(); // { dg-error "" } wrong
}
};
|
google | android | p807 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p807.C | 384 | utf_8 | 45afff2caee269dcedbefd9be511cc46 | // { dg-do assemble }
// prms-id: 807
extern "C" int printf(const char*, ...);
class B;
class AX
{
protected:
int x;
public:
operator B();
};
class B
{
private:
int x;
public:
B(const AX&);
};
int foo(B& b); // { dg-message "" } referenced below
int main()
{
AX a;
foo(a); // { dg-err... |
google | android | p10247 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p10247.C | 132 | utf_8 | 2518f92cc28ff4e3f4df7b080c7cadbe | // { dg-do assemble }
// prms-id: 10247
class a {
public:
int operator++(int) { return operator()++ ; } // { dg-error "" }
};
|
google | android | virt4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/virt4.C | 335 | utf_8 | 4ffc1ad480de5da586404bb6657533d8 | // { dg-do run }
// { dg-options "" }
void Foo () {}
class B {
public:
virtual void foo() = 0;
};
class D: virtual public B {
public:
void foo() { Foo(); }
};
class D1: public D {};
class D2: public D {};
class D1_2: public D1, public D2 {
public:
void foo() { D1::foo(); D2::foo(); }
};
main() {
D1_2 h... |
google | android | bool1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/bool1.C | 168 | utf_8 | 4c02435416ea3ea2f4ddd086e6aac2ab | // { dg-do assemble }
// bool test case
void foo(int i) {
foo (true);
}
struct C {
void foo(int i) {
foo(true);
}
void bar(bool b) {
bar(0);
}
};
|
google | android | net35 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net35.C | 470 | utf_8 | b5504155ff1821c6557f9abab72f6d79 | // { dg-do run }
extern "C" int printf(const char *, ...);
class A {
public:
char *x;
};
class B1:public virtual A { };
class B2:public virtual A { };
class C:public B1, public B2 {
public:
C() { }
};
int main() {
C c;
printf("&c.x = %x\n", &c.x);
printf("&c.B1::x = %x\n", &c.B1::x);
printf("&c.B2::... |
google | android | misc5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/misc5.C | 292 | utf_8 | 9875744366e05960073b7c72f5e4b0b7 | // { dg-do assemble }
// GROUPS uncaught
// Cfront bug A.3 (See Language System Release Notes for the
// SPARCompiler C++ version 3.0)
struct S1 {
static int S1; // { dg-error "" } uses same name 9.3
};
struct S2 {
union { int ii; float S2; }; // { dg-error "" } uses same name 9.3
};
|
google | android | p786 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p786.C | 405 | utf_8 | 21e877c6176145bd8bd48cbf0a107c6f | // { dg-do run }
// prms-id: 786
extern "C" int printf (const char *, ...);
extern "C" void exit(int);
class C
{
int a;
public:
C() {a = 1;}
};
void func(const C& a, C& b)
{
printf ("in const func\n");
exit(1);
}
void func(C& a, C& b)
{
printf ("in non-const func\n");
}
void testit(const C& a,... |
google | android | eh14 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh14.C | 350 | utf_8 | 1fe4fb4231b46caade9d671e6932e03b | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
class arghh {
public:
int n;
arghh (int v) { n = v; }
};
int main () {
try {
throw arghh (11);
}
catch (arghh& a) {
if (a.n != 11)
return 1;
}
try {
throw arghh (22);
}
catch (arghh& a) {
if (a.n... |
google | android | conv1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/conv1.C | 105 | utf_8 | 2e1275fc17178a9974d8bfa449072baf | // { dg-do run }
enum E { C };
E foo() {
return C;
}
int main() {
if (foo() != C)
return 1;
}
|
google | android | ns3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/ns3.C | 90 | utf_8 | ad7e7ff96ee25569c612972fdbc0b0f2 | // { dg-do assemble }
int i; // { dg-message "" }
namespace i { // { dg-error "" }
}
|
google | android | p11667 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p11667.C | 1,086 | utf_8 | 30520ec507faa045cd8d09733f3870e7 | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
// prms-id: 11667
extern "C" int printf(const char *,...);
template < class T >
class LIST {
public:
LIST() { nitems = 16; items = new T[nitems]; };
LIST(int u) { nitems = u; items = new T[nitems]; };
T& operator[](int i) cons... |
google | android | rtti1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/rtti1.C | 64 | utf_8 | 578df3f8b89228bbd34cb1e4afdc89c4 | // { dg-do assemble }
#include <typeinfo>
#include <iostream>
|
google | android | pmf3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/pmf3.C | 483 | utf_8 | 864a70d4eb67b63b33cc127a399eaeac | // { dg-do assemble }
struct Fooey {
void f(char* pX);
void f(int in);
void f(float fx);
void h(double dx);
};
void Fooey::f(char*) { } // { dg-message "" } candidate
void Fooey::f(int) { } // { dg-message "" } candidate
void Fooey::f(float) { } // { dg-message "" } candidate
void Fooey::h(double zahl) { }
... |
google | android | p9506 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p9506.C | 86 | utf_8 | ffcaf5353c10d9ae2055efaf08adbee1 | // { dg-do assemble }
// prms-id: 9506
char * volatile p;
void foo() {
--p = 0;
}
|
google | android | p4511 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p4511.C | 361 | utf_8 | aed06d3f92d78251bdcc282a304b4b3c | // { dg-do run }
// prms-id: 4511
int bad;
class A {
public:
virtual void dummy (){}
};
class B {
public:
virtual void f(void) = 0;
};
class C : public A, public B {
public:
void f(void) { bad=1; }
};
class D : public C {
public:
void f(void) { }
};
class E : public D { };
int main() {
E e;
e.f();
... |
google | android | net9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net9.C | 355 | utf_8 | d131a415548d6bfa1dd4160ed055b1e3 | // { dg-do assemble }
// { dg-options "-pedantic-errors" }
const int ci=10, *pc = &ci, *const cpc = pc, **ppc;
int i, *p, *const cp = &i;
int main()
{
ci = 1; // { dg-error "" } bad
ci++; // { dg-error "" } bad
*pc = 2; // { dg-error "" } bad
cp = &ci; // { dg-error "" } bad
cpc++; // { dg-error "" } bad
... |
google | android | ref1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/ref1.C | 354 | utf_8 | 4c170a948c69e24330fb57e109664614 | // { dg-do run }
int count;
struct base {
base () { ++count; }
~base () { --count; }
base(const base&o) { ++count; }
};
base base_returning_function ();
const base& base_ref = base_returning_function ();
int main () {
if (count != 1)
return 1;
}
base base_returning_function () {
base local_base_obje... |
google | android | eh19 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh19.C | 339 | utf_8 | 8721262eddd81a7ccc7e7ef297cd63b1 | // { dg-do assemble }
// { dg-options "-fexceptions" }
class test1 {
public:
class fehler{public:fehler(){};};
void func(int a) {
if( a == 0 )
throw fehler();
}
};
int main() {
test1 var;
try {
var.func(1);
var.func(0);
} catch(test1::fehler()) // function type promoted to pointer
... |
google | android | eh42 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh42.C | 262 | utf_8 | 17fcd1369d1c48670623b24277d42c06 | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
struct none { int i[50]; };
class my_ex { } a;
none throw_it() {
throw 1;
}
int main() {
try {
none n = throw_it();
} catch (int ex) {
return 0;
}
}
|
google | android | p700 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p700.C | 36,540 | utf_8 | 0de293181188e14166cfb4d0e6bc98e0 | // { dg-do assemble }
// { dg-options "-Wno-deprecated" }
// { dg-error "limited range of data type" "16-bit target" { target xstormy16-*-* } 0 }
// prms-id: 700
//# 1 "../../../../libg++/etc/benchmarks/dhrystone.cc"
//# 1 "../../../../libg++/etc/benchmarks/Int.h" 1
... |
google | android | net47 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net47.C | 120 | utf_8 | 680f0a5fda4b00207904e39749fd360d | // { dg-do assemble }
// { dg-options "-w -fpermissive" }
class foo {};
class bar : foo {
public:
bar () : () {}
};
|
google | android | pmf6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/pmf6.C | 242 | utf_8 | 51adf6ea760435d9c34cb13e0316e25f | // { dg-do assemble }
// { dg-options "" }
class S {
public:
void (S::*pmf)();
void foo() {
pmf(); // { dg-error "pointer-to-member" }
}
static void foo1(S* sp) {
(sp->pmf)(); // { dg-error "pointer-to-member" }
}
};
|
google | android | p7180 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p7180.C | 221 | utf_8 | 4f1b7fceb4b2604eeaa908c9d14306de | // { dg-do run }
// prms-id: 7180
class String {
public:
String(const char*);
~String();
};
String::String(const char* str = "") {
}
String::~String(void) {
}
int main() {
const String array[] = {"3"};
}
|
google | android | eh15 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh15.C | 90 | utf_8 | 4060fa805a5ae72a9abac66a6a83a995 | // { dg-do assemble }
// { dg-options "-fexceptions" }
struct A {
A() throw (int);
};
|
google | android | init1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/init1.C | 413 | utf_8 | 5dd172df29946ffa94aba7f3bed887c6 | // The VxWorks kernel has no implementation of atexit, so local statics
// are never destroyed.
// { dg-do run { xfail vxworks_kernel } }
int count;
extern "C" void _exit(int);
struct C {
~C() { if (count != 1) _exit(1); }
} c;
class A {
public:
~A () { ++count; }
};
void f() {
static A a;
}
void g() {
//... |
google | android | p3060d | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p3060d.C | 679 | utf_8 | ae0734d774adb0c356a07cf043b8472f | // { dg-do run }
// This is a test case to make sure the explicit cast on a pointer to
// a member function works ok.
// prms-id: 3060
extern "C" int printf(const char *, ...);
class Object;
typedef void (Object::*VoidObjMemberFunc)(Object *tracker, void *ap);
class Object {
public:
int foo;
};
class Cl... |
google | android | p11012 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p11012.C | 220 | utf_8 | 971d8f598497667c0923be96f5466dd0 | // { dg-do assemble }
// { dg-options "-Wno-pmf-conversions" }
// prms-id: 11012
class Foo {
public:
int f(){ return 0; }
};
void foo() {
void *p1 = &Foo::f;
const void *p2 = &Foo::f;
int (*p3)() = &Foo::f;
}
|
google | android | p3708a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p3708a.C | 1,514 | utf_8 | 44ae77bb37f4d83f95e364b82b3b57db | // { dg-do run }
// prms-id: 3708
extern "C" int printf (const char *, ...);
extern "C" int atoi (const char *);
void *ptr;
class A {
public:
A() { printf ("A is constructed.\n"); }
virtual void xx(int doit) { printf ("A is destructed.\n"); }
};
class A1 {
public:
A1() { printf ("A1 is constructed.\n"); }
virt... |
google | android | p9732b | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p9732b.C | 674 | utf_8 | 2fde43f9124d8f51d94916f78ae76d1a | // { dg-do run }
// prms-id: 9732
int count;
int bail = 0;
extern "C" void abort (void);
extern "C" void _exit (int);
struct base {
base () { ++count; }
~base () { --count; }
base(const base&o) { ++count; }
};
class D {
public:
~D() {
if (bail++)
{
// On some Linux boxes, we run the dtor for d ... |
google | android | net12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net12.C | 254 | utf_8 | 57c77fe730bc236501de1471b61b7fc6 | // { dg-do assemble }
// { dg-options "-pedantic-errors" }
struct Foo {
char *p;
const char *q;
void m() const;
};
void other(char &x); // { dg-message "" } reference below
void
Foo::m() const
{
other(*q); // { dg-error "" } this is bad
}
|
google | android | eh2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh2.C | 1,013 | utf_8 | d2317ef5d92257ff3b64c851c3c43fc5 | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
#include <cstdlib>
#include <iostream>
class Vector {
private:
int *p;
int sz;
public:
// Exception class
class Range {
private:
int value_i;
public:
Range( int i ) { value_i = i; };
int value() { return v... |
google | android | p3538a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p3538a.C | 658 | utf_8 | 219ded6bf0f6b34cb6656e4ccdd827e1 | // { dg-do assemble }
// This tests for the compiler_error in binfo_value.
// prms-id: 3538
class ccObjectInfo
{
public:
virtual const ccObjectInfo& repInvariant (int);
};
template<class T>
class ccHandle : public ccObjectInfo
{
protected:
T* p;
public:
virtual const ccObjectInfo& repInvariant (int);
};
te... |
google | android | eh39 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh39.C | 328 | utf_8 | 354ecc242f6c612f1e31a5e5b6080612 | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int fail = 1;
class B {
public:
B() { throw 1; }
};
class D : public B {
public:
D();
};
D::D() try : B() {
fail = 1;
} catch (...) {
fail = 0;
throw;
}
main() {
try {
D d;
fail = 1;
} catch (...) {
}
return ... |
google | android | eh8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh8.C | 292 | utf_8 | ffc531751684987b1fd8274436f46c9c | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
extern "C" int printf(const char *, ...);
int i;
main() {
try {
try {
throw i;
} catch (char *) {
return 1;
}
return 1;
} catch (int i) {
return 0;
}
return 1;
}
|
google | android | net25 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net25.C | 170 | utf_8 | 1ead8950fec10fb4a339d0b4c07bcc38 | // { dg-do assemble }
void shake_zero()
{
}
void shake_one()
{
}
void (*foo)();
int main(int a, char** /*argv*/)
{
foo = a ? shake_zero : shake_one;
return 0;
}
|
google | android | mangle1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/mangle1.C | 421 | utf_8 | 073c808f1e34331a1ff98d67d95e80a4 | // { dg-do assemble }
// { dg-options "" }
// Make sure the typedef name is used in name mangling, not some random
// anonymous name
struct foo {
typedef enum { red } color;
void bar(color r) {
}
} f;
#ifdef sparc
void f1() asm("bar__3fooQ23foo3$_0");
void f1() {
}
void f2() asm("_bar__3fooQ23foo3$_0");
void ... |
google | android | misc6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/misc6.C | 366 | utf_8 | cc10249212aad9171788f0541d34cad0 | // { dg-do assemble }
// { dg-prune-output "note" }
// { dg-options "-std=c++98 -pedantic-errors" }
// GROUPS uncaught
// Cfront bug A.4 (See Language System Release Notes for the
// SPARCompiler C++ version 3.0)
struct assign {
assign& operator = (const assign&);
};
union U {
assign a; // { dg-error "" } member... |
google | android | net44 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net44.C | 200 | utf_8 | 229e54a7410e211caac4f800912d7ba2 | // { dg-do assemble }
// Make sure we don't dump core
enum request { q, w, e}; // { dg-message "" }
class request { // { dg-error "" }
public:
int a;
request( int b) {
a = b;
};
};
|
google | android | p3139 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p3139.C | 333 | utf_8 | c04924a422b35d18010a7af8d16f5365 | // { dg-do run }
// prms-id: 3139
extern "C" int printf(const char *, ...);
class A {
public:
A() { }
virtual int a() = 0;
};
class B : virtual public A {
public:
virtual int a() = 0;
};
class C : public B {
public:
int a() { return 42; }
};
int main() {
B * b = new C;
printf("%d.\n", b->a());
... |
google | android | eh27 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh27.C | 290 | utf_8 | 11428522080cc8e4de76b2bbf7cbe4d1 | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
#include <typeinfo>
class MyExceptionHandler { };
main() {
try {
throw MyExceptionHandler();
} catch(const MyExceptionHandler& eh) {
return 0;
} catch(...) {
return 1;
}
return 1;
}
|
google | android | net6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net6.C | 90 | utf_8 | e07d88b8b2e772bacad1496d54044434 | // { dg-do assemble }
// { dg-options "" }
struct X {};
X x = X(); // { dg-bogus "" }
|
google | android | hog1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/hog1.C | 7,544 | utf_8 | f47d13b17809698e784e1f15ec970ac7 | // { dg-do run }
class dummy { public: void operator++(void) {}
};
class dummy_000 : private virtual dummy { public: void operator++(void) {
dummy::operator++(); } };
class dummy_001 : private virtual dummy { public: void operator++(void) {
dummy::operator++(); } };
cla... |
google | android | dyncast9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/dyncast9.C | 264 | utf_8 | dc0842e0e7b05c40ec3e0d4c4870e146 | // { dg-do run }
class S1 { int i; };
class S2 { int i; };
class VB {
public:
virtual void foo() { }
};
class D : public S1, virtual public VB {
} d;
class E : public S2, public D {
} e;
int main() {
return (char *)&e - (char *)dynamic_cast<E*>((D*)&e);
}
|
google | android | p991 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p991.C | 468 | utf_8 | c6ca70bc31ac97b8e8629f8b55914235 | // { dg-do assemble }
// prms-id: 991
class Complex {
public:
double re;
double im;
Complex(double r,double i) : re(r), im(i) {}
};
Complex cos(const Complex&);
extern "C" double cos (double); // not the same as the above
extern "C" double cosh (double);
extern "C" double sin (double);
extern "C" double sinh (d... |
google | android | net27 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net27.C | 124 | utf_8 | eff2bb764ea2c7cafbf8e9fbb3474976 | // { dg-do assemble }
class path {
public:
path (const path& r)
{ "\"";
'\'';
}
};
|
google | android | net32 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net32.C | 241 | utf_8 | a7fc8e240ffcfa37fe311d49d32622c9 | // { dg-do assemble }
class Co_obj {
public:
Co_obj() {}
};
class Linear_list_node : virtual public Co_obj { };
class M1 : public Linear_list_node { };
class M2 : public Linear_list_node { };
class New_node : public M1, public M2 { };
|
google | android | ns4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/ns4.C | 56 | utf_8 | dbf61afb40127648f192a500027fa778 | // { dg-do assemble }
namespace i {
}
namespace i {
}
|
google | android | dyncast8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/dyncast8.C | 287 | utf_8 | cdcf7943e31dae20cf4b2ef4c0f6436c | // { dg-do run }
#include <typeinfo>
class Base
{
public:
virtual ~Base() { }
};
class Derived : public Base
{
public:
Derived() {}
};
int main()
{
const Derived b;
const Base* ap = &b;
const Derived* p1 = dynamic_cast<const Derived*>(ap);
return p1 == 0;
}
|
google | android | p5469a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p5469a.C | 264 | utf_8 | 8ea133c89aeac2630522f766a59283bf | // { dg-do run }
// prms-id: 5469
int count;
class A {
A();
A(const A&);
public:
A(int) { ++count; }
~A() { --count; }
int operator== (const A& r) { return 1; }
};
int main() {
{
A a (1);
if (a == 2 || a == 1)
;
}
return count;
}
|
google | android | eh17 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh17.C | 260 | utf_8 | 3a7f673346cfa5c7d7baaa6becc18bda | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int e = 1;
struct A {
~A() {
--e;
}
};
struct B : public A {
B() {
throw 1;
}
};
main() {
try {
B b;
} catch (...) {
return e;
}
return 1;
}
|
google | android | p8009 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p8009.C | 144 | utf_8 | ea6f77e23475c14b010ae9424b10cf2c | // { dg-do assemble }
// prms-id: 8009
class A {
public:
int i;
};
class B : public A {
B();
};
B::B() : i (-1) {} // { dg-error "" }
|
google | android | temp | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/temp.C | 547 | utf_8 | cd57679bb2e5eddfd83825e786778b6d | // { dg-do run }
extern "C" int printf(const char *, ...);
extern "C" const char *getenv(const char *);
class T {
int i;
public:
T() {
i = 1;
printf("T() at %x\n", this);
}
T(const T& o) {
i = o.i;
printf("T(const T&) at %x <-- %x\n", this, &o);
}
T operator +(const T& o) {
T r;
r.... |
google | android | dyncast4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/dyncast4.C | 94 | utf_8 | 8c9c28389586715ad433496f1ce0c8c0 | // { dg-do assemble }
int main() {
int* d;
dynamic_cast<void*>(d); // { dg-error "" }
}
|
google | android | net38 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net38.C | 540 | utf_8 | 02011b2cf0c011b494e76bed127bd07d | // { dg-do run }
struct A {
virtual int a () { return 0; }
};
struct B {
virtual int b () { return 0; }
virtual int b2 () { return 0; }
};
struct C : public A, public B {
virtual int a () { return 1; }
virtual int b () { return 2; }
virtual int b2 () { return 3; }
};
in... |
google | android | p16146 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p16146.C | 1,515 | utf_8 | 5cb935652cabea1e975532dddd2e6c84 | // { dg-do run }
// prms-id: 16146
extern "C" int printf (const char *, ...);
class myFoundation {
protected:
myFoundation () { count = 0; }
virtual ~myFoundation () {}
public:
void addRef () { ++count; }
void removeRef () { if (count > 0) --count; }
private:
long count;
};
class firstIntermediate :vir... |
google | android | p11142 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p11142.C | 291 | utf_8 | fbbf837d570b0f07c0c996cdd3246525 | // { dg-do assemble }
// { dg-options "-fexceptions -O -g" }
// prms-id: 11142
class RWxmsg {
public:
RWxmsg();
virtual ~RWxmsg();
};
class RWTHRInternalError : public RWxmsg {
public:
virtual ~RWTHRInternalError() { }
};
void setCount(int count) {
throw RWTHRInternalError();
}
|
google | android | warn5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/warn5.C | 447 | utf_8 | 05f6513c8595acb8a649e11460843f09 | // { dg-do assemble }
// { dg-options "-Wpointer-arith" }
double X(const double x) { return x; }
double Y() { return 1.0; }
double Z() { return 2.0; }
struct A {
void bar() { }
void foo() { }
};
typedef void (A::*pmf)();
static int mememe = &A::foo - &A::bar; // { dg-error "invalid operands" }
pmf b = &A::foo... |
google | android | pt3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/pt3.C | 335 | utf_8 | f71b53c5caf650079e9909fe6d45c0a7 | // { dg-do assemble }
template<class Repr>
class syHandle
{
protected:
syHandle();
~syHandle();
Repr *_repr;
};
template<class Repr>
syHandle<Repr>::~syHandle()
{
}
typedef char * char_ptr_t;
template <>
syHandle<char_ptr_t>::syHandle()
{
_repr = 0;
}
template <>
syHandle<char_ptr_t>::~syHandle()
{
... |
google | android | p3060c | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p3060c.C | 370 | utf_8 | 79212786796e431b8283fd5fc49261ff | // { dg-do assemble }
// A new problem with my pointer to member function work.
// prms-id: 3060
class Foo
{
public:
int x;
int y;
Foo (int i, int j) { x = i; y = j; }
operator int ();
};
int Foo::operator int() { return x; } // { dg-error "return" } can't specify return type
Foo foo(10, 11);
int
main()
{... |
google | android | p12306 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p12306.C | 1,953 | utf_8 | 80d65a0823d659c44ac2db3201ac83cd | // { dg-do run }
// prms-id: 12306
void *ptr1, *ptr2;
int fail = 0;
extern "C" int printf(const char *...);
class RWSlist { };
class RWSlistIterator {
public:
RWSlist *slist;
RWSlistIterator(RWSlist& s) { }
void toLast() {
if (ptr1 != (RWSlistIterator*)this)
fail = 5;
if (ptr2 != &(*this).slis... |
google | android | p7635 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p7635.C | 136 | utf_8 | 306aa05602be8be8c6ac1c0965a23a1b | // { dg-do assemble }
// prms-id: 7635
class DaycountBasis {
mutable const int * p;
mutable int * const q; // { dg-error "" }
};
|
google | android | p2806 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p2806.C | 214 | utf_8 | a374d562febe9e05f5916b22baa7c15a | // { dg-do assemble }
// GROUPS passed
template<class T>
class List
{
public:
List();
void f() const;
};
template<class T>
void List<T>::f() const
{
}
void func()
{
List<int> list;
list.f();
}
|
google | android | p4484 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p4484.C | 301 | utf_8 | d798a135b903a3ab1a3094dfc97e6ec5 | // { dg-do assemble }
// prms-id: 4484
class A {
char buf[64];
};
typedef void (A::*pmf)();
typedef void (A::*pmfc)() const;
pmfc p = (pmfc)(pmf)0;
class B {
};
class D : public A, public B {
};
typedef int (B::*bmfp)();
typedef int (D::*dmfp)();
bmfp foo;
void bar(dmfp a) {
bar(foo);
}
|
google | android | net29 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/net29.C | 515 | utf_8 | 4344eaa500403a02f5c1d3f0ab533c56 | // { dg-do assemble }
// This is a test case for the recent libg++ make check problem.
class SubString {
public:
SubString();
SubString(const SubString& x);
};
class String {
public:
String();
String(const SubString& x);
};
int operator!=(const String& x, const SubString& y);
int operator!=(const String& ... |
google | android | explicit1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/explicit1.C | 192 | utf_8 | 345f34ac2b4fff477c33d35030442686 | // { dg-do assemble }
struct A1 {
explicit A1(int) { }
} a1(1);
struct A {
explicit A(int);
} a(1);
A::A(int) {
}
void foo(A a) {
foo(a);
foo(1); // { dg-error "" } not allowed
}
|
google | android | eh24 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh24.C | 473 | utf_8 | d41acf8d3d3790542227386fab712ef1 | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int fail = 0;
struct A {
int ok;
A() {
ok = 1;
}
~A() {
if (! ok)
fail = 1;
ok = 0;
}
};
main() {
try {
try {
A a;
throw 1.0;
} catch (double i) {
A a1;
throw 1; // mak... |
google | android | eh32 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh32.C | 231 | utf_8 | 17875da95a253b79fa1e5e982394cdf2 | // { dg-do assemble }
// { dg-options "-fexceptions" }
class Base {
public:
virtual ~Base() throw();
};
Base::~Base() throw()
{
}
class Foo : public Base {
public:
virtual ~Foo() throw();
};
Foo::~Foo() throw()
{
}
|
google | android | s9959 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/s9959.C | 235 | utf_8 | f9336f9cb5c37a66aec107290827a164 | // { dg-do assemble }
class A {
protected:
int aData;
};
class B : public A {
public:
virtual void func1() {
A::aData = 1;
}
};
class C : virtual public B {
public:
virtual void func1(void) {
A::aData = 2;
}
};
|
google | android | p3068 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p3068.C | 826 | utf_8 | f64668d6806feedbe6b8dd14ed7fe26f | // { dg-do run }
// prms-id: 3068
extern "C" int printf(const char *, ...);
extern "C" void exit(int);
class LB {
public:
virtual int test() { return 0; }
virtual ~LB() { }
protected:
LB() { }
};
class RRB {
public:
virtual ~RRB() { }
virtual void test2(int a) { }
};
class RR : public RRB {
public:
... |
google | android | eh21 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/eh21.C | 214 | utf_8 | 87b62fe8d84f0f5c6961199d325e43fe | // { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int main () {
try {
try {
throw 1;
} catch ( char * ) {
}
} catch ( int ) {
return 0;
}
return 1;
}
|
google | android | p783a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p783a.C | 400 | utf_8 | b1814dd4aff2ecf1ced5ab368a1cda10 | // { dg-do run }
// Deleting an object many times is a lose.
// prms-id: 783
extern "C" int printf (const char *, ...);
extern "C" void exit (int);
class C {
int i;
public:
C() {
i = 1;
}
~C() {
if (i != 1) {
exit(1);
}
i = 0;
}
};
int main(int argc, char**argv) {
C c;
c = C();
re... |
google | android | unused | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/unused.C | 144 | utf_8 | f1dd09d0807f74b83d30f98c2a377901 | // { dg-do compile { target *-*-darwin* } }
// { dg-options { -Wunused-parameter } }
// Radar 4125055
void foo(int x) {
#pragma unused ( x )
}
|
google | android | p11482 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p11482.C | 125 | utf_8 | 077e9f205b257b42b1b2732d64559c94 | // { dg-do assemble }
// prms-id: 11482
void *vp;
enum E { bad, ok } e;
void foo() {
e = (E)vp; // { dg-error "" }
}
|
google | android | p807a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.old-deja/g++.mike/p807a.C | 423 | utf_8 | b9ec47c17b5b6734fbad17b4802013dc | // { dg-do assemble }
// prms-id: 807
// See ARM page 275 Section 12.3.2
extern "C" int printf (const char *, ...);
extern "C" void exit(int);
class B;
class A {
public:
A(B&); // { dg-message "note" } fn ref in err msg
};
class B {
public:
operator A(); // { dg-message "note" } fn ref in err msg
};
B b; ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.