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
20090311-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090311-1_0.C
363
utf_8
ed3f2f02a90d3e3fbf121d26f40748c9
/* { dg-lto-do run } */ #include "20090311-1.h" bool flag; struct B { int a; enum { ANOTHER, ONE } f2_; float c; }; extern struct B x[]; struct C { int x; struct B *p; float d; }; C c = { 0, 0, 3.4 }; struct A { enum { UNO, DOS, TRES } f1_; int x; }; A a; extern int foo(); main()...
google
chromium
20100603-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100603-1_0.C
298
utf_8
d5a740ed1fea61cc2b9d9836fe1c4731
/* { dg-lto-do link } */ extern "C" { typedef struct {} CvImage; extern CvImage* Cv_ImageNew(void); } void __attribute__((noinline,noclone)) _Raytrace(CvImage* LImage) { __asm volatile (""); } int main(int LArgC, char** LArgV) { CvImage* LImage = Cv_ImageNew(); _Raytrace(LImage); }
google
chromium
20081204-2_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081204-2_1.C
90
utf_8
a51a29dfd3ecb8ca173a6c8cd8dc45bd
namespace { class c { public: c () {} virtual ~c() {} }; }; void foo (void) { c x; }
google
chromium
20110311-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20110311-1_0.C
682
utf_8
28b21fabaf7f23ceee461f8de2c7ac07
/* { dg-lto-do link } */ /* { dg-extra-ld-options "-r -nostdlib" } */ struct NullType {}; template <class T, class U> struct TList { typedef T Head; typedef U Tail; }; template <class T> struct TListLength {}; template <class T, class U> struct TListLength<TList<T,U> > { enum { Ret = 1 + TLi...
google
chromium
20091002-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091002-2_0.C
450
utf_8
39a1486543d8c089f06761365aed1585
// { dg-lto-do link } // { dg-require-effective-target fpic } // { dg-lto-options {{-fPIC}} } // { dg-extra-ld-options "-fPIC -r -nostdlib" } class DataArray { int max() const { } }; template < class HashItem > class DataHashTable { template < class ElemHashItem > class Element { }; typedef Element...
google
chromium
20080908-2_0
.C
native_client/pnacl-gcc/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
chromium
20100519-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100519-1_0.C
568
utf_8
e89d3b770980ea2a3f986f29c0a3114f
// { dg-lto-do link } template <typename Ordinal> struct DirectSerializationTraits { static void fromCountToDirectBytes(const Ordinal count) {} }; template<typename Ordinal> class SerializationTraits : public DirectSerializationTraits<Ordinal> { }; template <typename Ordinal> class ConstValueTypeSerializationBuffe...
google
chromium
20090312_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090312_0.C
161
utf_8
44d2e8dbcae3642141963580e1caae86
#include "20090312.h" extern "C" { extern enum Values x; extern JSErrorCallback p; }; main() { if ( x == ONE && p == 0) return 0; return 1; }
google
chromium
20091004-1_0
.C
native_client/pnacl-gcc/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
chromium
20081008_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081008_0.C
374
utf_8
1b67921988c55a80293c9b1fdcf021e7
// { dg-lto-do assemble } // { dg-lto-options {{-flto}} } struct Foo { virtual void func() = 0; }; struct Bar { Foo *field; void func2(); }; struct Baz { Bar &bar(); Baz(); }; struct Zonk { virtual ~Zonk() { } virtual void func3() = 0; }; void Mumble(Zonk *) { } extern "C" { void __attribute__ ((nothrow)...
google
chromium
20091004-3_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091004-3_0.C
403
utf_8
95f1267a216caf98bd99298c998cd58e
// { dg-lto-do assemble } // { dg-lto-options {{-O -flto}} } 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]); } void determine_subpatch_flatness(void) { ...
google
chromium
20091004-3_1
.C
native_client/pnacl-gcc/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
chromium
20081204-1_1
.C
native_client/pnacl-gcc/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
chromium
20090313_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090313_0.C
198
utf_8
4578f2261a13cd87972aad48cbecda45
// { dg-lto-do link } // { dg-require-effective-target fpic } // { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } // { dg-extra-ld-options "-flto -flto-partition=1to1 -r -nostdlib" } int X;
google
chromium
pr45679-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr45679-2_0.C
2,705
utf_8
588da265a71d0b6c46161075f6392c75
// { dg-lto-do link } // { dg-lto-options {{-O3 -Wno-multichar}} } // { dg-extra-ld-options "-flto -flto-partition=1to1 -r -nostdlib" } extern "C" { typedef struct { union { } __value; } __mbstate_t; struct _IO_marker { }; extern "C" { } }; namespace pov_base { class IOBase { }...
google
chromium
20091022-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091022-1_0.C
296
utf_8
6e256583bb6b48177771c608182c3b6d
// { dg-lto-do link } // { dg-extra-ld-options "-fwhole-program" } template <int dim> struct AutoDerivativeFunction { virtual void gradient_list (void); }; template <int dim> void AutoDerivativeFunction<dim>::gradient_list (void) { } template class AutoDerivativeFunction<1>; int main() {}
google
chromium
20080904_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080904_0.C
546
utf_8
87ec15bcb9a0ae242a5c3d889670e857
// { dg-lto-do run } /* This test will fail to link if the vtable for Derived is not emitted. */ class Base { public: Base(char *buf, unsigned len) : _buf(buf), _len(len) {} virtual int length () { return _len; } private: char * _buf; unsigned _len; }; class Derived : public Base { public: D...
google
chromium
20081022_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081022_1.C
63
utf_8
715eef43f5f40eb7ce1039fdc68eb852
#include "20081022.h" int g (foo * a) { return a->bar (); }
google
chromium
pr40818_0
.C
native_client/pnacl-gcc/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
chromium
20091026-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091026-1_1.C
293
utf_8
6e690f35c2e004189a00ac0739925176
#include "20091026-1_a.h" extern cHead networks; class cNetworkType; inline cNetworkType *findNetwork(const char *s) { return (cNetworkType *)networks.find(s); } int run(const char *opt_network_name) { cNetworkType *network = findNetwork(opt_network_name); if (!network) throw 1; }
google
chromium
20081127_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081127_0.C
57
utf_8
db4f63bc6be91958e93124af0193e66b
struct Foo { Foo(); }; static void func() { new Foo(); }
google
chromium
20080829_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080829_0.C
449
utf_8
c3ea1857c08073dd9cb62c97df1dfc09
// { dg-lto-do assemble } /* The replacement of cos+sin with __builtin_cexpi done by pass_cse_sincos was using a builtin for which we had no attributes. This was causing the operand scanner to materialize a VDEF at the builtin call-site which was not marked for renaming, thus tripping up the SSA verifier. ...
google
chromium
20081120-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081120-1_0.C
269
utf_8
e55c4a40516aef14b13f5607b73d43fa
// { dg-lto-do link } // { dg-lto-options {{-flto -r -nostdlib}} } extern "C" { extern __inline __attribute__((__gnu_inline__)) int pthread_equal(int, int) { } } static __typeof(pthread_equal) __gthrw_pthread_equal __attribute__((__weakref__("pthread_equal")));
google
chromium
20080908-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080908-1_0.C
520
utf_8
53b2c5e2b842344746a58f63fa6d2e3c
/* { dg-lto-do run } */ extern "C" { extern void *memcpy (void *, const void *, unsigned); } inline int bci (const float &source) { int dest; memcpy (&dest, &source, sizeof (dest)); return dest; } inline float bcf (const int &source) { float dest; memcpy (&dest, &source, sizeof (dest)); return dest; } float F...
google
chromium
20090302_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090302_0.C
323
utf_8
1fe2897fd208065fcf256067ee7b904d
/* { dg-lto-do link } */ /* { dg-require-effective-target fpic } */ /* { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -r -nostdlib}} } */ struct Foo { bool Mumble(); static void Bar() { if (foo_->Mumble()) foo_ = 0; } static void Baz() { Bar(); } static Foo *foo_; }; void Unused() { Foo::Bar(); Foo::Baz();...
google
chromium
20081119-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081119-1_1.C
126
utf_8
7a76d161718bc7354e3dbefd0e6e40b4
#include "20081119-1.h" __gnu_cxx::new_allocator<int> X; int f (__gnu_cxx::new_allocator<int> a) { return a.max_size (); }
google
chromium
20090311_1
.C
native_client/pnacl-gcc/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
chromium
20081120-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081120-1_1.C
202
utf_8
8449a608731447668cddc213c17ecbdb
extern "C" { extern __inline __attribute__((__gnu_inline__)) int pthread_equal(int, int) { } } static __typeof(pthread_equal) __gthrw_pthread_equal __attribute__((__weakref__("pthread_equal")));
google
chromium
20101015-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20101015-2_0.C
187
utf_8
7886a4df1d24e9782ca9777ed87f06ac
// { dg-lto-do link } // { dg-lto-options { { -flto } { -g -flto } } } // { dg-extra-ld-options "-r -nostdlib" } struct Base { ~Base (); }; void fun(void) { struct Deriv : Base { } x; }
google
chromium
20090303_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090303_0.C
417
utf_8
325fd43369b0ed5b0ed3722c136fac1a
/* { dg-lto-do run } */ /* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC}} } */ /* { dg-lto-options {{-flto -flto-partition=1to1}} { target sparc*-*-* } } */ /* { dg-suppress-ld-options {-fPIC} } */ void foobar(int *, int* __x) ; int test_ints[30]; int j; void foobar (int *x, int *y) { *x = *y = 0; } void...
google
chromium
20081211-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081211-1_1.C
57
utf_8
b7c3e533b1333e670fd330cd8ec53900
#include "20081211-1.h" void foo::key_method (void) { }
google
chromium
20091004-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091004-2_0.C
689
utf_8
72f07943291a1bb78b519323564469de
// { 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
chromium
20091004-2_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091004-2_1.C
672
utf_8
3b6f5df0d72b25e2fcc05fb8b2c91e6c
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; }; class DVector : public Vector { public: void reDim(int newdim); explicit DVector(const Vector& old...
google
chromium
20081204-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081204-1_0.C
483
utf_8
e07b4e6132e20d55eb7f629f6c8850f1
/* { dg-lto-do link } */ /* { dg-require-effective-target fpic } */ /* { dg-lto-options {{-flto -flto-partition=1to1 -fPIC -r -nostdlib}} } */ /* Tests for the absence during linking of: lto1: error: type of '_ZTVN10__cxxabiv120__si_class_type_infoE' does not match original declaration */ struct Foo { vi...
google
chromium
20091004-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091004-1_1.C
585
utf_8
b1f395c247ddc53c4f3960a1a72bd398
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; }; class DVector : public Vector { public: void reDim(int newdim); explicit DVector(const Vector& old...
google
chromium
20091002-1_0
.C
native_client/pnacl-gcc/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
chromium
20081123_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081123_1.C
309
utf_8
f3245c139a2b28a71403a0061bac1b7b
struct foo { const int* int_array; const void* default_instance; }; struct bar { static const bar& _default_instance; static const foo _internal_foo; }; struct quxx { static int trouble[]; }; int quxx::trouble[] = { }; const foo bar::_internal_foo = { quxx::trouble, &bar::_default_instance };
google
chromium
20101009-1_0
.C
native_client/pnacl-gcc/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
chromium
20091219_0
.C
native_client/pnacl-gcc/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
chromium
20100423-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100423-1_0.C
641
utf_8
2a7a5a7671c4b3a945046f309d83de60
// { dg-lto-do assemble } // { dg-lto-options {{-g -flto}} } namespace llvm { class Function; class MachineCodeInfo; class ExecutionEngine { }; class JIT : public ExecutionEngine { void runJITOnFunction (Function * F, MachineCodeInfo * MCI = 0); }; class JITEventListener { public: ...
google
chromium
pr45679-2_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr45679-2_1.C
4,376
utf_8
eb977e11accaf5ceaed39ff5df8e4abd
extern "C" { typedef struct __locale_struct { } *__locale_t; union wait { }; extern "C" { } typedef struct _IO_FILE FILE; typedef struct { union { } __value; } _G_fpos64_t; struct _IO_marker { } _IO_cookie_io_functions_t; extern struct _IO_FILE *stderr; ...
google
chromium
20090128_0
.C
native_client/pnacl-gcc/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
chromium
20101020-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20101020-1_1.C
88
utf_8
1de82ace856e550f4230ec640e6e0acd
#include "20101020-1_0.h" struct D { }; void A::bar (void *) { } void A::foo (Am1) { }
google
chromium
20101014-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20101014-1_0.C
195
utf_8
db3624a2e9e37543a071aefd12a406f8
// { dg-lto-do run } static const char *fname; struct S { S () { fname = __func__; } }; extern "C" void abort (void); int main () { S tmp; if (fname[0] != 'S') abort (); return 0; }
google
chromium
20081219_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081219_0.C
1,980
utf_8
81f1447d70b83f35d17575707c198126
// { dg-lto-do link } // { dg-require-effective-target fpic } // { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -O2}} } // { dg-extra-ld-options "-O2 -fPIC -flto -flto-partition=1to1 -r -nostdlib" } typedef long int ptrdiff_t; extern "C" { typedef struct { } __mbstate_t; namespace std { class exce...
google
chromium
20101014-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20101014-2_0.C
196
utf_8
17718b8ed778a281742fae07bf632653
// { dg-lto-do assemble } template<class T, unsigned long l> inline unsigned long foo (T (&)[l]) { return l; } struct S { char *s[4]; S (); }; S::S () { typedef int T[foo (s) == 4 ? 1 : -1]; }
google
chromium
pr48207-2_0
.C
native_client/pnacl-gcc/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
chromium
pr45679-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr45679-1_1.C
4,089
utf_8
ec5935b10537f3bfc7da8e1c82db2411
extern "C" { typedef struct _IO_FILE FILE; extern struct _IO_FILE *stderr; extern int fprintf (FILE *__restrict __stream, __const char *__restrict __format, ...); } enum { kPOVMSObjectClassID = 'OCLA', kPOVMSMessageClassID = 'MCLA', kPOVMSMessageIdentID = 'MIDE', kPOV...
google
chromium
20080916_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080916_0.C
196
utf_8
d90d326db72bc2e718a056490356f263
/* { dg-lto-do assemble } */ enum _Ios_Fmtflags { _S_boolalpha }; class ios_base { static const _Ios_Fmtflags boolalpha = _S_boolalpha; _Ios_Fmtflags _M_flags; }; ios_base& g() { }
google
chromium
20081109-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081109-2_0.C
166
utf_8
cab047bd2b2a56cdcf29b1021d61d01e
/* { dg-lto-do assemble } */ extern void func(int); struct Foo { void bar() { static int local; func(local); } void baz(); }; void Foo::baz() { bar(); }
google
chromium
20081109-1_0
.C
native_client/pnacl-gcc/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
chromium
20101010-4_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20101010-4_0.C
242
utf_8
9a71674949fecc4e5eed40d1adc33bc9
// { dg-lto-do link } // { dg-lto-options { { -std=c++0x -flto -r -nostdlib } { -std=c++0x -flto -g -r -nostdlib } } } typedef decltype(nullptr) nullptr_t; class shared_ptr { public: shared_ptr(nullptr_t __p); }; shared_ptr p = nullptr;
google
chromium
20100724-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100724-1_0.C
290
utf_8
ba53ff01ebd53591af3f6b2df54e404b
/* { dg-lto-do link } */ /* { dg-lto-options {{-ftoplevel-reorder -flto -flto-partition=none} {-ftoplevel-reorder -flto -flto-partition=1to1}} } */ /* { dg-extra-ld-options {-r -nostdlib} } */ struct Foo { virtual ~Foo(); }; struct Bar:public Foo { Bar() { } }; void Func() { new Bar(); }
google
chromium
20081217-1_0
.C
native_client/pnacl-gcc/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
chromium
pr47333
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr47333.C
23,597
utf_8
8b6ed0febb7b8cb0b71d1abbb9768498
namespace std { typedef unsigned int size_t; typedef int ptrdiff_t; } namespace std __attribute__ ((__visibility__ ("default"))) { template<typename _Alloc> class allocator; template<class _CharT> struct char_traits; template<typename _CharT, typename _Traits = char_traits<_CharT>, typ...
google
chromium
20100722-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100722-1_0.C
155
utf_8
31ee0ce50f6ef5bb5a3b66843f18efe5
/* { dg-lto-do assemble } */ template <class T> void void_cast_register(T *) __attribute__ ((used)); template <class T> void void_cast_register(T *) { }
google
chromium
20081209_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081209_0.C
134
utf_8
cd1fbd677645e7b5db75df63b66a6767
/* { dg-lto-do link } */ class foo { public: foo (); virtual ~foo (); }; foo::foo () { } int main () { foo dummy; return 0; }
google
chromium
20081022_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081022_0.C
75
utf_8
a590c0ac4d5808adbba47e80431ea783
#include "20081022.h" int f (foo * a) { return a->bar (); } main() { }
google
chromium
20081119_0
.C
native_client/pnacl-gcc/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
chromium
20081127_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081127_1.C
59
utf_8
00a4b3a5f5bba08b5ae29d858c727ea2
struct Foo { Foo(); }; Foo::Foo() { } main() { return 0; }
google
chromium
20080912_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080912_0.C
108
utf_8
cc8767eb274d922ccc29b3a8613651ba
// { dg-lto-do assemble } class Foo { virtual void f(); }; class Bar:public Foo { }; void func() { Bar(); }
google
chromium
20080915_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080915_0.C
360
utf_8
582ffcc12dfa99424e77bd0fe41a7967
// { dg-lto-do assemble } struct Foo { static const int dummy; int bit_field:1; int dummy2:1; int dummy3:1; }; struct Bar { Foo foo; }; int func(const Bar& b) { return b.foo.bit_field; } struct Baz { Bar& operator*() {} }; void func1(Baz baz, int i, Bar bar) { i || func(bar); *baz = bar; } void func2(Baz...
google
chromium
20091002-3_0
.C
native_client/pnacl-gcc/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
chromium
20090315_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090315_1.C
196
utf_8
4668a3c2619c1eb17bf2ef65e3938fe5
struct Foo { bool Mumble() { return true; } static void Bar() { if (foo_->Mumble()) foo_ = 0; } static void Baz() { Bar(); } static Foo *foo_; }; void Unused() { Foo::Bar(); Foo::Baz(); }
google
chromium
20101126-1_0
.C
native_client/pnacl-gcc/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
chromium
pr48207-3_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr48207-3_0.C
153
utf_8
dc37f7a73a48e669903030d4f7f26b07
// { dg-lto-do link } // { dg-lto-options { { -flto -g } } } void bar(void) {} void foo(void) { typedef enum { ABC } DEF; bar(); } int main () {}
google
chromium
20100423-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100423-2_0.C
135
utf_8
8c6118f7930008fecd8850c01a3c9049
// { dg-lto-do assemble } // { dg-lto-options {{-flto -g}} } struct A { virtual ~A(); }; void foo() { struct B : A {}; B b; }
google
chromium
20081118_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081118_0.C
333
utf_8
9f78ec143d2a982e1eba29f964737624
/* { dg-lto-do link } */ /* { dg-require-effective-target fpic } */ /* { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -r -nostdlib}} } */ /* We used to ICE because of dangling pointers. */ class object { public: virtual ~object() {} }; class foo : public object { virtual int method(void); }; int foo::meth...
google
chromium
20100302_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100302_1.C
95
utf_8
bd7e5b360aaa69ca4182436b84c325ff
// { dg-options "-fabi-version=0" } #include "20100302.h" int main() { f(& A<mm128>::t); }
google
chromium
20101020-1_0
.C
native_client/pnacl-gcc/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
chromium
20081118_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081118_1.C
218
utf_8
22f845269c768ec466d90cf5dca63657
class object { public: virtual ~object() {} }; class bar : public object { static bar *method(void); }; class quxx : public bar { public: static void method(); }; bar* bar::method (void) { quxx::method(); }
google
chromium
20091210-1_0
.C
native_client/pnacl-gcc/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
chromium
pr48207_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr48207_0.C
166
utf_8
3560e67c101a0719de44ce66e776e884
// { dg-lto-do link } // { dg-lto-options { { -flto -g } } } void bar(int) {} void foo(void) { typedef enum { ABC } DEF; DEF a; bar((int)a); } int main() {}
google
chromium
20101010-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20101010-1_0.C
2,096
utf_8
45561f27805e169674ba339fa18ebbdf
// { dg-lto-do link } typedef long size_t; template < class, class > struct pair { } ; template < typename > class allocator; template < typename > struct equal_to; template < class > struct hash; template < class, class, class, class, class, class > struct dense_hashtable_iterator; template < class, class, class...
google
chromium
pr45983_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr45983_0.C
379
utf_8
dea28ab6f6b16a4fe65dafffe3df1f3d
// PR c++/45983 template <int N> class T1 { int m[N]; typedef float scalar_type_t; typedef scalar_type_t scalar_array_t[1]; const scalar_array_t &decay(void) const; }; class T2 { public: float vals[1]; float get_value(void) const { return vals[0]; } }; T2 channel_params; float output_audio(void...
google
chromium
20081204-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081204-2_0.C
142
utf_8
571c7616d2ca33e375adf11be7141e4c
// { dg-lto-do link } // { dg-lto-options {{-flto -flto-partition=1to1 -O3}} } extern void foo (void); int main () { foo (); return 0; }
google
chromium
20081109_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081109_1.C
32
utf_8
5f8f0441a7d158387241c67debd92e81
int foo (int x) { throw 10; }
google
chromium
pr45621_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr45621_1.C
76
utf_8
ed2299062ba04c6aedaee44243854103
#include "pr45621.h" void S::v1 () { v2 (); } void S::m () { v1 (); }
google
chromium
20080909-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080909-1_0.C
80
utf_8
42370e2b0e5ddc6d2f9564966930e73f
// { dg-lto-do assemble } // { dg-lto-options {{-flto}} } int *i = (int[]) {0};
google
chromium
20101010-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20101010-2_0.C
474
utf_8
4be6727c042e3b92a7134099761f7c06
// { dg-lto-do link } typedef int size_t; template < size_t _Nw > struct _Base_bitset { typedef unsigned _WordT; _WordT _M_w[_Nw]; void _M_do_set () { for (size_t __i;;) _M_w[__i] = static_cast < _WordT > (0); } }; template < size_t > class bitset: _Base_bitset < ((sizeof (unsigned)) + ((sizeof (u...
google
chromium
20101015-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20101015-1_0.C
964
utf_8
2c90b3784b24c08d941d2a9ff4d5b2db
// { dg-lto-do assemble } class DOMString { }; class DocumentImpl; class NodeImpl { public: static const DOMString& mapPrefix(const DOMString &prefix, const DOMString &namespaceURI, short nType); static DOMString getXmlnsURIString(); }; class DOM_Node { public: enum NodeType { ATTRIBUTE_NODE = 2 }; }; ...
google
chromium
20080912-1_0
.C
native_client/pnacl-gcc/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
chromium
20081120-2_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081120-2_1.C
141
utf_8
6048e3b37f144550da1d984517f119a4
template < typename > struct Foo { inline void rdstate() { } }; extern template struct Foo<int>; struct Bar:virtual public Foo<int> { };
google
chromium
20081203_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081203_0.C
158
utf_8
a494295e27dd4c727a300e4487ea09bb
extern void f(); extern void g(); struct Foo { static inline void Bar() { f(); } }; static void Func() { Foo::Bar(); } int main() { g (); Func(); return 0; }
google
chromium
20090315_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090315_0.C
212
utf_8
a58810431206d4d69ca9a85560c06a8e
// { dg-lto-do run } struct Foo { bool Mumble() { return true; } static void Bar() { if (foo_->Mumble()) foo_ = 0; } static void Baz() { Bar(); } static Foo *foo_; }; Foo *Foo::foo_; main() { return 0; }
google
chromium
20081118-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081118-1_1.C
113
utf_8
ee6c53515fae9f8cd35761771f0f9e6b
class C { public: C(); virtual ~C(); virtual void foo(); }; class D { ~D(); C lexer_; }; D::~D() { }
google
chromium
20081120-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081120-2_0.C
208
utf_8
83990cb73a74ba0b6a789590cd7c3e55
// { dg-lto-do link } // { dg-lto-options {{-flto -r -nostdlib}} } template < typename > struct Foo { inline void rdstate() { } }; extern template struct Foo<int>; struct Bar:virtual public Foo<int> { };
google
chromium
20100423-3_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100423-3_0.C
148
utf_8
549953447a149f7358b587964c1b47b6
// { dg-lto-do assemble } // { dg-lto-options {{-flto -g}} } inline int foo() { static union { int i; }; return i; } void bar() { foo(); }
google
chromium
20090312_1
.C
native_client/pnacl-gcc/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
chromium
20081123_0
.C
native_client/pnacl-gcc/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
chromium
20090221_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090221_0.C
647
utf_8
22ecab189817e094ba8eaaa343bc616a
// { dg-lto-do assemble } extern void some_function (const char *); extern bool some_other_function (); struct Foo { long long a; int b; }; bool Foo_eq(Foo x, Foo y) { return x.a == y.a && x.b == y.b; } struct Bar { Foo a; int b; }; struct Baz { Bar a; Baz(Bar &a):a(a) { } }; struct Zonk { Baz baz; Bar f...
google
chromium
20100723-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100723-1_0.C
230
utf_8
c30a9d6ebf4563d7c09fd20aab038b9c
/* { dg-lto-do link } */ /* { dg-lto-options {{-fcompare-debug -flto -flto-partition=none} {-fcompare-debug -flto -flto-partition=1to1}} } */ struct S { virtual void f() { } }; int main(int, char *[]) { S s; return 0; }
google
chromium
20081211-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081211-1_0.C
143
utf_8
215a806aaef01be71e0a1068b8ea5354
#include "20081211-1.h" foo * create_foo (void) { return new foo; } void destroy_foo (foo *p) { delete p; } int main () { return 0; }
google
chromium
20100721-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20100721-1_0.C
248
utf_8
64db11f264fde37296b436ed28032f9d
/* { dg-lto-do assemble } */ static inline int __gthread_active_p (void) { } template <int rank, int dim> class Tensor; template <int dimension> struct G; template <int dim> class T { typedef void A; typedef Tensor<1,dim> F[G<dim>::v]; };
google
chromium
20080926_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080926_0.C
154
utf_8
56555ff718439a233cf8facf89434c06
// { dg-lto-do assemble } // { dg-lto-options {{-O2 -flto -fno-strict-aliasing}} } extern int foo(); void bar() { try { int i = foo(); } catch(int) { } }
google
chromium
20081203_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081203_1.C
121
utf_8
98778c2b88eda25ce05894a17d7680e4
void f () {} struct Foo { static inline void Bar() { f(); } }; static void Func() { Foo::Bar(); } void g () { Func (); }
google
chromium
20080924_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080924_0.C
240
utf_8
981216fdf488c75ea6a2463c529cd3fe
// { dg-lto-do assemble } // { dg-lto-options {{-O2 -flto -fno-strict-aliasing}} } namespace ns { template <class> class hash_set { }; } struct Foo { long long f1, f2, f3; }; void func(ns::hash_set<int>) { Foo foo = { 0, 0, 0 }; }
google
chromium
20090106_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090106_0.C
5,603
utf_8
1ce6c1aebc36b1f96969c33548c941e3
// { dg-lto-do link } typedef long unsigned int size_t; namespace std __attribute__ ((__visibility__ ("default"))) { using ::size_t; template<typename _Tp> struct __is_char { }; # 422 "/usr/include/c++/4.4.0/bits/cpp_type_traits.h" 3 } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { ...
google
chromium
20090311_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090311_0.C
172
utf_8
edded7810c07e02a1b6bd033a9855f16
class C1 { public: virtual ~C1() { } }; class C2 : public C1 { public: C2(void *q); virtual void A(); }; int main(int argc, char **argv) { C2 h(0); return 0; }
google
chromium
20081125_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081125_1.C
77
utf_8
56d0e04444b7731d273408282100a65b
#include "20081125.h" base * base::factory(void) { return new object (); }