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
pr39417
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr39417.C
761
utf_8
232e15df51e39649346853a5c935ff90
// { dg-do run } #include <vector> std::vector <int> sequence(int l, int n) { std::vector <int> ret; for(int i=n;i<=100;i++) { if(i%2==0) { if(l%i==i/2) { int init =l/i-i/2+1; if(init>=0) { for(int j=0;j<i;j++) { ret.push_back(init); init ++; } ...
google
android
pr33340
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr33340.C
497
utf_8
e7e4b2dc9d1619f87f1e2e87f843e498
void* operator new(__SIZE_TYPE__, void* __p) { } struct auto_ptr { int* p; ~auto_ptr() { delete p; } }; typedef void* T; struct vector { void push_back(const T& __x) { ::new(0) T(__x); insert(__x); } void insert(const T& __x); } v; void g(); voi...
google
android
pr59882
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr59882.C
557
utf_8
83bfb691b62368534ab513de1a1a3092
/* { dg-do compile } */ class A; class B {}; struct C { virtual void dispatch(); int traversal_map_; }; template <typename> class F : public virtual C {}; struct I : F<A>, F<int> {}; struct J : B, I {}; class D {}; struct L { L(D &, int &p2) : map_(p2) {} virtual void traverse(int &p1) { int &s = p1; n...
google
android
pr35164-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr35164-2.C
605
utf_8
d189c1337cd585db66672b0b6d7b9ff3
struct __shared_count { __shared_count() { _M_pi = new int; } int * _M_pi; }; template<typename _Tp> class __shared_ptr { public: __shared_ptr(_Tp* __p); void reset(int * __p) { __shared_ptr(__p).swap(*this); } void swap(__shared_ptr<_Tp>& __other) { __other._M_refcount._M_pi = _...
google
android
pr42883
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr42883.C
2,096
utf_8
7c1f383ab4432a06607142b166406844
// { dg-do compile } typedef __SIZE_TYPE__ size_t; namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> class new_allocator { public: typedef size_t size_type; typedef _Tp* pointer; typedef _Tp& reference; void deallocate(pointer __p, size_type) { ...
google
android
20121105-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/20121105-1.C
580
utf_8
8e57d382980230ca521d366b656b79bc
// PR tree-optimization/54986 __extension__ typedef __INTPTR_TYPE__ intptr_t; struct A; struct B { int *_ptr; bool operator==(B *p1) { return p1->_ptr; } }; struct C { A* ref_SYMBptr(); }; struct A { B sommet; }; typedef C *gen_op_context; struct D { D(gen_op_context) {} }; D c(0); const intptr_t d = ...
google
android
vshuf-v8hi
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/vshuf-v8hi.C
448
utf_8
ab7dc71314e27697449a6243312617e2
// { dg-do run { target c++11 } } typedef unsigned short V __attribute__((vector_size(16))); typedef V VI; #define A1 0x1112 #define B1 0x2122 #define C1 0x3132 #define D1 0x4142 #define E1 0x5152 #define F1 0x6162 #define G1 0x7172 #define H1 0x8182 #define A2 0x9192 #define B2 0xa1a2 #define C2 0xb1b2 #define D2 0...
google
android
vshuf-v16hi
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/vshuf-v16hi.C
159
utf_8
b38daf3afbe459d03dada6dcef57870b
// { dg-do run { target c++11 } } typedef unsigned short V __attribute__((vector_size(32))); typedef V VI; #include "vshuf-16.inc" #include "vshuf-main.inc"
google
android
pr45393
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr45393.C
901
utf_8
f330bdf5883a6d3381a5cd9e818fa037
// { dg-do compile } class FloatPoint; class Path { public: ~Path(); void moveTo(const FloatPoint&); static void createEllipse(const FloatPoint& center, float rx, float ry); }; extern "C" { extern float cosf (float); extern float sinf (float); } const float piFloat = static_cast<float>(3.1415926535...
google
android
pr46367
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr46367.C
76
utf_8
e798c66b9b0abf667d1ffe31c31394e5
#pragma interface struct S { S *s; ~S () { delete s; } }; S s;
google
android
pr39259
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr39259.C
576
utf_8
f9460d2eec98500885b88a6a391adc63
// PR tree-optimization/39259 // { dg-do compile } // { dg-options "-O2" } extern "C" int __mysetjmp () __attribute__ ((__returns_twice__)); class TContStatus {}; class TContEvent { public: inline void Execute () throw(); }; class TCont { public: TContStatus ReadD (void* buf, int deadline) { TContEvent e...
google
android
pr33735
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr33735.C
522
utf_8
a5cfb04004f59a611e1b6efa6796b3ca
// { dg-do compile } #include <string> typedef struct _ts { } PyThreadState; PyThreadState * Py_NewInterpreter(void); void Py_EndInterpreter(PyThreadState *); class ApplicationError { public: ApplicationError(std::string errormsg) : errormsg(errormsg) { } std::string errormsg; }; void run() { PyThreadState...
google
android
pr39732
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr39732.C
957
utf_8
1e46ddf740ca05bc22d7fd614345806c
/* { dg-do compile } */ /* { dg-require-profiling "-fprofile-generate" } */ /* { dg-options "-fprofile-generate" } */ template<class _CharT> struct char_traits; template<typename _OI> _OI __copy_move_a2(_OI __result); template<typename _OI> inline _OI copy(_OI __result) { return __copy_move_a2 (__result); } ...
google
android
pr42890
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr42890.C
309
utf_8
7ed9e7f486e83f1d5786530f3058eef7
// PR tree-optimization/42890 // { dg-do compile } extern "C" int puts (const char *) throw (); struct S { const char *a; const char **b; S (const char *s) { a = s; b = &a; } ~S () { puts (a); } }; void foo (int (*fn) (const char *)) { S a ("foo"); fn ("bar"); } int main () { foo (puts); }
google
android
pr40924
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr40924.C
2,319
utf_8
fa014de9d87f4833c5c4020ce1b29d2f
// PR rtl-optimization/40924 // { dg-do run } extern "C" void abort (void); #define MAY_ALIAS __attribute__((__may_alias__)) typedef struct { float v[2]; } floata; typedef struct { int v[2]; } inta; typedef unsigned int uint MAY_ALIAS; typedef signed int sint MAY_ALIAS; typedef float flt MAY_ALIAS; static inline u...
google
android
pr56817
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr56817.C
584
utf_8
fe66aa54712cb20fed5ebb73157c6c9b
// { dg-do compile } // { dg-options "--param max-unroll-times=32" } struct A {}; A **q; struct B { A **j; B () { j = q; } A *& operator[] (unsigned long x) { return j[x]; } }; struct C { C (int r) : v (), s (r) {} A *& operator () (int i, int j) { return v[i * s + j]; } B v; int s; }; struct D { D () ...
google
android
pr40642
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr40642.C
526
utf_8
2014a44a47c32b0a108fb3a11ffb57d3
// { dg-do compile } /* { dg-require-profiling "-fprofile-generate" } */ // { dg-options "-fprofile-generate" } // GCC used to ICE with some EH edge missing. inline void* operator new(__SIZE_TYPE__, void* p) throw() { return p; } inline void operator delete (void*, void*) throw() { } template<typename T> void foo(vo...
google
android
pr51436
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr51436.C
1,124
utf_8
a260742c7fd002f605f8512fd1e34f61
/* { dg-do compile } */ typedef __SIZE_TYPE__ size_t; extern "C" void *memcpy (void *, __const void *, size_t); template < class Dest, class Source > struct BitCastHelper { static Dest cast (const Source & source) __attribute__ ((always_inline)) { Dest dest; memcpy (0, &source, sizeof dest); } }; template < ...
google
android
pr56403
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr56403.C
129
utf_8
623e4675e1028b5a86de81a84ced39e5
// PR c++/56403 // { dg-do compile } #include <stdarg.h> struct S { va_list err_args; }; void * foo () { return new S (); }
google
android
pr36960
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr36960.C
429
utf_8
c6a3b37eb5619ce18630ad425b920a56
// { dg-do run } struct Lower { const int& ref; Lower(const int& ref) : ref(ref) { } }; struct Middle : public virtual Lower { Middle(const int& ref) : Lower(ref) { } }; struct Upper : public Middle { Upper(const int& ref) : Lower(ref), Middle(ref) { } int get() { return ref; } }; extern "C" void a...
google
android
pr37343
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr37343.C
485
utf_8
a77a01236fb32add6af8d40930f948c0
/* { dg-do compile } */ typedef enum RW { rwBitmapGrey, rwBitmapGrey16 } RW; void FindDepth(RW); void ParseDumpBitmap(RW kind, int maxfiles) { static const RW normalTypes[] = { }; const RW *bitmapTypes; int i; switch (kind) { case rwBitmapGrey: case rwBitmapGrey16: bitmapTyp...
google
android
pr30252
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr30252.C
6,369
utf_8
a84e9fff95df4801f8e582fbc33303b8
/* { dg-do run } */ /* { dg-options "-fstrict-aliasing" } */ extern "C" void abort (void); namespace sigc { template <class T_type> struct type_trait { typedef T_type& pass; typedef const T_type& take; typedef T_type* pointer; }; template <class T_base, class T_derived> struct is_base_and_deriv...
google
android
pr45709-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr45709-2.C
370
utf_8
172ba6975c5550b7f36f1bb6ee577c98
// { dg-do compile } struct Region { int storage[4]; int count; }; static inline Region subtract(int lhs) { Region reg; int* storage = reg.storage; int* storage2 = reg.storage; if (lhs > 0) storage++, storage2--; reg.count = storage - reg.storage + storage2 - reg.storage; return reg; } void bar...
google
android
20070621-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/20070621-1.C
5,987
utf_8
98dfe5336ff2bd50dc265f239456c8b0
// { dg-do compile } /* Reduced from libstdc++-v3/testsuite/25_algorithms/equal/1.cc 1.2.ii: In function 'void test1()': 1.2.ii:104: error: true/false edge after a non-COND_EXPR in bb 15 1.2.ii:104: internal compiler error: verify_flow_info failed */ __extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t; namespace std __...
google
android
predcom-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/predcom-1.C
416
utf_8
389892c1f2e87d69449479d1b053c70c
/* Test for ICE in predictive commoning with empty loop header block on arm-none-linux-*. */ struct Foo { double *ptr; Foo (double *ptr_) : ptr (ptr_) { } Foo PostInc () { return Foo (ptr++); } }; bool Baz (Foo first, double *last) { Foo prev (first.ptr); first.ptr++; while (...
google
android
pr56768
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr56768.C
530
utf_8
4edc228b2f0dc3b23aeb3e5ab5ef6597
// { dg-do compile { target c++11 } } struct Iter { int& operator* (); void operator++ (); }; bool operator!= (Iter &, Iter &) { } struct Container { Iter begin () const; Iter end () const; }; struct J { virtual J *mutable_child (); }; struct M { M (const Container &); J ns_; }; namespace { J MakeN...
google
android
pr36745
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr36745.C
1,957
utf_8
c4279bb7a6bcdb12cdd78ead95cac2be
/* PR target/36745 */ /* { dg-do compile } */ /* { dg-options "-O2 -fPIC" } */ /* { dg-require-effective-target fpic } */ typedef __SIZE_TYPE__ size_t; class QBasicAtomicInt { public: int _q_value; inline bool operator== (int value) const { } bool ref (); bool deref (); }; inline bool QBasicAtomicInt::ref ...
google
android
pr39764
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr39764.C
233
utf_8
eaa64cc3e3ed3a9b485164b7d1cd003d
/* { dg-do compile } */ class A; class B { }; extern const double NaN; B foo(A* exec, double d); inline B baz(A* a) { return foo(a, NaN); } B bar(A* a) { return baz(a); } extern const double NaN = (__builtin_nanf(""));
google
android
pr49519
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr49519.C
2,358
utf_8
cffdc9798a9b714a7acb5448aee49c12
/* { dg-do run } */ #include <stdlib.h> struct null_type {}; inline const null_type cnull() { return null_type(); } template <class TT> struct cons; class tuple; template< int N > struct get_class { template<class TT > inline static int& get(cons<TT>& t) { return get_class<N-1>::template get(t.tail); } }; t...
google
android
pr60131
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60131.C
346
utf_8
f788c2e514249481a41189cfb4d980fd
// { dg-do compile } struct A { short a; }; int **b; unsigned long c; bool foo (); unsigned bar (unsigned i); extern void baz () __attribute__((noreturn)); int * test (unsigned x, struct A *y) { unsigned v; if (foo () || y[x].a == -1) { c = bar (x); return 0; } v = y[x].a; if (v >= 23) ...
google
android
pr60058
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60058.C
494
utf_8
dd0e7c5f40aa8ba76b9e4cf156eb5691
/* { dg-do compile } */ /* { dg-require-visibility "" } */ typedef enum {} UErrorCode; class A { public: virtual A &m_fn1(A &, const A &, UErrorCode &) const; void m_fn2(); A(); A(int); }; class __attribute__((visibility("hidden"))) B : public A { public: B(A &p1) : norm2(p1), set(0) {} A &m_fn1(A &, const ...
google
android
pr58464
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58464.C
7,869
utf_8
a3e67cbbb6404b1b7479dade4457c170
// { dg-do compile } typedef __SIZE_TYPE__ size_t; extern "C" void *memcpy(void *, const void *, size_t); void *xmalloc(size_t); enum { _sch_isdigit, _sch_isidst, _sch_isidnum }; extern const unsigned _sch_istable[256]; typedef struct ht cpp_hash_table; typedef struct ht_identifier *hashnode; enum ht_lookup_option {...
google
android
pr42183
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr42183.C
1,586
utf_8
2a7843fc7360185d8c597e00ef02ddcb
// { dg-do compile } class IntSize { public: IntSize(int width, int height) : m_width(width), m_height(height) { } int m_width, m_height; }; class IntPoint { public: IntPoint(int x, int y) : m_x(x), m_y(y) { } int m_x, m_y; }; class IntRect { public: IntRect(int x, int y, int width, int height) ...
google
android
pr56398
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr56398.C
252
utf_8
dbac6bd03009706a9c22e39f20c12296
// { dg-do compile } // { dg-options "-g" } namespace { #0 "/usr/include/c/4.8/bits/postypes.h" 3 } vtkpow (int b) { int a1; int b1; int c; while (b1) { while (b) b1 = 0; b1 = b1 - 1; c = c * a1; } return c; }
google
android
pr54684
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr54684.C
2,014
utf_8
12c6b8c9cdc4dd7505e93ef52c81b936
// { dg-do compile } // { dg-options "-fno-short-enums" } typedef union tree_node *tree; typedef union gimple_statement_d *gimple; struct vec_prefix { unsigned num_; }; template<typename T> struct vec_t { unsigned length (void) const; T &operator[] (unsigned); vec_prefix prefix_; T vec_[1]; }; template...
google
android
pr51482
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr51482.C
1,155
utf_8
253ba988a417d329d833e9f87272dfb8
// { dg-do compile } typedef enum { CLASS_IN = 1, CLASS_OUT = -1 } FERGUSON_KEY_CLASS, BEZIER_KEY_CLASS; typedef class flag_interface { } VECT3DF_SIMPLE; typedef struct vect3df { float x,y,z; } VECT3DF, VECT; typedef struct vect4df : public vect3df { float w; } VECT4DF, WVECT; typedef class llist_item { } ANIM...
google
android
pr42871
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr42871.C
502
utf_8
257b8de487b284f4945c33c7fad65d8f
struct C { ~C (); int c3; }; C *b2; static void b1 (const C &x, unsigned b3, unsigned b4) { unsigned i = 0; for (; i < b3; i++) if (i < b4) { b2[0].c3 = x.c3; return; } } int a (); void bar (unsigned b3, unsigned b4) { C c[100]; for (int i = 0; i < 100; i++) { c...
google
android
pr51737
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr51737.C
829
utf_8
d0c1a107c018be9727f2704fb67a0298
// { dg-do compile } template<class T> class intrusive_ptr { public: ~intrusive_ptr() { intrusive_ptr_release( px ); } T * px; }; template <typename T> struct intrusive_base { friend void intrusive_ptr_release(T* ptr) { delete ptr; } }; struct section_info; struct file_info : intrusive_base<file_inf...
google
android
pr60609
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60609.C
4,714
utf_8
ce5bd74dda85ecae08b1e79c21fc231c
/* { dg-do assemble } */ class exception { }; class bad_alloc:exception { }; class logic_error:exception { }; class domain_error:logic_error { }; class invalid_argument:logic_error { }; class length_error:logic_error { }; class overflow_error:exception { }; typedef int mpz_t[]; template < class > class __gmp_expr; tem...
google
android
pr58252
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58252.C
6,567
utf_8
1c2732f07b2d1596e0afb51e20cffdcd
// { dg-do compile } // { dg-options "-fpermissive" } typedef long unsigned int size_t; typedef bool _CORBA_Boolean; typedef unsigned int _CORBA_ULong; template <class T> class _CORBA_Sequence { public: typedef _CORBA_Sequence<T> T_seq; inline T_seq &operator= (const T_seq &s...
google
android
pr47290
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr47290.C
186
utf_8
5dde3d0578e1439d9d3996d53c5837d5
// PR tree-optimization/47290 // { dg-do compile } struct V { V (int = 0); ~V () { for (;;) ; } int size (); }; struct S { V a, b; S () : b (a.size ()) {} } s;
google
android
pr34651
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr34651.C
599
utf_8
b4f36f5dd9e57a473980dae121c14b78
/* { dg-do compile } */ typedef bool Bool; struct CString { CString (const char * =__null); CString & operator += (const CString &); }; struct THotKey { short Key; Bool Control; Bool Shift; Bool Alt; }; THotKey m_HotKey; THotKey GetHotKey () { return m_HotKey; } void Serialize () { THotKey inHot...
google
android
pr54647
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr54647.C
268
utf_8
dc106f856185dd3ee7cfdb5a86571091
// { dg-do compile } class A { }; template <class type> struct D:A { type & operator[](int); }; struct B { typedef D <int *>Row; struct C { Row *row; }; }; B::C a; B::Row & b = *a.row; void fn1 () { while (1) b[0] = b[0] ? (int *) -1 : 0; }
google
android
pr58201_1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58201_1.C
163
utf_8
af1ff8fa6013e1d4ae4758b7461f737e
/* { dg-do link } */ /* { dg-options "-O2" } */ /* { dg-additional-sources "pr58201_0.C" } */ #include "pr58201.h" A::A() { } A::~A() { } B::B() { } B::~B() { }
google
android
pr49770
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr49770.C
1,462
utf_8
acaa19d0ec66607bb68638c56d59a575
/* { dg-do run { target c++11 } } */ /* { dg-options "-fno-tree-forwprop" } */ typedef __SIZE_TYPE__ size_t; template < typename > struct remove_reference; template < typename _Tp > struct remove_reference <_Tp & > { typedef _Tp type; }; template < typename _Tp > typename remove_reference < _Tp >::type && move (_Tp...
google
android
pr44915
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr44915.C
179
utf_8
dc744dc373dfd8c3c33963f78a643762
/* { dg-do compile } */ /* { dg-options "-findirect-inlining" } */ struct A; typedef void (A::*f_ptr) (); void dummy (f_ptr) { } void call_dummy (f_ptr cb) { dummy (cb); }
google
android
pr59208
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr59208.C
356
utf_8
c3d221fd96e409fb8ae61b1c606d1581
// { dg-do compile } class A { public: A(); A(int *); }; class B {}; class C : B { public: virtual void m_fn1(); void operator+=(int) { m_fn1(); } }; enum DebuggerType {}; C a; DebuggerType b; void operator==(A &, const A &); static A get_dbx_doc(A &p1) { p1 == 0; } void add_button() { A c; switch (b) cas...
google
android
pr55875
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr55875.C
691
utf_8
56c1bd4cd1de38938583ed3424614e30
// { dg-do run } struct A { short int a1; unsigned char a2; unsigned int a3; }; struct B { unsigned short b1; const A *b2; }; B b; __attribute__((noinline, noclone)) int foo (unsigned x) { __asm volatile ("" : "+r" (x) : : "memory"); return x; } inline void bar (const int &) { } __attribute__((noinl...
google
android
pr47313
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr47313.C
1,982
utf_8
e87bebc595a173e1bb72705b26424cba
// { dg-do compile } namespace internal { template < class DSC, bool Const > struct CC_iterator { typedef CC_iterator iterator; typedef typename DSC::value_type value_type; typedef const value_type* pointer; CC_iterator () ; CC_iterator (const iterator &it) { } pointer p; pointer operator->() c...
google
android
pr33887-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr33887-2.C
301
utf_8
ac9b9ea255f72e7339eeaf103a832da5
/* { dg-do run } */ extern "C" void abort() __attribute__ ((noreturn)); struct s { unsigned long long f1 : 40; unsigned int f2 : 24; } sv; int main() { int f2; sv.f2 = (1 << 24) - 1; __asm__ volatile ("" : : : "memory"); ++sv.f2; f2 = sv.f2; if (f2 != 0) abort(); return 0; }
google
android
pr42760
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr42760.C
566
utf_8
43953aa4786b2f0d157a0429e79efabb
// PR middle-end/42760 // { dg-do compile } template <typename T> struct A { static T b (T it) { return it; } }; template <typename T, typename U> static U baz (T x, T y, U z) { for (long n = y - x; n > 0; --n) { *z = *x; ++z; } }; template <typename T, typename U> U bar (T x, T y, U z) { b...
google
android
pr49938
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr49938.C
1,200
utf_8
54ddb94a512d7930a48a4b9d5a95550e
#include <vector> #include <cstdlib> typedef unsigned short uint16; namespace base { class StringPiece { public: typedef std::size_t size_type; size_type size() const { return length_; } size_type length_; }; } namespace net { class DNSSECKeySet { bool CheckSignature (const base::Str...
google
android
pr43784
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr43784.C
406
utf_8
a10bc7d2d87e38cc8e88038e0261fc91
/* { dg-do run } */ /* { dg-options "-fno-tree-sra" } */ struct S {int x, y, makemelarge[5];}; S __attribute__((noinline)) f (S &s) { S r; r.x = s.y; r.y = s.x; return r; } int __attribute__((noinline)) glob (int a, int b) { S local = { a, b }; local = f (local); return local.y; } extern "C" void...
google
android
vshuf-v2sf
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/vshuf-v2sf.C
538
utf_8
60b5fec243b0f08f650c00076409ff7e
// // { dg-do run { target c++11 } } #if __SIZEOF_FLOAT__ == 4 typedef float V __attribute__((vector_size(8))); # if __SIZEOF_INT__ == 4 typedef unsigned int VI __attribute__((vector_size(8))); # elif __SIZEOF_LONG__ == 4 typedef unsigned long VI __attribute__((vector_size(8))); # else # define UNSUPPORTED # endif #el...
google
android
ipa-cp-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/ipa-cp-1.C
451
utf_8
4054dd6c177ca7971902e3ac60e34695
/* { dg-do compile } */ // With IPA-CP, this caused a problem on darwin, where // _M_reset is being cloned, it was still being marked // as weak and then we had to change the calls to the // newly marked function for the non throwing behavior. int& f(int&); inline void _M_reset(int &_M_vbp) throw() { f(_M_vbp); } ...
google
android
pr42110
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr42110.C
359
utf_8
6288fd3a3bd0bd1724da11910b425047
/* { dg-do compile } */ bool foo(); struct A { A* fooA() { if (foo()) foo(); return this; } virtual void barA(char); }; template<int> struct B { A *p, *q; }; template<int N> inline void bar(B<N> b) { b.fooB(0); } extern template void bar(B<0>); void (*f)(B<0>) = bar; void baz() { B<0>().fooB(0); }
google
android
pr31081-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr31081-2.C
818
utf_8
9fd72fc7657b473f879f5e1dc5b4f59f
/* { dg-do compile } */ class CString { public: CString(); ~CString() { operator delete(_rep); } operator const char*() const { return _rep; } private: CString(char* cstr); char* _rep; }; class String { public: String(); String(const char* str); ~String(); CString getCString() con...
google
android
pr47559
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr47559.C
135
utf_8
2f3ed6835dc3994f8be37fee9ce57d5d
// { dg-do compile { target c++11 } } // { dg-options "-fnon-call-exceptions" } void foo (int *k) noexcept { for (;;) *k = 0; }
google
android
pr58552
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58552.C
637
utf_8
4febf0cd6a102e583e1b0f4faeb2f939
// { dg-do compile } // { dg-additional-options "-fcompare-debug" } extern void fancy_abort () __attribute__ ((__noreturn__)); extern "C" { struct __jmp_buf_tag { }; typedef struct __jmp_buf_tag jmp_buf[1]; extern int _setjmp (struct __jmp_buf_tag __env[1]) throw (); } extern void *gfc_state_stack; static ...
google
android
pr35400
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr35400.C
117
utf_8
95e1ec333ba17743fc8ea464d26d4981
/* { dg-do compile } */ /* { dg-options "-Wtype-limits" } */ struct A { A(); ~A(); }; void foo() { A x[1]; }
google
android
pr38745
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr38745.C
552
utf_8
b40a32ddc241492f6a395ad16cd948ee
/* { dg-do compile } */ union u_u16 { unsigned short v; struct { unsigned char lo8, hi8; } __attribute__ ((__may_alias__)) u; } __attribute__ ((__may_alias__)); union u_u32 { unsigned int v; struct { u_u16 lo16, hi16; } u; } __attribute__ ((__may_alias__)); union u_u64 { struct ...
google
android
20120420-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/20120420-1.C
369
utf_8
7071cc03da4664bd6eba9045894856c2
// { dg-do compile } int g, *gp[100]; struct V { int* x; int y; }; void foo (V **p, V* end, int i) { *p = 0; V* pp = *p; int s = 100; for (; pp < end; ) { pp++; (pp-1)->x = &g; if (g) { if (g>10) g++; int *t = (int*) operator new (100); (pp-1)->x = t; } else...
google
android
pr52638
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr52638.C
194
utf_8
03a3dc586d0df58e2804f83d50c76c21
// { dg-do compile } // { dg-options "-ftree-vectorize" } void bar (bool * b, bool * e, bool t) { while (b < e) *b++ = t; } void foo (bool * b, bool * e, bool t) { bar (b, e, true); }
google
android
pr55740
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr55740.C
480
utf_8
d2ba89f2ad99834f4a4f2806a0939114
// { dg-do compile } static bool st_IsPathDelimiter( char c ) { return c == '/'; } bool IsValidPath( char const * filename ) { if ( !filename || filename[0] == 0 ) return false; char const * run = filename; while ( run && *run ) { if ( run[0] == '.' ) if ( run[1] != '.' || ( !st_IsP...
google
android
pr53321
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr53321.C
608
utf_8
863acf770fd07b0273b74d73120eeaf3
// { dg-do compile } // { dg-require-profiling "-fprofile-generate" } // { dg-options "-fprofile-generate" } typedef long unsigned int size_t; extern "C" { extern void *memcpy (void *__dest, __const void *__src, size_t __n); } extern char *src, *sources; extern int n_sources; static void find_source (const char *...
google
android
pr36444
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr36444.C
526
utf_8
f508d53acbdd768a7f71915a40a5c3e9
/* { dg-do compile } */ /* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ #define vector __attribute__((vector_size(16) )) struct struct1 { union {} vmx; struct struct2 { struct2(const struct2& r) {} } w; } __attribute__((aligned(16))); struct struct3 { vector float vmx; operator cons...
google
android
pr60438-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60438-1.C
399
utf_8
e60052a170d7e76539e7170251ea3dbe
// { dg-do compile } // { dg-options "-fomit-frame-pointer" } struct A { int a; }; struct B { A foo (); }; struct C { B *foo (); }; int foo (struct C *, float); void bar (struct C *); void baz (struct A *); int a, b, c; int foo (struct C *y, float x) { struct A d; bar (y); else { C g; g.foo ()->...
google
android
pr59163
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr59163.C
452
utf_8
20f86b01bbea5b4795e1e12cf98b140c
// PR target/59163 // { dg-do run } struct A { float a[4]; }; struct B { int b; A a; }; __attribute__((noinline, noclone)) void bar (A &a) { if (a.a[0] != 36.0f || a.a[1] != 42.0f || a.a[2] != 48.0f || a.a[3] != 54.0f) __builtin_abort (); } __attribute__((noinline, noclone)) void foo (A &a) { int i; A c = ...
google
android
vshuf-v4di
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/vshuf-v4di.C
459
utf_8
7a6452c8049d1936df156f5f13c7488d
// { dg-do run { target c++11 } } #if __SIZEOF_LONG_LONG__ == 8 typedef unsigned long long V __attribute__((vector_size(32))); typedef V VI; #else #define UNSUPPORTED #endif #define A 0x1112131415161718 #define B 0x2122232425262728 #define C 0x3132333435363738 #define D 0x4142434445464748 #define W 0xc1c2c3c4c5c6c7c...
google
android
pr55260-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr55260-1.C
294
utf_8
132657974e20a4d3d29ebd62420e8b5b
/* { dg-do compile { target c++11 } } */ /* { dg-options "-fno-inline" } */ /* { dg-add-options bind_pic_locally } */ struct B { constexpr B (): bp () {} ~B () { if (bp) bp->f (); } void f (); B *bp; }; struct A { B b; }; void foo () { A a; }
google
android
pr56302
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr56302.C
1,372
utf_8
456399559d0915f5e079dd28fae8a740
// PR c++/56302 // { dg-do compile } typedef __SIZE_TYPE__ size_t; # define STAP_SDT_ARG_CONSTRAINT nor # define _SDT_STRINGIFY(x) #x # define _SDT_ARG_CONSTRAINT_STRING(x) _SDT_STRINGIFY(x) # define _SDT_ARG(n, x) \ [_SDT_S##n] "n" ((_SDT_ARGSIGNED (x) ? 1 : -1) * (int) _SDT_ARGSIZE (x)), \ ...
google
android
pr37146-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr37146-1.C
1,051
utf_8
a6f8a68c45819e14c2089195e56b5d01
// PR c++/37146 // { dg-do run } extern "C" void abort (); int a, b; struct A { int i:8; int j:8; int k:16; int l:32; } c; void f1 (int x, int y) { (x ? a : b) = y; } void f2 (int x, int y) { (x ? c.i : c.j) = y; } void f3 (int x, int y) { (x ? c.i : a) = y; } void f4 (int x, int y) { (x ? c.i : c.k) = y; ...
google
android
pr46111
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr46111.C
343
utf_8
ddc7d43b0451e3b3394574ac366e5622
// { dg-do compile } // { dg-require-effective-target pthread } // { dg-options "-ftree-parallelize-loops=2 -g" } struct A { int zero () { return 0; } }; static inline void bar (int) { } struct B { struct A a; B (int n) { for (int i = 0; i < n; i++) bar (a.zero ()); } }; void foo (int n)...
google
android
pr53364
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr53364.C
448
utf_8
f6aef73358d7ae2e3102160fa47a97c9
// { dg-do run } extern "C" void abort (void); template<typename _Tp> inline const _Tp& min(const _Tp& __a, const _Tp& __b) { if (__b < __a) return __b; return __a; } struct A { int m_x; explicit A(int x) : m_x(x) {} operator int() const { return m_x; } }; struct B : public A { public: explicit B(i...
google
android
pr41273
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr41273.C
348
utf_8
9f12519b907a84c635fb7ea8fb8fa7ba
/* { dg-do compile } */ /* { dg-options "-g" } */ long *H2_ipX_ener_sort; double H2_old_populations[2]; double H2_total; void H2_LevelPops() { double sum_pop = 0.; long nEner = 0; while( nEner < 3 && sum_pop/H2_total < 0.99999 ) { long ip = H2_ipX_ener_sort[nEner]; sum_pop += H2_old_populations[...
google
android
pr43905
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr43905.C
243
utf_8
2eec4865fde837c6c43e5ba276e57cb6
extern void sf ( __const char *); struct Matrix{ int operator[](int n){ sf ( __PRETTY_FUNCTION__); } int operator[](int n)const{ sf ( __PRETTY_FUNCTION__); } }; void calcmy(Matrix const &b, Matrix &c, int k){ b[k]; c[k]; }
google
android
pr60746
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60746.C
281
utf_8
59b64e493342855b4d4f60c5c5b2e866
// { dg-do compile } class One { public: virtual unsigned long getSize () const; }; class Two { virtual int run (); }; int Two::run () { One list_arry[5][2]; int orig = 0; if (list_arry[3][orig].getSize () > 0 || list_arry[4][orig].getSize () > 0) { } }
google
android
pr40102
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr40102.C
442
utf_8
a55ede92712e943c1fcea56c7943cd1d
/* { dg-do compile } */ bool foo0(int) { return true; } bool foo1(); struct A { A(); ~A(); template<typename T> void bar1(T f) { if (f(0)) foo1(); } template<typename T> void bar2(T); }; template<typename T> void A::bar2(T f) { A a, b[1], *p; while (foo1()) { if (p) ++p; ...
google
android
pr59775
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr59775.C
222
utf_8
868211466d72a29843e2c167f3ba0912
// { dg-do compile } struct A { virtual void foo () = 0; void bar () { foo (); } bool a; }; struct B : public virtual A { virtual void foo (); }; struct C : public B { C (); }; void baz () { C c; c.bar (); }
google
android
pr45699
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr45699.C
629
utf_8
8522ec70c8ce30caf355cc42899c3552
// { dg-do run } extern "C" void abort (); class A { public: virtual void foo () {abort();} }; class B : public A { public: int z; virtual void foo () {abort();} }; class C : public A { public: void *a[32]; unsigned long b; long c[32]; virtual void foo () {abort();} }; class D : public C, public B {...
google
android
pr37456
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr37456.C
181
utf_8
ddcb713d149db91f8154d95a295da33d
/* { dg-do compile } */ int zot(int); struct bar { ~bar() { } }; int x; void doit(int a, int b, int c) { bar pn; int b1 = zot(a) * c; int b2 = zot(b) * c; x = b1 + b2; }
google
android
pr40323
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr40323.C
1,009
utf_8
45ff701ec258d48b40e6b97258dd6c62
/* Testcase for PR 40323. */ /* { dg-do compile } */ /* { dg-options "-fno-early-inlining" } */ /* { dg-add-options bind_pic_locally } */ extern void do_something (const char *, int); class Parent { private: const char *data; public: Parent (const char *d) : data(d) {} int funcOne (int delim) const; }; c...
google
android
pr31081-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr31081-1.C
314
utf_8
ff110b3c564473b839e08fc2d962f439
/* { dg-do compile } */ static int get_record (void); void f(void); int g(void); static int get_record (void) { int result; try { result = g(); f(); } catch (const int &) { } return result; } int NAV_get_record ( ) { int result; for (;;) if (get_record ()) return 1; }
google
android
pr57190
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr57190.C
1,349
utf_8
871cac66ac2e1f17f70fcd058cec1a81
// { dg-do compile } namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> class new_allocator { }; } namespace std { template<typename> class allocator; template<class _CharT> struct char_traits; template<typename _CharT, typename _Traits = char_...
google
android
pr45580
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr45580.C
1,327
utf_8
28c59a9000661e55c1d825c6c3e4cea7
// { dg-do compile } namespace std { typedef __SIZE_TYPE__ size_t; } inline void* operator new(std::size_t, void* __p) throw() { return __p; } class Noncopyable { }; struct CollectorCell { }; template<typename T> class PassRefPtr { public: T* releaseRef() const { } }; template <typename T> class NonNullPa...
google
android
pr46154
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr46154.C
193
utf_8
5291edcd81854b99025f2cc89d71cd8d
/* { dg-do compile } */ /* { dg-options "-fipa-cp-clone" } */ struct S { virtual int foo () { return foo () == 0; } virtual void baz (); }; void A () { S s; s.foo (); }
google
android
pr48271
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr48271.C
1,594
utf_8
2acf161e9b04da4e5f78391fffbd6c85
// { dg-do compile } // { dg-options "-ftree-vrp -fno-guess-branch-probability -fnon-call-exceptions" } void *xalloc (); void xfree (void *); void error (); static inline void * MallocT () { void *p = xalloc (); if (!p) error (); return p; } struct ByteBlob { int *header; ByteBlob(); ~ByteBlob () ...
google
android
pr44826
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr44826.C
1,360
utf_8
e5466946d96ec5f4b66f422d588cbd27
typedef unsigned short PRUint16; typedef PRUint16 PRUnichar; template <class CharT> struct nsCharTraits { }; class nsAString_internal { public: typedef PRUnichar char_type; }; class nsString : public nsAString_internal { public: typedef nsString self_type; nsString( const self_type& str ); }; class nsDe...
google
android
vshuf-v16qi
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/vshuf-v16qi.C
158
utf_8
c828aedf4c48dbff6f8eadb1fbfa85c9
// { dg-do run { target c++11 } } typedef unsigned char V __attribute__((vector_size(16))); typedef V VI; #include "vshuf-16.inc" #include "vshuf-main.inc"
google
android
pr32950
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr32950.C
161
utf_8
61a41127865c15f172eb94912777d1f6
/* { dg-do compile } */ struct A { __complex__ double c; }; struct B { A a; B(A x) : a(x) {} void foo(); }; void bar() { B b = A(); B(b).foo(); }
google
android
pr46383
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr46383.C
10,765
utf_8
e8f612095afadb3172d490e099288d27
// { dg-do compile } namespace std { template<class,class>struct pair{}; template<typename _Tp> struct _Vector_base { struct _Vector_impl { _Tp* _M_start; _Tp* _M_finish; _Tp* _M_end_of_storage; }; _Vector_impl _M_impl; }; template<typename _Tp > struct vector : _Vector_base<_Tp> ...
google
android
pr33887-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr33887-1.C
677
utf_8
d3c8ab54a210cf43bc90436168df7276
/* { dg-do run } */ extern "C" void abort (void); struct S { unsigned int i : 24; } x; void __attribute__((noinline)) test1() { if (--x.i != 0x00ffffff) abort (); if (x.i != 0x00ffffff) abort (); } void __attribute__((noinline)) test2() { if (x.i-- != 0) abort (); if (x.i != 0x00ffffff) abort (...
google
android
pr44809
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr44809.C
138
utf_8
b40bbd38e5725b10a9230bce491b9b0c
// { dg-do compile } unsigned int mEvictionRank[(1 << 5)]; void Unswap(int i) { mEvictionRank[i] = ({ unsigned int __v = i; __v; }); }
google
android
pr27218
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr27218.C
186
utf_8
161154ed9f6193a2a7da119e068c3f3f
/* { dg-do compile } */ struct Vector { double _x, _y; }; typedef Vector Point; Vector d; static inline Vector f(void) { return d; } void add_duck (void) { new Point (f()); }
google
android
pr40991
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr40991.C
4,665
utf_8
eade08791e7af6fb0d441afaaa82c3e5
// { dg-do compile { target c++11 } } typedef __SIZE_TYPE__ size_t; namespace std __attribute__ ((__visibility__ ("default"))) { using ::size_t; void __throw_bad_function_call() __attribute__((__noreturn__)); } inline void* operator new(std::size_t, void* __p) throw() { return __p; } namespace std { cl...
google
android
pr32563
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr32563.C
107
utf_8
e9780c172c681062c7a2b35fc6317156
/* { dg-do compile } */ struct A { char c[1]; } a; const __SIZE_TYPE__ i = (__SIZE_TYPE__)&a.c[0] - 1;
google
android
pr43879-1_1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr43879-1_1.C
543
utf_8
1140055e1a01f12b51cb9cef67e2eea9
/* { dg-do run } */ /* { dg-options "-fipa-pta" } */ /* { dg-additional-sources "pr43879-1_0.C" } */ struct A { int *i; A(); ~A(); }; static inline int aa(int *a, int *b) { (void)b; return *a; } struct B { B() : i(0) {} int i; B(const A &a) : i(0) { f(*a.i); } void __att...
google
android
pr48600
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr48600.C
170
utf_8
18613acec96a26174e1888e6b7290966
/* { dg-do compile } */ class mx { public: mx(); }; int main() { while (true) { mx *bar = new mx; mx *baz = new mx; continue; } return 0; }
google
android
pr38811
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr38811.C
2,112
utf_8
47f547029d2bafa168554e84ad1e90d8
/* { dg-do compile } */ typedef unsigned long ULONG; void iwos_ErrorMessage(long error, const char * const file_name, ULONG line_num, const char * const message); class AbcA2d { public: double x; double y; ~AbcA2d() { } }; enum AbcZyParamType { ABC_SP_1 }; class AbcExtent2d { Abc...
google
android
pr33134
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr33134.C
410
utf_8
a290e0d99d5d90235194f3576ea12cbe
/* { dg-do compile } */ /* { dg-options "-O2" } */ class FXObject; class FXStream { public:FXStream (const FXObject *cont = __null); FXStream & operator<< (const unsigned char &v); }; bool fxsaveGIF (FXStream &store) { int bitsperpixel; unsigned char c1; c1 = 0x80; c1 |= (bitsperpixel - 1) << 4; store << ...