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 | 20091026-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20091026-1_0.C | 236 | utf_8 | 8a40f7bdd413d7cb05c24018cb5e6bc9 | // { dg-lto-do link }
// { dg-extra-ld-options "-r -nostdlib" }
#include "20091026-1_a.h"
cObject *cHead::find(const char *objname) const
{
return firstchildp;
}
class cNetworkType : public cObject { };
cNetworkType *networktype;
|
google | android | 20090312_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20090312_1.C | 598 | utf_8 | f1b54d43c1d8be7a92c7be0cada1c0cb | #include "20090312.h"
/* This file should be compiled with the C front end. This
should be testing what happens when LTO merges enum types and function
prototypes compiled by the C and C++ FEs. Since both FEs generate
slightly different representations for these, LTO was emitting an
ODR violation error.
... |
google | android | 20090128_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20090128_0.C | 2,944 | utf_8 | e3e45aab92462ef1598354a107aea37a | // { dg-lto-do assemble }
// { dg-lto-options {{-fpreprocessed -O2 -flto -flto-partition=1to1 -funsigned-char}} }
typedef unsigned char uint8;
extern const uint8 array[256];
static inline bool
g (unsigned char c)
{
return array[c] & 0x80;
}
class Class1
{
static bool f1 (char **dst, const char *end, char c);
sta... |
google | android | 20081123_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081123_0.C | 163 | utf_8 | 230b2803ecbe60f72d6340da1a079626 | // { dg-lto-do link }
// { dg-require-effective-target fpic }
// { dg-lto-options {{-flto -flto-partition=1to1 -r -nostdlib -fPIC}} }
int
f(void)
{
return 0;
}
|
google | android | 20101020-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20101020-1_0.C | 103 | utf_8 | c442c0190e0d42bf4d85931fb23f107a | // { dg-lto-do link }
#include "20101020-1_0.h"
A::A ()
{
foo (&A::bar);
}
int main() { return 0; }
|
google | android | 20091219_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20091219_0.C | 271 | utf_8 | cc1ff528fda236c61039ea14f75992d1 | // { dg-lto-do run }
// { dg-lto-options {{-O3 -flto}} }
#include <string>
#include <map>
int main ()
{
typedef std::map<int, std::string> Map;
static Map m;
Map::const_iterator it = m.find(0);
if (it != m.end())
std::string s = it->second;
return 0;
}
|
google | android | pr60150_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/pr60150_1.C | 67 | utf_8 | eb989cca62b61ae260c43eec2e863f53 | // { dg-options "-fno-lto" }
#include "pr60150.H"
void S::f() { }
|
google | android | pr48207-2_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/pr48207-2_0.C | 132 | utf_8 | a7a28bfa3ecbd16048176050bdad64bd | // { dg-lto-do link }
// { dg-lto-options { { -flto -g } } }
namespace {
typedef struct {
int x;
} Foo;
}
int main () {}
|
google | android | 20101009-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20101009-1_0.C | 207 | utf_8 | 66d1fe39d12d7c425f5c8b3f5956b993 | // { dg-lto-do link }
template < typename > struct X
{
template < typename > static int test ();
static const int i = sizeof (test < int >());
};
template struct X < int >;
int main()
{
return 0;
}
|
google | android | pr60567_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/pr60567_0.C | 366 | utf_8 | bdf79008bc5e703ee7b33f7ad88035de | // PR lto/60567
// { dg-lto-do link }
// { dg-lto-options { { -flto -fno-use-linker-plugin } } }
// { dg-extra-ld-options "-r -nostdlib" }
#pragma implementation
struct S {};
#pragma interface
struct T
{
virtual void foo (const S &) = 0;
};
struct U
{
virtual void bar (const S &) = 0;
};
struct V : public T, pu... |
google | android | 20081109-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081109-1_0.C | 288 | utf_8 | 57fcd29507247b0ea06fa888dfb03f99 | // { dg-lto-do link }
// { dg-require-effective-target fpic }
// { dg-lto-options {{-fPIC -flto -flto-partition=1to1}} }
// { dg-extra-ld-options "-fPIC -flto -flto-partition=1to1 -r -nostdlib -fno-exceptions" }
void func(); class Foo { };
void bar() { try { func(); } catch (Foo) { } };
|
google | android | 20100302_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20100302_0.C | 276 | utf_8 | ad8830185e6775cdb15bc5cd051f5ffc | // Test for ABI forward-compatibility aliases with LTO.
// { dg-skip-if "" { { ! { i?86-*-* x86_64-*-* } } || { *-*-darwin* } } { "*" } { "" } }
// { dg-lto-options {"-flto -fabi-version=2"} }
#include "20100302.h"
void f(mm128 *) { }
template <> mm128 A<mm128>::t = { };
|
google | android | 20091002-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20091002-1_0.C | 1,957 | utf_8 | 28137a065c277ad2850e7c50929a1279 | // { dg-lto-do link }
// { dg-require-effective-target fpic }
// { dg-lto-options {{-fPIC -flto}} }
// { dg-extra-ld-options "-fPIC -r -nostdlib" }
namespace std __attribute__ ((__visibility__ ("default")))
{
template<class _CharT> struct char_traits;
template<typename _CharT, typename _Traits = char_traits<_C... |
google | android | 20081022_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081022_1.C | 63 | utf_8 | 715eef43f5f40eb7ce1039fdc68eb852 | #include "20081022.h"
int
g (foo * a)
{
return a->bar ();
}
|
google | android | 20081217-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081217-1_0.C | 253 | utf_8 | d15df87cc28d9d979322de144056e392 | class base1
{
public:
base1 () {}
virtual ~base1 () {}
};
class base2
{
public:
base2 () {}
virtual ~base2 () {}
};
class mi_class : public base1, base2
{
public:
mi_class () {}
~mi_class () {}
};
mi_class dummy;
int
main ()
{
return 0;
}
|
google | android | pr40818_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/pr40818_0.C | 159 | utf_8 | ba9b686c163762488051ec4094a838b2 | // { dg-lto-do assemble }
// Test case from Eugene A. Strizhov.
extern int i;
struct S { S (); };
S::S ()
{
enum { fifty = 0x50 };
if (i > fifty);
}
|
google | android | pr51650-2_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/pr51650-2_0.C | 128 | utf_8 | f23f59a698c99ad7a9797f34477bdf37 | // { dg-lto-do link }
// { dg-lto-options { { -flto -g } } }
typedef struct { } X;
int main ()
{
typedef X **P;
P g = 0;
}
|
google | android | 20081204-1_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081204-1_1.C | 96 | utf_8 | 6b530f022d797950f4bd6c2a8698e196 | struct Foo { virtual ~Foo(); };
struct Bar:public Foo { Bar() { } };
void Func() { new Bar(); }
|
google | android | 20080917_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20080917_0.C | 363 | utf_8 | d309762f007fee93d027ee4ec7f91a76 | // { dg-lto-do assemble }
// { dg-lto-options {{-O2 -flto -funsigned-char}} }
int
foo (char *s, int flag)
{
for (;;)
{
unsigned char c;
if (flag)
c = *s;
else
c = *s;
return c;
}
}
int
baz (const char *s, int flag)
{
for (;;)
{
unsigned char c;
if (flag)
c = *s;
... |
google | android | 20081219_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081219_1.C | 859 | utf_8 | f59c1786515e2448abc8abf5a1c29eb0 | typedef struct
{
}
__mbstate_t;
typedef __mbstate_t mbstate_t;
namespace std __attribute__ ((__visibility__ ("default")))
{
using::mbstate_t;
typedef int *__c_locale;
class locale
{
class facet;
};
class locale::facet
{
};
template < typename _CharT > class numpunct:public locale::facet
{
void... |
google | android | pr60150_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/pr60150_0.C | 77 | utf_8 | cbee807af28f014c203c54ab80ff50a2 | // { dg-lto-do run }
#include "pr60150.H"
int main()
{
S s;
return 0;
}
|
google | android | 20091004-3_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20091004-3_1.C | 319 | utf_8 | abddddc04ac327bae575b130d226e2d7 | extern "C" double sqrt (double __x) throw ();
typedef double VECTOR[3];
enum { X = 0, Y = 1, Z = 2, T = 3 };
inline void VLength(double& a, const VECTOR b)
{
a = sqrt(b[X] * b[X] + b[Y] * b[Y] + b[Z] * b[Z]);
}
int
All_Torus_Intersections(void)
{
double len;
VECTOR D;
VLength(len, D);
VLength(len, D);
}
|
google | android | 20091004-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20091004-1_0.C | 776 | utf_8 | 36611eb0a632cf32d659969e3dc240d7 | // { dg-lto-do link }
// { dg-require-effective-target fpic }
// { dg-lto-options {{-fPIC -O -flto}} }
typedef double Real;
class Vector {
int dimen;
Real* val;
public:
Vector& operator=(const Vector& vec);
Vector(int p_dimen, Real *p_val)
: dimen(p_dimen), val(p_val) { }
int dim() const;
};
cl... |
google | android | 20080908-2_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20080908-2_0.C | 109 | utf_8 | 9765338d51d81df52f5c43d2e5e40643 | /* { dg-lto-do assemble } */
struct Foo { double x[3]; };
Foo func() { Foo f = { { 0, 0, 0 } }; return f; }
|
google | android | 20090311_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20090311_1.C | 141 | utf_8 | 4bd4723237e4ba482a9257b2d93a65a9 | class C1 {
public: virtual ~C1() {
}
};
class C2 : public C1 {
C2(void *q);
virtual void A();
};
void C2::A() {
}
C2::C2(void *q)
{
}
|
google | android | 20091210-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20091210-1_0.C | 66 | utf_8 | 0981cf0352d8578e32f0ec1c4499a5a7 | // { dg-lto-do link }
#include "20091210-1_0.h"
void Base::f() {}
|
google | android | pr51572-2_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/pr51572-2_0.C | 235 | utf_8 | db836c63241d90b3d913662d33e51908 | // Copy of g++.dg/debug/pr45660
// { dg-lto-do link }
// { dg-lto-options { { -g -flto } } }
int
main ()
{
struct S
{
typedef void (**T) (void);
static T i (void) { return 0; }
};
S s;
if (s.i ())
*s.i () = 0;
}
|
google | android | 20101126-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20101126-1_0.C | 104 | utf_8 | 49e8adb27a3146fbf132de9d1cc1a668 | typedef struct { int i; } T1;
typedef T1 T2;
extern T1 a;
extern T2 b;
int main() { return a.i + b.i; }
|
google | android | 20081119_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081119_0.C | 209 | utf_8 | bd3ff234fc48ecfd2020b3b47fb38116 | class foo {
public:
foo () {}
virtual ~foo() {}
virtual void m() {}
};
template<typename t>
class bar : public foo {
public:
bar () {}
};
void
f1 (bar<int> *p)
{
p->m();
}
int
main ()
{
return 0;
}
|
google | android | 20081125_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081125_0.C | 190 | utf_8 | 4b2a113dde4b6718c503072719cd8b0f | // { dg-lto-do link }
// { dg-lto-options {{-flto -flto-partition=1to1}} }
#include "20081125.h"
object::object (int x)
{
}
void
object::key_method (void)
{
}
int
main ()
{
return 0;
}
|
google | android | 20080908-3_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20080908-3_0.C | 181 | utf_8 | 5099dc41f267dd624df5d8fc4dfacc06 | /* { dg-lto-do run } */
volatile double bar;
int foo()
{
double baz = -__builtin_huge_val();
return baz <= -bar;
}
int main()
{
if (foo () != 1)
return 1;
return 0;
}
|
google | android | 20081109_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20081109_0.C | 309 | utf_8 | 2e16c99a7448910e56edbde292e11587 | extern "C" { void abort (void);}
int foo (int);
class A
{
int x;
public:
A() { x = 2304; }
~A() { if (x != 2305) abort (); }
void inc () { x++; }
};
int main()
{
A x;
x.inc();
try
{
foo (0);
abort (); // Should not execute
}
catch (int e)
{
return 0;
}
}
|
google | android | 20080912-1_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20080912-1_0.C | 105 | utf_8 | 302b7bac3b3565167ec4869820350c3b | // { dg-lto-do assemble }
struct Foo { double x[3]; };
Foo func() { Foo f = { { 0, 0, 0 } }; return f; }
|
google | android | pr54625-1_1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/pr54625-1_1.C | 249 | utf_8 | 407210b3d5c67944081ed15163495621 | extern "C" double sin (double);
typedef double UnaryFunType (double);
class A
{
public:
int hash ();
double lookup (UnaryFunType p1)
{
int a = hash ();
if (p1)
return 0;
}
};
A b;
void
math_sin_impl ()
{
b.lookup (sin);
}
|
google | android | 20091002-3_0 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lto/20091002-3_0.C | 367 | utf_8 | f9d62389908f34b90a9ac4a13f6db2b4 | // { dg-lto-do link }
// { dg-require-effective-target fpic }
// { dg-lto-options {{-fPIC}} }
// { dg-extra-ld-options "-fPIC -r -nostdlib" }
template < class T >
class DataArray {
int max() const { }
};
class Name { };
class DataHashTable {
template < class ElemHashItem > class Element { };
DataArray < E... |
google | android | g++-bprob-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/bprob/g++-bprob-1.C | 4,998 | utf_8 | 232269dc2a9b913c19e49f1e7a29bf08 | /* Check that various C constructs (in C++) don't cause problems for
* profile-directed block ordering.
Most of this test is the same as bprob-1.c and gcov-4.c in
gcc.misc-tests. The "count" comments are left in to make comparisons
easier; they are ignored for this test. */
extern "C" void abort (void);
/... |
google | android | g++-bprob-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/bprob/g++-bprob-2.C | 125 | utf_8 | 91292dc36de1287d9de59661dd0c8c78 | namespace {
int calc(int j)
{
if (j==0) return 0;
return calc(j-1)*j % 17;
}
}
int main(void)
{
return calc(25);
}
|
google | android | pr33615 | .C | toolchain/gcc/gcc-4.9/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 | android | pr42337 | .C | toolchain/gcc/gcc-4.9/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 | android | pr27894 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr27894.C | 1,173 | utf_8 | 086db4c922e923a9d5c7b0582a1ba9f5 | // PR c++/27894
// { dg-do compile }
// { dg-options "-O" }
class A;
struct B
{
B (unsigned long);
int b2 () const;
A *b1 () const;
};
enum { P = 0 };
enum O { Q = 75, };
class C;
struct D { A *d; };
struct E
{
B e1 (int) const;
A *e2 (const B &) const;
D e3[4096];
};
inline A *
E::e2 (const B & x) const... |
google | android | pr41275 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr41275.C | 279 | utf_8 | 88c743ef9121547a2080de9e32812c79 | // PR middle-end/41275
// { dg-do compile }
// { dg-options "-O2" }
// this used to ICE
struct ErrmsgWindow
{
virtual ~ErrmsgWindow()
{
extern int _switch_mode_errorstr;
_switch_mode_errorstr = 42;
}
};
void ShowErrorMessage(void)
{
ErrmsgWindow w;
}
|
google | android | pr28238 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr28238.C | 360 | utf_8 | 8aea640c13c12833067fe21f2796f0ab | /* { dg-do compile } */
/* { dg-options "-O" } */
struct iterator{};
struct ByteIterator : iterator
{
ByteIterator (){}
int a[1024];
};
inline ByteIterator f ()
{
return ByteIterator ();
}
class ConfLexerCore
{
ConfLexerCore ();
ByteIterator m_matchStart;
};
ConfLexerCore::Conf... |
google | android | pr50622 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr50622.C | 551 | utf_8 | 1b5c1a0f49c65052fc81ec925592af2c | // { dg-do compile }
// { dg-options "-O2" }
typedef __complex__ double Value;
struct LorentzVector
{
LorentzVector & operator+=(const LorentzVector & a) {
theX += a.theX;
theY += a.theY;
theZ += a.theZ;
theT += a.theT;
return *this;
}
Value theX;
Value theY;
Value theZ;
Value theT;
};... |
google | android | pr45453 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr45453.C | 404 | utf_8 | b15fa73c51b4764bd0bf35d3797d9bce | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized -fno-devirtualize-speculatively" } */
struct S
{
S();
virtual inline void foo ()
{
foo();
}
};
void
B ()
{
S().foo ();
}
/* We should inline foo and devirtualize call to foo in the inlined version. */
// { dg-final { scan-tree-dump-times... |
google | android | pointer-reference-alias | .C | toolchain/gcc/gcc-4.9/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 | android | pr19637 | .C | toolchain/gcc/gcc-4.9/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 | android | pr13146 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr13146.C | 947 | utf_8 | 482a64ed60783060cd1097d55e09aa68 | /* { dg-do link } */
/* { dg-options "-O -fstrict-aliasing" } */
class first
{
public:
double d;
int f1;
};
class middle : public first
{
};
class second : public middle
{
public:
int f2;
short a;
};
class third
{
public:
char a;
char b;
};
class multi: public third, public second
{
public:
short s;
... |
google | android | pr61009 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr61009.C | 1,203 | utf_8 | 22dc7006f5ec66c9a231712242810915 | /* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-vrp -std=c++11 -fno-strict-aliasing -fdump-tree-dom1" } */
#include <stdio.h>
struct Field {
virtual int Compare(void*, void*);
};
extern int NKF, NR;
extern int idxs[];
extern Field* the_field;
extern int *incs;
extern char** fptrs;
inline int doCmp(int this_row... |
google | android | pr27548 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr27548.C | 1,416 | utf_8 | 8068c5970209523958d75e5cd5284d28 | // PR tree-optimization/27548
// { dg-do compile }
// { dg-options "-O1" }
namespace Gambit
{
template < class T > class Array
{
protected:int mindex, maxdex;
T *data;
int InsertAt (const T & t, int n)
{
T *new_data = new T[++this->maxdex - this->mindex + 1] - this->mindex;
int i;
f... |
google | android | nothrow-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/nothrow-1.C | 379 | utf_8 | 3f2e0e7e3ff73f5d65e9ee99f810fe1e | /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-cfg" } */
/* { dg-add-options bind_pic_locally } */
double a;
void t()
{
a=1;
}
void t1(void);
void abort(void);
void q()
{
try {
t();
}
catch (...) {abort();}
}
/* We shouldnotice nothrow attribute. */
/* { dg-final { scan-tree-dump-times "exception" 0 ... |
google | android | pr30738 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr30738.C | 347 | utf_8 | 822cd8fa882210d586093e8e0bb0e94c | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-phiopt1" } */
template <class T>
static inline const T&
min_ref (const T &x, const T &y)
{
return x < y ? x : y;
}
int test_min_ref (int x, int y)
{
return min_ref (x, y);
}
/* { dg-final { scan-tree-dump "MIN_EXPR" "phiopt1" } } */
/* { dg-final { cleanup-... |
google | android | pr20489 | .C | toolchain/gcc/gcc-4.9/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 | android | pr43411 | .C | toolchain/gcc/gcc-4.9/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 | android | pr26140 | .C | toolchain/gcc/gcc-4.9/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 | android | pr45605 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr45605.C | 722 | utf_8 | 4e9ccb58e04a6cfa60c11dc9933e3808 | /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-fre1" } */
extern "C" void abort();
bool destructor_called = false;
struct B {
virtual void Run(){};
};
struct D : public B {
virtual void Run()
{
struct O {
~O() { destructor_called = true; };
} o;
... |
google | android | pr20920 | .C | toolchain/gcc/gcc-4.9/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 | android | pr26406 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr26406.C | 282 | utf_8 | 53f9f80a90d08a898ab9c66c6050280b | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
int *f(int *b)
{
int * a = new int[104];
*a = 1;
if (a == 0)
return b;
return a;
}
/* { dg-final { scan-tree-dump-not "if" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
google | android | pr41906 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr41906.C | 237 | utf_8 | 91fe55fdc4c162c106f9fe9a49ed7329 | /* { dg-do compile } */
/* { dg-options "-fpermissive -w" } */
/* We aren't interested in the warning, but in the ICE. */
void foo();
extern void abort (void);
void bar()
{
try { foo(); }
catch (...) {}
catch (int) {abort ();}
}
|
google | android | pr14703 | .C | toolchain/gcc/gcc-4.9/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 | android | pr21584-2 | .C | toolchain/gcc/gcc-4.9/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 | android | pr21082 | .C | toolchain/gcc/gcc-4.9/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 | android | pr41428 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr41428.C | 395 | utf_8 | 1652275d8bd0f5914734a97bb1880ad0 | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-ccp1-details" } */
extern "C" void abort (void);
inline void *operator new (__SIZE_TYPE__, void *__p) throw () { return __p; }
int foo(void)
{
float f = 0;
int *i = new (&f) int (1);
return *(int *)&f;
}
/* { dg-final { scan-tree-dump "Folded into: if \\\... |
google | android | inline-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/inline-2.C | 761 | utf_8 | 98ea8725c781ac32e525fe797b764a0a | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-einline --param max-early-inliner-iterations=3" } */
/* { 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
inlin... |
google | android | pr15791-2 | .C | toolchain/gcc/gcc-4.9/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 | android | pr49516 | .C | toolchain/gcc/gcc-4.9/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 | android | pr38104 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr38104.C | 189 | utf_8 | 6162289afdc8ea2d3d209d49e210373b | // PR tree-optimization/38104
// { dg-do compile }
// { dg-options "-O3" }
struct S { int foo; };
void f0 ();
void
f1 (struct S s)
{
f0 ();
}
void
f2 ()
{
f1 (*(struct S *) (0));
}
|
google | android | pr46987 | .C | toolchain/gcc/gcc-4.9/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 | android | pr21407 | .C | toolchain/gcc/gcc-4.9/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 | android | pr19476-3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr19476-3.C | 263 | utf_8 | 3d24e22454c0dad619593cac78ac88ca | /* { dg-do compile } */
/* { dg-options "-O3 -fcheck-new -fdump-tree-optimized" } */
#include <new>
int g(){
return 42 + (0 == new int);
}
/* { dg-final { scan-tree-dump-not "return 42" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
google | android | pr19807 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr19807.C | 882 | utf_8 | fe1dd1f30849cd49ecd1dc75c0131b5c | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-optimized" } */
int a[4];
int *x, *y, *z;
void foo(void)
{
x = &a[3] - 1;
y = &a[1] + 1;
z = 1 + &a[1];
}
void bar(int i)
{
x = &a[i] - 1;
y = &a[i] + 1;
z = 1 + &a[i];
}
/* { dg-final { scan-tree-dump-times "&a\\\[2\\\]" 3 "optimized" } } */
/* We want... |
google | android | pr31146 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr31146.C | 379 | utf_8 | 83b48ca66f73d211f6659c4d6b99bb52 | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-forwprop" } */
/* We should be able to optimize this to i[j] = 1 during
early optimizations. */
int i[5];
void foo (int j)
{
void *p = &i[j];
int *q = (int *)p;
*q = 1;
}
/* { dg-final { scan-tree-dump "MEM\\\[.*&i\\\]\\\[j.*\\\] =.* 1;" "forwprop1" }... |
google | android | sra-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/sra-1.C | 578 | utf_8 | 4b409387c124f6c52a3b106d015e09fa | /* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=223576 */
/* SRA failed to canonicalize bit-field types, introducing type
mismatches. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
struct A
{
int a:16;
/* These dummy bit-fields are here to prevent GCC 4.2+ from merging
the bit-field compa... |
google | android | pr15791-1 | .C | toolchain/gcc/gcc-4.9/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 | android | pr44914 | .C | toolchain/gcc/gcc-4.9/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 | android | pr19476-5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr19476-5.C | 278 | utf_8 | 9ec421db24a0dcbafa7b3f9621d7d02e | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-ccp1" } */
// See pr19476-1.C for a version that includes <new>.
int g(){
return 42 + (0 == new int[50]);
}
/* { dg-final { scan-tree-dump "return 42" "ccp1" } } */
/* { dg-final { cleanup-tree-dump "ccp1" } } */
|
google | android | ehcleanup-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/ehcleanup-1.C | 650 | utf_8 | e1609cdab2b84f5985e314e0b0b526e9 | // { dg-options "-O2 -fdump-tree-ehcleanup1-details" }
#ifdef __GXX_EXPERIMENTAL_CXX0X__
#define NOEXCEPT_FALSE noexcept (false)
#else
#define NOEXCEPT_FALSE
#endif
extern void can_throw ();
class a
{
public:
~a () NOEXCEPT_FALSE
{
if (0)
can_throw ();
}
};
void
t (void)
{
class a a;
can_throw ();... |
google | android | pr22005 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr22005.C | 266 | utf_8 | 01366956240506c80efe61a02b2126bb | /* { dg-do compile } */
/* { dg-options "-O2" } */
struct cl_string
{
union{ int i; };
cl_string ();
};
struct cl_print_univpoly_flags { cl_string univpoly_varname; };
struct cl_print_flags: cl_print_univpoly_flags {int i;};
cl_print_flags default_print_flags;
|
google | android | pr54515 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr54515.C | 367 | utf_8 | a82ef6cbe78155176eca6d640870c3a5 | // { dg-do compile }
// { dg-options "-O2" }
template < typename T > T h2le (T)
{
T a;
unsigned short &b = a;
short c = 0;
unsigned char (&e)[2] = reinterpret_cast < unsigned char (&)[2] > (b);
e[0] = d[0];
return a;
}
void
bar ()
{
h2le ((unsigned short) 0);
} |
google | android | pr15791-3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr15791-3.C | 286 | utf_8 | 60208923fa136080caefbbee2e86be67 | /* { dg-do compile } */
/* { dg-options "-fdump-tree-gimple" } */
int f(int i, unsigned j)
{
int b[2];
if (&b[i] == &b[j])
return 1;
return 0;
}
/* { dg-final { scan-tree-dump-times "i == j" 0 "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */
|
google | android | 20040317-1 | .C | toolchain/gcc/gcc-4.9/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 | android | pr26757 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr26757.C | 367 | utf_8 | f08282d681d172ebc2a1c9dc4cc201ec | // PR c++/26757
// { dg-do run }
// { dg-options "-O" }
extern "C" void abort ();
typedef struct A
{
int c;
int d;
} A;
A *b;
void
foo ()
{
b->c++;
extern A *b;
b->d++;
}
void
bar ()
{
if (b->d)
b->c++;
}
int
main ()
{
A a = { 0, 0 };
b = &a;
foo ();
bar ();
if (b->c != 2)
abort ()... |
google | android | pr20963 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr20963.C | 676 | utf_8 | c6f234d3623212f40d78fad6b87310ad | /* { dg-do compile } */
/* { dg-options "-O2" } */
/* This was causing PRE to insert the value of the ADDR variable, to
remove the invariant cast but in doing so, it was creating a
non-invariant expression out of the invariant one, causing a later
failure in PRE. */
struct sMCB {
unsigned char type;
... |
google | android | ssa-store-ccp-1 | .C | toolchain/gcc/gcc-4.9/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 | android | pr27291 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr27291.C | 8,740 | utf_8 | b70fdde5abd17c5811c3303beb4c4a27 | /* { dg-do compile } */
/* { dg-options "-O2" } */
namespace std
{
template < class _T1, class _T2 > struct pair
{
};
}
extern "C"
{
extern "C"
{
typedef int int32_t __attribute__ ((__mode__ (__SI__)));
struct _pthread_fastlock
{
}
pthread_mutexattr_t;
}
}
namespace std
{
struct __num... |
google | android | fold-compare | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/fold-compare.C | 558 | utf_8 | 4b282b14fe99b844fdc0ffd971aaa369 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
struct ExtentsBase {
ExtentsBase() : startx_(), endx_() { }
ExtentsBase(const ExtentsBase &b) {
*this = b;
}
const ExtentsBase & operator=(const ExtentsBase &b) {
if (this != &b) {
startx_ = b.startx_;
}
return *this;
}
int st... |
google | android | pr22037 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr22037.C | 244 | utf_8 | aa931156abafd21884e323d601aa367f | /* { dg-do compile } */
/* { dg-options "-O2" } */
extern double sqrt (double) throw ();
void foo(double& d, int n)
{
double e=0;
for(int i=0; i<n; i++);
for(int i=0; i<n; i++) e=1;
d = sqrt(e);
for(int i=0; i<n; i++);
}
|
google | android | pr24439 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr24439.C | 177 | utf_8 | 9a08ef02da783cd1df3302f368440d82 | /* { dg-do compile } */
/* We used to ICE in invert_truthvalue on the void type
2nd argument of the COND_EXPR. */
void foo(void)
{
int value=1;
!(value?true:throw);
}
|
google | android | pr37356 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr37356.C | 331 | utf_8 | 50e81396db8278e2f138e7c26430b52e | // PR middle-end/37356 */
// { dg-do compile }
// { dg-options "-O" }
bool foo ();
int bar ();
bool
baz (int v)
{
return v == bar ();
}
struct A
{
A () { baz (1) || foo (); }
};
struct B
{
static A get () { return A (); }
B (const int &x) { }
B () : b (get ()) { }
A b;
};
B c;
void
test ()
{
int d;
... |
google | android | pr13954 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr13954.C | 491 | utf_8 | 9f140d067a9913d7925e506be238488a | /* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized" } */
void link_error (void);
class base
{
};
class teststruct: public base
{
public:
double d;
char f1;
};
void
copystruct1 (teststruct param)
{
teststruct local;
param.f1 = 0;
local = param;
if (local.f1 != 0)
link_error ();
}
/*... |
google | android | pr33593 | .C | toolchain/gcc/gcc-4.9/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 | android | empty-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/empty-1.C | 314 | utf_8 | ebffc2389dbbf739ae120d2beb15bf62 | /* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
struct S {};
S bar (const S &a)
{
S s;
s = a;
return s;
}
/* Test whether memcpy call has been optimized out. */
/* { dg-final { scan-tree-dump-times "memcpy" 0 "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
google | android | pr24172 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr24172.C | 170 | utf_8 | cb28ea9929b05e6b833bd19e04d97d9c | // { dg-options "-O2" }
void IOException( char);
inline int* dummy( const char* const mode )
{
IOException(*mode+*mode);
}
void prepare_inpaint( )
{
dummy ("rb");
}
|
google | android | tmmti | .C | toolchain/gcc/gcc-4.9/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 | android | pr22404 | .C | toolchain/gcc/gcc-4.9/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 | android | pr25771 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr25771.C | 568 | utf_8 | 106c9716380acfba412f6534beaba23b | /* { dg-do compile } */
int ggggg();
struct string {
static int _S_empty_rep_storage[];
void _M_destroy();
char* _M_rep;
~string()
{
if (_M_rep != (char*)&_S_empty_rep_storage )
if (ggggg() <= 0)
_M_destroy();
}
};
extern void SDL_FreeSurface(int surface);
struct scoped_resource {
~sco... |
google | android | pr34063 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr34063.C | 388 | utf_8 | c896a5c6bc3c2c73fb372aa1df72f942 | // { PR tree-optimization/34063 }
// { dg-do compile }
// { dg-options "-O2" }
struct S
{
double e[9];
double const &
operator() (int r, int c) const
{
return e[r * 3 + c];
}
};
void
foo()
{
S r;
double *p;
for (int j = 0; j < 3; j++)
for (int k = 0; k < 3; k++)
for (int l = k + 1; l < ... |
google | android | pr29902 | .C | toolchain/gcc/gcc-4.9/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 | android | copyprop-1 | .C | toolchain/gcc/gcc-4.9/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 | android | pr53844 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr53844.C | 1,544 | utf_8 | ffa63568656b6e8f88c2e04bcfb82d6f | // { dg-do compile }
// { dg-options "-O2 -fdump-tree-optimized-vops" }
struct VBase;
//Very minimal numeric vector class where Base provides the policy
template<typename Base=VBase>
struct Vector : public Base{
inline Vector(const Base& b)
:Base(b)
{
}
//Assignment from any other sort of Vector
template<typ... |
google | android | ptrmemfield | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/ptrmemfield.C | 514 | utf_8 | 1774a3db4e8c1c639d06cfd8ba95990d | /* { dg-do compile } */
// { dg-options "-O2 -fdump-tree-optimized" }
struct f
{
char m;
char m1;
};
static inline char f:: *g(int a)
{
return a?0:&f::m;
}
int h(void)
{
char f:: *a = g(0);
return a == 0;
}
/* We should have no cast to offset_type. */
/* { dg-final { scan-tree-dump-times "offset_type" 0 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.