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
crash46
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash46.C
429
utf_8
fe7f99f8cf1cf6cdd285ccca275b3564
// PR c++/37532 // { dg-do compile } void foo (_Decimal32) // { dg-error "declared void" "declared" } { } // { dg-error "was not declared" "not" { target *-*-* } 5 } void bar (_Bool) // { dg-error "declared void" "declared" } { } // { dg-error "was not declared" "not" { target *-*-* } 10 } void baz (_Fract) //...
google
android
bitfield1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/bitfield1.C
134
utf_8
3a643464cf275220f2334b2b6c6cc7a5
// PR c++/27803 struct A { double i : 8; // { dg-error "type" } }; void foo(A& a) { (char)a.i; // { dg-error "no member" } }
google
android
defarg5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/defarg5.C
453
utf_8
bdbfe5453980b13fed6df11afd4e2141
// { dg-do compile } // PR c++/12167 - infinite recursion class A { void report(int d // the default arg is what NAN etc can expand to, but // with the floatiness removed. = (__extension__ ((union { unsigned l; int d; }) { l: 0x7fc00000U }).d)); };
google
android
operator6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/operator6.C
74
utf_8
ee746d77b16a30ad23912edc3ab79c6b
// PR c++/25635 struct A {}; A::operator int(); // { dg-error "class" }
google
android
undefined7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/undefined7.C
161
utf_8
51aa2c13898ac16fd8a1a4a06126600a
// PR c++/9228 // { dg-do compile } template <typename T> typename A<T>::B foo() {} // { dg-error "" }
google
android
pr39362
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr39362.C
2,511
utf_8
7a7d4fdd194a332098063082ee958521
/* { dg-do compile } */ void *fastMalloc (int n); void fastFree (void *p); template <class T> struct C { void deref () { delete static_cast <T *>(this); } }; template <typename T> struct D { D (T *ptr) : m_ptr (ptr) { } ~D () { if (T * ptr = m_ptr) ptr->deref (); } T *operator-> () const; T *m_ptr; typedef...
google
android
pr52918-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr52918-1.C
959
utf_8
df97f3033461c85243c1aceb6fe70505
// { dg-do compile } typedef __SIZE_TYPE__ size_t; class bad_alloc { }; typedef struct { } __gthread_mutex_t; int __gthread_mutex_unlock (__gthread_mutex_t *__mutex); class __concurrence_unlock_error { }; inline void __throw_concurrence_unlock_error() { throw __concurrence_unlock_error(); } class __mutex ...
google
android
pr49628
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr49628.C
1,028
utf_8
0a508430aa4eff5b532a237388ea0851
/* { dg-do compile } */ #include <vector> template <int rank, int dim> class Tensor; template <int dim> class Tensor<1,dim> { public: explicit Tensor (const bool initialize = true); Tensor (const Tensor<1,dim> &); Tensor<1,dim> & operator = (const Tensor<1,dim> &); double values[(dim!=0) ? (dim) : 1];...
google
android
pr56635
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr56635.C
225
utf_8
e89f1c8379e462d6700cbd10ca024539
// PR tree-optimization/56635 // { dg-do compile } struct A { _Complex double a; }; void foo (A **x, A **y) { A r; if (__real__ x[0]->a) { r.a = y[0]->a / x[0]->a; **x = r; } else **x = **y; }
google
android
pr50189
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr50189.C
2,386
utf_8
5c00c9b8fdccd7fc9f1cbaf152f74745
// { dg-do run } // { dg-options "-fstrict-enums" } extern "C" void abort (void); class CCUTILS_KeyedScalarLevelPosition { public: typedef enum { UNINITED = 0, AT_BEGIN = 1, AT_END = 2, AT_KEY = 3 } position_t; bool is_init() const { return(m_timestamp != UNINITED...
google
android
pr43880
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr43880.C
165
utf_8
0650ab33848f1eeedb9db8979d4c0b54
// { dg-do compile } extern void xread(void *); class test { public: test(void); }; test::test(void) { union { char pngpal[1]; }; xread(pngpal); }
google
android
pushpop_macro
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pushpop_macro.C
241
utf_8
d28910105d9c9253d94d70eacd5e19d4
/* Do the preprocessor push_macro/pop_macro test. */ /* { dg-do run } */ extern "C" void abort (); #define _ 2 #pragma push_macro("_") #undef _ #define _ 1 #pragma pop_macro("_") int main () { if (_ != 2) abort (); return 0; }
google
android
pr55355
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr55355.C
229
utf_8
d3a0f6dba851a15d2e1af60c71fda9fc
/* { dg-do compile } */ struct A { void funcA(void); }; struct B {}; struct C { void funcC(void) { a_mp->funcA(); } char buf_ma[268435456]; A *a_mp; B b_m; }; void func(C *c_p) { c_p->funcC(); }
google
android
covariant-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/covariant-1.C
395
utf_8
12bbc31ebdb5389852fb19dbc0efd9b4
// { dg-do run } extern "C" void abort (); class A { public: virtual A* getThis() { return this; } }; class B { int a; public: virtual B* getThis() { return this; } }; class AB : public A, public B { public: virtual AB* getThis() { return this; } }; int main () { AB ab; A* a = &ab; B* b = &ab; if (...
google
android
pr39713
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr39713.C
360
utf_8
d85efea6bf5e227cbfe01031a191490d
/* { dg-do compile } */ template <typename To, typename From> static inline To bitwise_cast (From from) { union { From f; To t; } u; u.f = from; return u.t; } extern void foo (unsigned char *); double bar () { unsigned char b[sizeof (unsigned long long)]; foo (b); return bitwise_cast<...
google
android
20100702-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/20100702-1.C
737
utf_8
0b2b85ac6dafb7049980d831651adb25
// { dg-do compile } // { dg-options "-fprefetch-loop-arrays -w" } class ggPoint3 { public: ggPoint3(); inline double &x() { return e[0]; } inline double &y() { return e[1]; } ggPoint3(const ggPoint3 &p); double e[3]; }; class ggBox3 { public: ggPoint3 min() const; }; class ggHAffineM...
google
android
pr49309
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr49309.C
254
utf_8
91c8b54e7f99f868e016c2f88ccad37a
// PR tree-optimization/49309 // { dg-do compile } // { dg-skip-if "" { *-*-* } { "-flto" } { "" } } // { dg-options "-fpreprocessed -fmudflap" } struct A { int i; A(); A(const A&); }; inline void foo(A a) { a = A(); } void bar() { foo(A()); }
google
android
pr44900
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr44900.C
1,776
utf_8
80fcfe9886663365f369187444388b20
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-msse" } */ /* { dg-require-effective-target sse_runtime } */ typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); typedef float __v4sf __attribute__ ((__vector_size__ (16))); extern __inline __m128 __attribute__((__gnu_inline_...
google
android
pr39417
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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
pr35164-2
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/torture/20121105-1.C
523
utf_8
1edf7d273bbdb1fa74b78d6a06d4e4af
// PR tree-optimization/54986 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 long d = (long)&c; B *const e = (B *)&d; static bool fn1(C&...
google
android
vshuf-v8hi
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/vshuf-v8hi.C
462
utf_8
32deb52456e2c877b19ce1b44739b3e1
// { dg-options "-std=c++11" } // { dg-do run } 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 0xb1b...
google
android
vshuf-v16hi
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/vshuf-v16hi.C
173
utf_8
4f88fd66c5f680e17def3498af9bc9b3
// { dg-options "-std=c++11" } // { dg-do run } 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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/torture/20070621-1.C
5,966
utf_8
e8a225540788d75a19a3cdf32929234b
/* 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 __attribute__ ((__visib...
google
android
predcom-1
.C
toolchain/gcc/gcc-4.8.3/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.8.3/gcc/testsuite/g++.dg/torture/pr56768.C
544
utf_8
f9035d95e3a4d25bf372dccc2aebea06
// { dg-do compile } // { dg-options "-std=c++0x" } 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_; }; namespa...
google
android
pr36745
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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
pr42183
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/torture/pr54684.C
1,977
utf_8
3ed736edc792ff4005124a066c047a6a
// { dg-do compile } 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<typename T> inline unsigned vec_t<T>...
google
android
pr51482
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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.8.3/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
pr47290
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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
pr49770
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr49770.C
1,456
utf_8
374781f86513ddd0daa15d78044d857a
/* { dg-do run } */ /* { dg-options "-std=c++0x -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.8.3/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
pr55875
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/torture/vshuf-v2sf.C
552
utf_8
81787a3832522c9a0c1aa1da82a1a407
// { dg-options "-std=c++11" } // // { dg-do run } #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 UNSUPPORT...
google
android
ipa-cp-1
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/torture/pr47559.C
129
utf_8
76848843bf5ed9a6d83a170499d76c64
// { dg-do compile } // { dg-options "-std=c++0x -fnon-call-exceptions" } void foo (int *k) noexcept { for (;;) *k = 0; }
google
android
pr35400
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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
pr59163
.C
toolchain/gcc/gcc-4.8.3/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.8.3/gcc/testsuite/g++.dg/torture/vshuf-v4di.C
473
utf_8
32a546fded2bc1b6e7d6d1107ba20166
// { dg-options "-std=c++11" } // { dg-do run } #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 0xc...
google
android
pr55260-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr55260-1.C
290
utf_8
53c65341ae2385c2ebc4b26fd454cc44
/* { dg-do compile } */ /* { dg-options "-std=gnu++0x -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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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
pr40102
.C
toolchain/gcc/gcc-4.8.3/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
pr45699
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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.8.3/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
pr45580
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/torture/vshuf-v16qi.C
172
utf_8
45bcce9950a47facd9ceddd480ab56bb
// { dg-options "-std=c++11" } // { dg-do run } 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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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()); }