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 | pointer-reference-alias | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pointer-reference-alias.C | 299 | utf_8 | e48295bc246510ba07409a9c081f3d68 | /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
int f(int *a)
{
int &b = *a;
b = 0;
return *a;
}
/* There should be only one dereferencing of a. */
/* { dg-final { scan-tree-dump-times "\\*a" 1 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
google | chromium | pr36766 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr36766.C | 299 | utf_8 | 2f183741ea748ec4b30350602de8d364 | // PR tree-optimization/36766
// { dg-do compile }
// { dg-options "-O -fnon-call-exceptions" }
struct A
{
~A ()
{
int *a = this->b;
}
int *b;
};
struct B : A
{
B ()
{
int *a = this->b;
}
~B ()
{
int *a = this->b;
}
};
void
foo ()
{
B *c = new B;
delete c;
}
|
google | chromium | pr19637 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr19637.C | 630 | utf_8 | 699b63459eb40f3dc298552ff41a1212 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dom1" } */
#include <new>
struct Foo {
Foo() { i[0] = 1; }
int i[2];
};
int foo_char(void)
{
int i[2];
new (reinterpret_cast<char *>(i)) Foo();
return reinterpret_cast<Foo *>(i)->i[0];
}
int foo_void(void)
{
int i[2];
new (reinterpret_cast<void ... |
google | chromium | pr49516 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr49516.C | 2,051 | utf_8 | 6872861571c025abdad6c6c70514bc3a | /* { dg-do run } */
/* { dg-options "-O2" } */
extern "C" void abort (void);
typedef int int32;
typedef unsigned int uint32;
typedef unsigned long long uint64;
typedef short int16;
class Tp {
public:
Tp(int, const int segment, const int index) __attribute__((noinline));
inline bool operator==(const Tp& other) ... |
google | chromium | pr46987 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr46987.C | 260 | utf_8 | 248739916e15886a0a5ff7d34a13f30e | /* { dg-do compile } */
/* { dg-options "-O" } */
struct A {
virtual A *getThis();
};
struct B {
virtual B *getThis();
};
struct AB : public A, public B {
virtual AB *getThis() { return 0; }
};
void foo ()
{
AB ab;
B *b = &ab;
b->getThis();
}
|
google | chromium | pr33615 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr33615.C | 446 | utf_8 | cff29fea619052d194095f66277d1c6d | /* { dg-do compile } */
/* { dg-options "-O -fnon-call-exceptions -fdump-tree-lim1-details -w" } */
extern volatile int y;
double
foo (double a, int x)
{
while (x--)
{
y++;
a += 1.0 / 0.0;
}
return a;
}
// The expression 1.0 / 0.0 should not be treated as a loop invariant
// if it may throw a... |
google | chromium | pr17400 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr17400.C | 594 | utf_8 | 84bb302e221d8cd2317c6c09441d615f | // Test PR 17400. Test case provided by Serge Belyshev.
/* { dg-do compile } */
/* { dg-options "-O1" } */
void inc (int &);
bool dec_test (int &);
struct A
{
int c;
friend void AddRef (A * p)
{
inc (p->c);
}
friend void Release (A * p)
{
if(dec_test (p->c))
delete p;
}
};
stru... |
google | chromium | 20040317-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/20040317-1.C | 1,153 | utf_8 | 2a1f9c8b1ccb241e4745f1e06c56fac3 | /* { dg-do run } */
/* { dg-options "-O2" } */
/* Test provided by Brian Ryner in PR 14511. The alias analyzer was
not handling structures containing arrays properly. In this case,
the static cast was introducing two assignments of the form
this_6->_vptr.IFoo = &_ZTV4IFoo[2];
this_4->_vptr.IFoo = &_ZTV3... |
google | chromium | pr28003 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr28003.C | 603 | utf_8 | 68f892d0aaa84abba22ecb11810e95ce | // PR tree-optimization/28003
// Alias grouping needs to be computed after call clobbering, because it
// changes around the tags and variables in a way that makes our
// call clobbering computation incorrect.
// { dg-do run }
// { dg-options "-O2" }
extern "C" void abort(void);
struct A
{
int i, j[9];
A() : i(1) {... |
google | chromium | pr21463 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr21463.C | 628 | utf_8 | 6354563547a948a45e6104aad7bce512 | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-phiopt1" } */
template<class T> static inline const T &ref_max(const T &a, const T &b)
{ return a<b ? b : a; }
template<class T> static inline const T &ref_min(const T &a, const T &b)
{ return a<b ? a : b; }
template<class T> struct foo_t {
T a0, a1;
T bar_ref... |
google | chromium | ssa-cast-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ssa-cast-1.C | 320 | utf_8 | 393e0408cee76b2ea195f959657d773f | /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
int &f(int *a)
{
return *a;
}
/* There should be no cast as pointer and references are
considered the same type. */
/* { dg-final { scan-tree-dump-times "\\(int &\\)" 0 "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
google | chromium | pr43411 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr43411.C | 626 | utf_8 | 7e57fe1e966a79053fd09c7304030296 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-release_ssa" } */
class P { public: virtual int function_to_inline() { return 123; } };
class Psub : public P { };
extern int sink1, sink2;
void test() {
Psub p;
P &pRef = p;
sink1 = p.function_to_inline();
sink2 = pRef.function_to_inline();
}
... |
google | chromium | ehcleanup-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ehcleanup-1.C | 523 | utf_8 | 090725623b33f318f34ecfc3328e1485 | // { dg-options "-O2 -fdump-tree-ehcleanup1-details" }
extern void can_throw ();
class a
{
public:
~a ()
{
if (0)
can_throw ();
}
};
void
t (void)
{
class a a;
can_throw ();
}
// We ought to remove implicit cleanup, since destructor is empty.
// { dg-final { scan-tree-dump-times "Empty EH handler" ... |
google | chromium | pr14703 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr14703.C | 1,037 | utf_8 | f32a65e0adde0d18a7b0f1b12d14f24b | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized -fno-ipa-reference" } */
#include <iostream>
namespace {
template <unsigned long long L> class fib {
public:
static const unsigned long long value = fib<L - 1>::value + fib<L - 2>::value;
};
template <> class fib<0> {
public:
static const unsi... |
google | chromium | fwprop-align | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/fwprop-align.C | 370 | utf_8 | c2c6346259efd9cf339b73844e0fef91 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop2" } */
struct A
{
void foo ()
{
}
};
int main()
{
void (A::* const p)() = & A::foo;
A a;
(a.*p)();
}
/* We should eliminate the check if p points to a virtual function. */
/* { dg-final { scan-tree-dump-times "& 1" 0 "forwprop2" } } */
/* ... |
google | chromium | pr27090 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr27090.C | 412 | utf_8 | 64112b28dbb1e06f1769fe66e1cf6696 | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
template <class T>
struct Bar
{
int get() { return static_cast<T*>(this)->get2(); }
};
struct Foo : public Bar<Foo>
{
int get2() { return x; }
int x;
};
int foo(Foo& f)
{
return f.get();
}
/* { dg-final { scan-tre... |
google | chromium | pr49911 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr49911.C | 1,001 | utf_8 | 7981fcbc1fe94927ebef936ad375d62d | /* { dg-do compile } */
/* { dg-options "-O2 -fstrict-enums -fno-rtti -fno-exceptions -fno-strict-aliasing -fdump-tree-vrp2" } */
extern void JS_Assert();
typedef enum {
eax, ecx, edx, ebx, esp, ebp,
esi, edi }
RegisterID;
union StateRemat {
RegisterID reg_;
in... |
google | chromium | pr15791-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr15791-2.C | 166 | utf_8 | 44258efc32e7a0390a4fd5cba4148adc | /* { dg-do link } */
/* { dg-options "" } */
void link_error ();
struct a {};
int main ()
{
struct a b[2];
if (&b[0] == &b[1])
link_error ();
return 0;
}
|
google | chromium | tmmti | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/tmmti.C | 96 | utf_8 | 0fb08fd6d187247ae5872931e884061c | /* { dg-do compile } */
void bar(unsigned int i)
{
int a[4];
char *p = (char*)&a[1] + 4*i;
}
|
google | chromium | pr8781 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr8781.C | 662 | utf_8 | d56e4fc904579446fb892941249b3b4a | /* { dg-do compile } */
/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */
int f();
template<typename predicate>
class noop_t {
const predicate &pred;
public:
explicit noop_t(const predicate &p) : pred(p) {}
int operator()() const { return pred(); }
};
template<typename predicate>
inline n... |
google | chromium | pr20489 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr20489.C | 265 | utf_8 | ebc744114f159114473ef7dfa2b07535 | /* { dg-do compile } */
/* { dg-options "-O2" } */
struct A
{
~A();
};
/* If we don't create SFT's for the "empty" structure A, bad things
will happen, and we will fail verification. */
struct B
{
int i;
A a;
void foo() {}
};
void bar()
{
B().foo();
}
|
google | chromium | obj-type-ref | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/obj-type-ref.C | 370 | utf_8 | 9ea732e01391f201c070578af2e42c8a | /* { dg-do compile } */
/* This used to fail with type-checking enabled because we didn't
expect OBJ_TYPE_REF expressions. */
class QObject {};
class Pile : public QObject {
public:
virtual void setVisible(void);
};
class Spider {
void dealRow();
Pile *redeals[5];
int m_redeal;
};
void Spider::dea... |
google | chromium | pr40874 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr40874.C | 419 | utf_8 | e99cd9167b2a53ab17dd6de12e8a93b3 | // { dg-do compile }
// { dg-options "-O -fdump-tree-optimized" }
struct pf
{
inline pf(int(*x)(int)) : x(x) {}
inline int operator()(int a) const
{
return x(a);
}
int (*x)(int);
};
inline int g(int x) { return x/x - 1; }
int main(int argc, char* argv[])
{
pf f(g);
return f(3);
}
// { dg-f... |
google | chromium | pr37337 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr37337.C | 590 | utf_8 | 5c831c14b296b96a01bdddeddc5a05ff | // PR middle-end/37337
// { dg-do compile }
// { dg-options "-O2" }
extern "C"
{
typedef struct _IO_FILE FILE;
extern int __fprintf_chk (FILE *, int, const char *, ...);
extern inline __attribute__ ((always_inline, gnu_inline, artificial))
int fprintf (FILE *s, const char *f, ...)
{
return __fprintf_chk ... |
google | chromium | new1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/new1.C | 628 | utf_8 | 1c66c0a04e2d18d5e297d227f66382cc | // PR c++/36633
/* { dg-do compile } */
/* { dg-options "-O2 -Wall -fdump-tree-forwprop1" } */
// No particular reason for choosing forwprop1 dump to look at.
struct B { ~B() {} };
struct D : public B {};
//struct D {};
struct my_deleter
{
void operator()(D * d)
{
// delete [] d;
}
};
struct smart_ptr
... |
google | chromium | pr44706 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr44706.C | 1,429 | utf_8 | 04e3fee675a78d9acc025efe43614bc5 | /* { dg-do compile } */
/* { dg-options "-O3 -fdump-tree-fnsplit" } */
class MemoryManager;
class XMLExcepts {
public :
enum Codes {
AttrList_BadIndex
};
};
class XMLException {
public:
XMLException(const char* const srcFile, const unsigned int srcLine,
MemoryManager* const memoryManager = 0);
};... |
google | chromium | ssa-sra-3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ssa-sra-3.C | 1,131 | utf_8 | 3fc97853b7f5a33a82d43b9c8b97e80a | /* { dg-do compile } */
/* { dg-options "-O2" } */
/* Test check use_block_copy bit propagation in sra element hierarchy. */
typedef unsigned char UINT8 ;
typedef unsigned int UINT ;
class C4
{
public:
int xy[2];
};
class C3
{
public:
inline void
Reset()
{
C4 const mvMax = {0x7fff, 0x7fff};
m42(0,mv... |
google | chromium | pr33604 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr33604.C | 1,145 | utf_8 | 897f1bc17b61d0c4b8fa8b6108d26788 | /* { dg-do run } */
/* { dg-options "-O -fdump-tree-optimized-vops" } */
struct Value
{
double value;
Value(double value_) : value (value_) {}
operator double() const { return value; }
Value& operator=(double other) { value = other; }
};
struct Ref
{
const Value& m;
Ref(const Value& m_) : m(m_) {}
opera... |
google | chromium | pr37284 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr37284.C | 282 | utf_8 | ad29c1108af522a5f6549a85ceae70af | /* { dg-do compile } */
/* { dg-options "-fstrict-aliasing" } */
void* operator new(__SIZE_TYPE__, void* __p) throw()
{
return __p;
}
class PatternDriverTop;
typedef const PatternDriverTop* _Tp;
void construct(_Tp* __p, const _Tp& __val)
{
::new((void *)__p) _Tp(__val);
}
|
google | chromium | pr26140 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr26140.C | 180 | utf_8 | 9b83f20893ef5febef9dbb2f7ade2aa1 | /* { dg-do compile } */
struct Pitch
{
int notename_;
};
struct Audio_note
{
Audio_note (Pitch p);
};
void create_audio_elements ()
{
Pitch *pit;
new Audio_note (*pit);
}
|
google | chromium | pr33615-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr33615-2.C | 459 | utf_8 | 885e2d65485d9abe06da5ddb44712bf3 | /* { dg-do compile } */
/* { dg-options "-O2 -fnon-call-exceptions -fdump-tree-pre-details -w" } */
extern volatile int y;
double
foo (double a, int x)
{
while (x--)
{
y++;
a += 1.0 / 0.0;
}
return a;
}
// The expression 1.0 / 0.0 should not be treated as a loop invariant
// if it may throw a... |
google | chromium | pr47707 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr47707.C | 408 | utf_8 | 17b2dd8d2a9a3ac4de6f0295ef166de9 | /* { dg-do run } */
/* { dg-options "-O2 -fno-tree-vrp" } */
#include <assert.h>
struct CH
{
unsigned char ch : 3;
} ch;
__attribute__((noinline)) void MakeCheckOp (unsigned int *v1, unsigned int *v2)
{
assert (*v1 == *v2);
}
int main (void)
{
int len;
for (len = 4; len >= 1; len--)
{
unsigned v1, v... |
google | chromium | pr20920 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr20920.C | 489 | utf_8 | 40a4cb93d3e506b171fb153b32fdf949 | /* { dg-do compile } */
/* { dg-options "-O2" } */
/* This was causing a failure in the out of SSA pass because VRP was
trying to insert assertions for SSA names that flow through
abnormal edges. */
void f(int) __attribute__((__noreturn__));
int d(const char *);
char * j ();
char *
foo (int x)
{
char *path =... |
google | chromium | restrict1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/restrict1.C | 379 | utf_8 | fe0c4f92b4591334dd40df6bbeb06f32 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-lim1-details" } */
struct Foo
{
Foo();
Foo(const Foo&);
int n;
int * __restrict__ p;
};
void bar(Foo f, int * __restrict__ q)
{
for (int i = 0; i < f.n; ++i)
{
*q += f.p[i];
}
}
/* { dg-final { scan-tree-dump "Executing store motion" "li... |
google | chromium | pr27830 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr27830.C | 252 | utf_8 | a4395760f907dfae0f2de3099740f694 | /* { dg-do compile } */
/* { dg-options "-O" } */
struct gc{};
struct transform:public gc
{
double x, y, z, t;
transform (void){}
};
inline transform f (void)
{
return transform ();
};
void transformed (void)
{
new transform (f());
}
|
google | chromium | pr29902 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr29902.C | 496 | utf_8 | d8063a23a492689a7c530d408aecc6af | /* { dg-do compile { target i?86-*-* } } */
/* { dg-options "-O1 -fprefetch-loop-arrays -march=athlon" } */
/* { dg-require-effective-target ilp32 } */
int length1();
int g(int);
void f(int capacity_, char *old_storage)
{
try {
length1();
int old_capacity = capacity_;
capacity_ *= 2;
g(capaci... |
google | chromium | pr41961 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr41961.C | 236 | utf_8 | b3721c1012726f86c682c19ffbad76a6 | // { dg-do compile }
// { dg-require-effective-target pthread }
// { dg-options "-O3 -ftree-parallelize-loops=2" }
struct A
{
char c[17];
void foo();
};
void A::foo()
{
for (int i = 0; i < 17; ++i)
c[i] = 0;
}
|
google | chromium | pr41186 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr41186.C | 721 | utf_8 | 112ea1ab2c51c876f6becada153dbc16 | /* { dg-do compile } */
/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */
struct Foo {
Foo() {};
int i;
short f;
};
struct Bar : public Foo {
Bar() {};
short b;
};
extern "C" void abort(void);
int main()
{
Bar b1, b2;
b2.i = 0;
b1.f = 0;
b1.b = 1;
b2.f = 1;
b2.b = 2;
static_cas... |
google | chromium | pr33593 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr33593.C | 476 | utf_8 | 9b0a4afc028e2bf3114434c245b8ab96 | /* { dg-do compile } */
/* { dg-options "-O1 -fnon-call-exceptions -fdump-tree-optimized" } */
#include <stdio.h>
void foo (int) { printf ("Bar\n"); }
int
main (void)
{
int a = 1 / 0; // { dg-warning "division by zero" }
printf ("Foo\n");
foo (a);
}
// The expression 1 / 0 should not be propagated into the ca... |
google | chromium | pr15791-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr15791-1.C | 385 | utf_8 | 62600822d88828e393d9efe9f65e0fb1 | /* { dg-do link } */
void link_error ();
int main ()
{
struct { int b[2]; } x;
int b[2];
if (&b[1] != &b[1])
link_error ();
if (&b[0] != b)
link_error ();
if (b == &b[2])
link_error ();
if (b != b)
link_error ();
if (&x.b[1] == &x.b[0])
link_error ();
if (x.b != &x.b[0])
link_e... |
google | chromium | pr21584-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr21584-2.C | 351 | utf_8 | 16cd9f13bcca36b74595d6ecd557a25a | extern char *strcpy (char *__restrict __dest, __const char *__restrict __src);
extern char *foo (void);
extern void *malloc(__SIZE_TYPE__) __attribute__((malloc));
char v[100];
void baz()
{
char *vec;
char buf[512];
char *p = buf;
while (v[(*p)])
p++;
if (*p != '#' && (p = foo()) != 0) {
strcpy (... |
google | chromium | pr16688 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr16688.C | 5,868 | utf_8 | 890d09382f8bad07b069d8f8fe14035c | /* PR 16688. Test provided by Wolfgang Bangerth. The alias analyzer
was aborting when trying to group aliases. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
template<typename _Tp>
struct iterator_traits;
template<typename _Tp>
struct iterator_traits<_Tp*> {
typedef _Tp& reference;
};
template<type... |
google | chromium | pr46228 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr46228.C | 666 | utf_8 | d81b8222ae1f66cb6af87cfcc4ffe02a | // { dg-options "-fdump-tree-optimized -Os" }
#include <set>
#include <stdio.h>
int main()
{
static const int array[] = { 1,2,3,4,5,6,7,8,9,10,6 };
std::set<int> the_set;
int count = 0;
for (unsigned i = 0; i < sizeof(array)/sizeof(*array); i++)
{
std::pair<std::set<int>::iterator, bool> result =
t... |
google | chromium | pr44914 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr44914.C | 192 | utf_8 | bf024d05ee739cc11776ea4df13e3e55 | /* { dg-do compile } */
/* { dg-options "-O1 -fipa-sra -fnon-call-exceptions" } */
struct A
{
~A () { }
};
struct B
{
A a;
int i;
void f (int) { }
B ()
{
f (i);
}
};
B b;
|
google | chromium | copyprop | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/copyprop.C | 30,166 | utf_8 | 618c4cf23c93445ac05904384e804f11 | // PR 39548 verify ssa ICE
//
// { dg-do compile { target { lp64 } } }
// { dg-options "-Wno-error -fno-exceptions -fno-tree-vrp -O2 -fprofile-generate -finline-limit=500 -std=c++98" }
//
#include <map>
#include <vector>
#include <iostream>
#include <cstdlib>
using namespace std;
template<typename _FIter, typename ... |
google | chromium | inline-3 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/inline-3.C | 613 | utf_8 | d5c069ec93d9e3c87b7c495d2a3502fd | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline" } */
/* { dg-add-options bind_pic_locally } */
#include <algorithm>
void foo(const char *s);
void
inline_me (char *x)
{
foo(x);
}
static void
inline_me_too (char *x)
{
foo(x);
}
int main(int argc, char **argv)
{
std::for_each (argv, argv + arg... |
google | chromium | pr21082 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr21082.C | 187 | utf_8 | be0bef160b9f19d0d614d35893afe046 | /* { dg-do link } */
/* { dg-options "-fstrict-overflow" } */
void link_error();
int a[4];
__INTPTR_TYPE__ b, c;
int main()
{
if (&a[b] - &a[c] != b - c)
link_error();
return 0;
}
|
google | chromium | inline-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/inline-1.C | 731 | utf_8 | 85c6cc382f9ee5241298b3374b95d832 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline" } */
/* { dg-add-options bind_pic_locally } */
namespace std {
extern "C" void puts(const char *s);
}
template <class T, class E> void
foreach (T b, T e, void (*ptr)(E))
{
for (; b != e; b++)
ptr(*b);
}
void
inline_me (char *x)
{
std::puts(x... |
google | chromium | pr24351-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24351-2.C | 650 | utf_8 | 35351f51c829a8c2ba2180c169d060d1 | /* { dg-do compile } */
/* { dg-options "-O2" } */
struct adaptor_base {};
struct bound_argument {
bound_argument();
};
struct adaptor_functorint : public adaptor_base {};
struct adaptsint : public adaptor_base {
adaptsint(const int& _A_functor);
adaptor_functorint functor_;
};
struct adaptor_functor_adaptsint {
... |
google | chromium | ssa-store-ccp-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ssa-store-ccp-1.C | 424 | utf_8 | 0df033cfcc434f5f7c8ae9627c193967 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
class bar
{
public:
static const int conststaticvariable;
};
int f(void)
{
return bar::conststaticvariable;
}
/* There should be a reference to conststaticvariable since it may
be overriden at link time. */
/* { dg-final { scan-tree-du... |
google | chromium | pr14814 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr14814.C | 541 | utf_8 | 78fcf929e1c1fde7a72e4f29b7956fd9 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-forwprop2" } */
class YY { public:
YY(const YY &v) { e[0] = v.e[0]; e[1] = v.e[1]; e[2] = v.e[2]; }
double &y() { return e[1]; }
double e[3]; };
class XX { public:
YY direction() const { return v; }
YY v; };
int foo(XX& r) {
if (r.direction().y()... |
google | chromium | pr42337 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr42337.C | 5,301 | utf_8 | 007849af5fbebd55266eebd5fd1bb02a | // PR tree-optimize/42337
// { dg-do compile }
// { dg-options "-O2" }
template<class _T1, class _T2> struct pair {
_T2 second;
};
template<typename _Tp>
inline const _Tp& max(const _Tp& __a, const _Tp& __b) { }
template<typename _ForwardIterator, typename _Tp, typename _Compare> _ForwardIterator
lower_bound(_Forwa... |
google | chromium | inline-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/inline-2.C | 722 | utf_8 | aee5433a9f07f37072f19b885db9c8b4 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline" } */
/* { dg-add-options bind_pic_locally } */
namespace std {
extern "C" void puts(const char *s);
}
template <class T, class E> void
foreach (T b, T e, E ptr)
{
for (; b != e; b++)
ptr(*b);
}
void
inline_me (char *x)
{
std::puts(x);
}
sta... |
google | chromium | pr21407 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr21407.C | 367 | utf_8 | 7c5af5a290f14644ca5fe31305ee5394 | /* { dg-do run } */
/* { dg-options "-O2" } */
extern "C" void abort(void);
struct T1 {int a, b; virtual void f(){}};
struct T : T1 { struct T1 w; int b; };
void foo (struct T1 *p) { struct T *q = dynamic_cast<T*>(p); if (q->b != 2) abort (); }
/* We shouldn't kill the store to c.b, because foo uses it. */
int main (... |
google | chromium | pr22404 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22404.C | 217 | utf_8 | 1ea79bad3adcdf5685946133e3c5e95f | /* { dg-do compile } */
/* { dg-options "-O2" } */
/* We were not getting the offset of a in B and a in C::B correct,
causing an abort. */
struct A { A(); };
struct B : A
{
A a;
};
struct C : B { };
C c;
|
google | chromium | restrict2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/restrict2.C | 1,070 | utf_8 | ff162f4a33fd22637fac6b8daf4e64ca | // { dg-do compile }
// { dg-options "-O2 -fdump-tree-optimized" }
struct S { int *__restrict p; int q; };
S s;
int
f1 (S x, S y)
{
x.p[0] = 1;
y.p[0] = 0;
// { dg-final { scan-tree-dump-times "return 1" 1 "optimized" } }
return x.p[0];
}
int
f2 (S x)
{
x.p[0] = 2;
s.p[0] = 0;
// { dg-final { scan-tree-dum... |
google | chromium | copyprop-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/copyprop-1.C | 748 | utf_8 | 91f4097f607637986e6059606657936a | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-dce2" } */
/* Verify that we can eliminate the useless conversions to/from
const qualified pointer types
this_2 = o_1;
D.20003_4 = this_2->data_m;
this_5 = D.20003_4;
D.20005_6 = this_5->value;
copyprop should propagate o_1 and D.20003_4... |
google | chromium | pr27549 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr27549.C | 1,237 | utf_8 | b7fb5b853f7854c141799346f2354a0c | // PR tree-optimization/27549
// { dg-do compile }
// { dg-options "-O2" }
typedef __SIZE_TYPE__ size_t;
struct E
{
virtual ~E () {}
virtual size_t e () const = 0;
virtual void f (char *x) const = 0;
};
struct F : public E
{
F () {}
virtual ~F () {}
virtual size_t e () const { return 0; }
virtual void ... |
google | chromium | pr24238 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24238.C | 224 | utf_8 | 2c3a0f58b5c4d9910b46c690b81523e9 | /* { dg-do compile } */
/* { dg-options "-O2" } */
typedef struct SDL_Rect {
unsigned short w, h;
}SDL_Rect;
SDL_Rect *location();
SDL_Rect inner_location()
{
SDL_Rect r = *location();
r.w -= 1;
return r;
}
|
google | chromium | pr38632 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr38632.C | 323 | utf_8 | 1808df9e79b8ab72983be12490ba0e31 | // { dg-do compile }
// { dg-require-effective-target pthread }
// { dg-options "-O -ftree-parallelize-loops=2" }
void foo();
void bar(int n, char *p)
{
try
{
foo();
++n;
foo();
for (int i = 0; i < n-1; ++i)
p[i] = 0;
}
catch (...)
{
for (int i = 0; i < n; ++i)
p[i] = 0;
}... |
google | chromium | unexpected1_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/unexpected1_y.C | 176 | utf_8 | 90f47340dedf3ae882911092f359c348 | struct One { };
struct Two { };
void
handle_unexpected ()
{
try
{
throw;
}
catch (One &)
{
throw Two ();
}
}
void
doit () throw (Two)
{
throw One ();
}
|
google | chromium | ctor2_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor2_main.C | 273 | utf_8 | 7713c99be0210f9b2e363d5de46782ac | // PR c++/4460
// Test that the cleanup for fully-constructed subobjects when a
// constructor throws gets the right address for a virtual base.
// Split into pieces for binary compatibility testing October 2002
extern void ctor2_x (void);
int main ()
{
ctor2_x ();
}
|
google | chromium | ctor1_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor1_main.C | 269 | utf_8 | 74d8ae87a4aa4945c36db0894fcdbc87 | // PR 411
// Split into pieces for binary compatibility testing October 2002
extern void ctor1_x (void);
int
main ()
{
ctor1_x ();
} |
google | chromium | nrv1_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/nrv1_x.C | 244 | utf_8 | e9b38e15c3e28368fa741de9b55c0651 | extern "C" void exit (int);
extern "C" void abort (void);
#include "nrv1.h"
extern A f (void);
int c, d;
void nrv1_x ()
{
try
{ A a = f(); }
catch (...) { }
if (d < c)
abort ();
exit (0);
}
A::A() { ++c; }
A::~A() { ++d; }
|
google | chromium | template1_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/template1_main.C | 252 | utf_8 | bcdcff6986bfc8964bcdb7735b5f4204 | // Test whether exception specifier dependent on template parameter
// is accepted during template decl processing.
// Split into pieces for binary compatibility testing October 2002
extern void template1_x (void);
int
main ()
{
template1_x ();
}
|
google | chromium | spec3_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/spec3_x.C | 115 | utf_8 | cf5c2475c71752fe4fdfa22840b5e2d0 | #include "spec3.h"
extern void func () throw (B,A);
void spec3_x (void)
{
try { func(); }
catch (A& a) { }
}
|
google | chromium | dtor1_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/dtor1_y.C | 155 | utf_8 | 387901206dc245414a4deeecde9f8323 | extern int r;
int ad;
#include "dtor1.h"
A::~A () { ++ad; }
B::~B ()
try
{
throw 1;
}
catch (...)
{
if (!ad)
r = 1;
return;
}
|
google | chromium | new1_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/new1_main.C | 250 | utf_8 | 38e1dfdb58be8ee752ace0ded7df8d8f | // PR c++/5757
// Test that when a constructor throws in a new-expression, we pass the
// right pointer to operator delete.
// Split into pieces for binary compatibility testing October 2002
extern void new1_x (void);
int
main ()
{
new1_x ();
}
|
google | chromium | spec3_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/spec3_y.C | 72 | utf_8 | 508954403be93157fb5a4d1acac0da9a | #include "spec3.h"
A::A() {}
void func() throw (B,A)
{
throw A();
}
|
google | chromium | dtor1_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/dtor1_x.C | 158 | utf_8 | f1c6d9efd6c764f87b1c7f64adfdc065 | extern "C" void exit (int);
extern "C" void abort (void);
#include "dtor1.h"
int r;
void dtor1_x ()
{
{ B b; }
if (r != 0)
abort ();
exit (0);
}
|
google | chromium | filter1_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter1_y.C | 143 | utf_8 | 59795c3025478139a06e32e485657745 | #include "filter1.h"
struct e1 {};
struct e2 {};
void
ex_test ()
{
a aa;
try
{
throw e1 ();
}
catch (e2 &)
{
}
}
|
google | chromium | unexpected1_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/unexpected1_x.C | 314 | utf_8 | 44115c4623ba7f70d9a798029cdb996d | #include <exception>
struct One { };
struct Two { };
extern "C" void abort ();
extern void doit (void) throw (Two);
extern void handle_unexpected (void);
void
unexpected1_x ()
{
std::set_unexpected (handle_unexpected);
try
{
doit ();
}
catch (Two &)
{
}
catch (...)
{
abort ();
}
}
|
google | chromium | template1_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/template1_x.C | 257 | utf_8 | cc55eca6c7503bffbb9c4c730b4fbc32 | extern "C" void exit (int);
extern "C" void abort (void);
#include "template1.h"
void template1_x ()
{
int caught = 0;
try
{
C<int> x;
x.f();
}
catch (A)
{
++caught;
}
if (caught != 1)
abort ();
exit (0);
}
|
google | chromium | ctor2_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor2_y.C | 191 | utf_8 | 0f35be1d041aff390ee492433aa2d4e2 | extern int r;
void *p;
#include "ctor2.h"
VBase::VBase ()
{
p = this;
}
VBase::~VBase ()
{
if (p != this) r = 1;
}
Stream::Stream () {}
DerivedStream::DerivedStream ()
{
throw 1;
}
|
google | chromium | new1_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/new1_y.C | 268 | utf_8 | 92b09e498a208e31dde6df42c466c11a | #include <new>
#include <cstddef>
extern int ret;
void *ptr;
void * operator new[] (std::size_t s) throw (std::bad_alloc)
{
ptr = operator new (s);
return ptr;
}
void operator delete[] (void *p) throw ()
{
if (p == ptr)
ret = 0;
operator delete (p);
}
|
google | chromium | unexpected1_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/unexpected1_main.C | 209 | utf_8 | 63e2df9df15791b47fb2317e1cda976a | // PR 3719
// Test that an unexpected handler can rethrow to categorize.
// Split into pieces for binary compatibility testing October 2002
extern void unexpected1_x ();
int
main ()
{
unexpected1_x ();
}
|
google | chromium | ctor1_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor1_x.C | 258 | utf_8 | 5919ecfa4fa000ff8d0708eff1caafd0 | extern "C" void abort (void);
extern "C" void exit (int);
#include "ctor1.h"
bool was_f_in_Bar_destroyed=false;
void ctor1_x ()
{
try
{
Bar f;
}
catch(int i)
{
if(was_f_in_Bar_destroyed)
{
exit (0);
}
}
abort ();
}
|
google | chromium | spec3_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/spec3_main.C | 218 | utf_8 | 2a11bf025313b31a8e5c6f3a43e6e1cc | // PR c++/4381
// Test that exception-specs work properly for classes with virtual bases.
// Split into pieces for binary compatibility testing October 2002
extern void spec3_x (void);
int
main ()
{
spec3_x ();
}
|
google | chromium | filter2_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter2_main.C | 276 | utf_8 | f858c620725c1fa9e60d5f73d3262345 | // Test that terminate gets run when a catch filter fails to match while
// running destructors. Original bug depended on a::~a being inlined.
// Split into pieces for binary compatibility testing October 2002
extern void filter2_x (void);
int
main ()
{
filter2_x ();
}
|
google | chromium | dtor1_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/dtor1_main.C | 265 | utf_8 | be684e295c4596152951b27d97ac5230 | // PR c++/411
// Test that a fully-constructed base is destroyed before transferring
// control to the handler of a function-try-block.
// Split into pieces for binary compatibility testing October 2002
extern void dtor1_x (void);
int
main ()
{
dtor1_x ();
}
|
google | chromium | new1_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/new1_x.C | 391 | utf_8 | 776feefd2e68940a9d16fef92f39fbbf | #include <new>
#include <cstddef>
extern "C" void exit (int);
extern "C" void abort (void);
extern void * operator new[] (std::size_t s) throw (std::bad_alloc);
extern void operator delete[] (void *p) throw ();
struct A
{
A() { throw 1; }
~A() {}
};
int ret = 1;
void
new1_x ()
{
try
{
A *p = new A[... |
google | chromium | filter1_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter1_main.C | 198 | utf_8 | 9c2ea2f2cc5e5b2283f45eeade96358c | // Test that cleanups get run when a catch filter fails to match.
// Split into pieces for binary compatibility testing October 2002
extern void filter1_x (void);
int
main ()
{
filter1_x ();
}
|
google | chromium | nrv1_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/nrv1_y.C | 64 | utf_8 | ae8c6219513721a4472dc1c7400e69e3 | #include "nrv1.h"
A f()
{
A nrv;
throw 42;
return nrv;
}
|
google | chromium | ctor1_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor1_y.C | 132 | utf_8 | 8c5d823170add04b31bf51767cad9e69 | extern bool was_f_in_Bar_destroyed;
#include "ctor1.h"
Foo::~Foo()
{
was_f_in_Bar_destroyed=true;
}
Bar::~Bar()
{
throw 1;
}
|
google | chromium | filter2_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter2_x.C | 268 | utf_8 | 93ea6392a008bc4ab584a68bd3d08d74 | #include <exception>
#include <cstdlib>
extern "C" void abort (void);
extern void my_terminate (void);
extern void ex_test (void);
void
filter2_x ()
{
std::set_terminate (my_terminate);
try
{
ex_test ();
}
catch (...)
{
}
abort ();
}
|
google | chromium | nrv1_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/nrv1_main.C | 214 | utf_8 | 4b1db86bc09112a3c5dcadf8c1f37ed2 | // PR c++/5636
// Bug: the named return value optimization interfered with EH cleanups.
// Split into pieces for binary compatibility testing October 2002
extern void nrv1_x (void);
int
main ()
{
nrv1_x ();
}
|
google | chromium | filter2_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter2_y.C | 315 | utf_8 | 66042eba77dd6fd0a616acfa398dac38 | #include <exception>
#include <cstdlib>
struct e1 {};
struct e2 {};
struct a
{
a () { }
~a ()
{
try
{
throw e1();
}
catch (e2 &)
{
}
}
};
void
ex_test ()
{
a aa;
try
{
throw e1 ();
}
catch (e2 &)
{
}
}
void my_terminate ()
{
std::exit (0);
}
|
google | chromium | filter1_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter1_x.C | 239 | utf_8 | 790ecc4df54d29594a1afbcd3eb446cc | #include "filter1.h"
extern "C" void exit (int);
extern "C" void abort (void);
extern void ex_test (void);
void
filter1_x ()
{
try
{
ex_test ();
}
catch (...)
{
}
abort ();
}
a::a() { }
a::~a() { exit (0); }
|
google | chromium | template1_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/template1_y.C | 113 | utf_8 | afd58e33c0f82e6f79a20b57f3d3d543 | #include "template1.h"
template<class T> void C<T>::f (void) throw (E)
{
throw E();
}
template class C<int>;
|
google | chromium | ctor2_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor2_x.C | 211 | utf_8 | dc791f03d52ef00f1ce479d2884f1c7a | extern "C" void exit (int);
extern "C" void abort (void);
#include "ctor2.h"
int r;
void ctor2_x () {
try
{
DerivedStream str;
}
catch (...) { }
if (r != 0)
abort ();
exit (0);
}
|
google | chromium | bitfield5_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/bitfield5_x.C | 131 | utf_8 | 34a963a4f73f5fc81a2a3c61cb1410b4 | #include "bitfield5.h"
extern void bitfield5_y (B&);
void bitfield5_x ()
{
B b;
b.f3 = 7;
b.f4 = 3;
bitfield5_y (b);
}
|
google | chromium | vbase11_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase11_main.C | 265 | utf_8 | c066ba2e23a50eda1497704cad37719c | // Test case from PR 7470, which was fixed in GCC 3.2 and breaks binary
// compatibility with earlier releases.
// Split into pieces for binary compatibility testing October 2002
#include "vbase11.h"
extern void vbase11_x (void);
int
main ()
{
vbase11_x ();
}
|
google | chromium | vbase11_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase11_x.C | 207 | utf_8 | cc9fd160c8ac0d554f08ed78757c1ad7 | #include "vbase11.h"
extern void vbase11_y (derived&);
int base::foo() { return 1; }
int derived::foo() { return 2; }
int derived::bar() { return 3; }
void vbase11_x ()
{
derived d;
vbase11_y (d);
}
|
google | chromium | bitfield5_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/bitfield5_y.C | 162 | utf_8 | 2196094f95b60e3fda05e05cb6c118dc | extern "C" void abort (void);
#include "bitfield5.h"
void A::f () {}
void bitfield5_y (B& b)
{
if (b.f3 != 7)
abort ();
if (b.f4 != 3)
abort ();
}
|
google | chromium | vbase11_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase11_y.C | 153 | utf_8 | 3af15235a86640de95ef01c264b9a669 | extern "C" void abort (void);
#include "vbase11.h"
void vbase11_y (derived& d)
{
if (d.foo() != 2)
abort ();
if (d.bar() != 3)
abort ();
}
|
google | chromium | bitfield7_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/bitfield7_main.C | 331 | utf_8 | 3adf0f3ae7b5d18709b473c700c9b7de | // { dg-options "-w" }
// The size assigned to `U' may not be ABI-compliant and may change in a
// future version of GCC.
// g++.dg/abi/bitfield7.C tests this with -Wabi.
// Split into pieces for binary compatibility testing October 2002
#include "bitfield7.h"
extern void bitfield7_x (void);
int
main ()
{
bitfiel... |
google | chromium | empty6_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/empty6_y.C | 107 | utf_8 | 9139a94c7c61f08caac60d3e5373225c | extern "C" void abort (void);
#include "empty6.h"
void empty6_y (B& b)
{
if (b.i != 7)
abort ();
}
|
google | chromium | vbase10_main | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase10_main.C | 301 | utf_8 | 1852532669c2a43c5f27b2cec9330074 | // The offset of virtual base `B' is not ABI-compliant and may change in
// a future version of GCC.
// g++.dg/abi/vbase10.C tests this with -Wabi.
// Split into pieces for binary compatibility testing October 2002
#include "vbase10.h"
extern void vbase10_x (void);
int
main ()
{
vbase10_x ();
}
|
google | chromium | vbase10_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase10_x.C | 123 | utf_8 | 993931cd04d51720241622319a10d2d3 | #include "vbase10.h"
extern void vbase10_y (C&);
void vbase10_x ()
{
C c;
c.c1 = 1;
c.c2 = 2;
} |
google | chromium | bitfield7_y | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C | 173 | utf_8 | 4ede7e52302abff4458b036d89c415f5 | // { dg-options "-w" }
extern "C" void abort (void);
#include "bitfield7.h"
void bitfield7_y (U* u)
{
if (u[0].i != 7)
abort ();
if (u[1].i != 8)
abort ();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.