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
koenig12
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/koenig12.C
305
utf_8
b4c9a3125082aac3aa6b866492a89640
// PR c++/41305 // We got into infinite recursion instantiating the B<U> series. template <class T> struct A { }; template <class T, class U = A<T> > struct B; template <class T> struct C { }; template <class T, class U> struct B: C<B<U> > { friend void f(B) { } }; B<int> b; int main() { f(b); }
google
android
const2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/const2.C
684
utf_8
4bcc868b38c719f7e50e39d9f302169b
// PR optimization/6631 // { dg-do run } // { dg-options "-O" } extern "C" void abort (void); struct QSize { QSize(); QSize( int w, int h ); int wd, ht; friend inline const QSize operator+( const QSize &, const QSize & ); }; inline QSize::QSize() { wd = ht = -1; } inline QSize::QSize( int w, int h ) { wd =...
google
android
vt1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/vt1.C
488
utf_8
15f047443ce553e32ffca3e343b6ff53
// Test whether vtable for S is not put into read-only section. // { dg-do compile { target fpic } } // { dg-options "-O2 -fpic -fno-rtti" } // { dg-skip-if "requires unsupported run-time relocation" { spu-*-* } { "*" } { "" } } // { dg-skip-if "No Windows PIC" { *-*-mingw* *-*-cygwin } { "*" } { "" } } struct S { vi...
google
android
pr62146
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr62146.C
876
utf_8
8aeb5ff713ad724762a1f8ee5d01ab93
/* PR rtl-optimization/62146 */ /* { dg-do compile } */ /* { dg-options "-O2 " } */ class F { public: virtual ~ F (); }; template < class CL > class G:public F { int *member_; public: G ( int *b): member_ (0) { } }; class D { public: template < class CL > void RegisterNonTagCallback (int, ...
google
android
return-slot1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/return-slot1.C
145
utf_8
a4e2bdb9174507bf70f14cd4c90d78d0
// { dg-do compile } // { dg-options "-O2" } struct A { A(); virtual A foo() const; }; void bar() { const A& a=A(); a.foo(); }
google
android
const5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/const5.C
436
utf_8
8acf967b641c44d3b713b18abd459981
// We don't have a good way of determining how ".rodata" is spelled on // all targets, so we limit this test to a few common targets where we // do know the spelling. // { dg-do compile { target i?86-*-linux* i?86-*-gnu* x86_64-*-linux* } } // { dg-final { scan-assembler "\\.rodata" } } template <typename T> struct B ...
google
android
builtins1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/builtins1.C
444
utf_8
15dd66151b129bfdbe9cd873521b3467
// PR c++/14791 // Test if builtins with FILE * arguments work // { dg-options "-O2 -Wformat" } typedef struct _FILE FILE; FILE *stderr; extern "C" int printf (__const char *__restrict, ...); extern "C" int fprintf (FILE *__restrict, __const char *__restrict, ...); int main () { printf ("%d\n", 1, 1); // { dg-warn...
google
android
vrp3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/vrp3.C
614
utf_8
e384e4ea7483339d564580401d2ca3ab
// PR tree-optimization/53239 // { dg-do run } // { dg-options "-O2" } // { dg-additional-sources "vrp3-aux.cc" } #include "vrp3.h" struct M { M (R m); R val; static int compare (M const &, M const &); }; inline M const & min (M const & t1, M const & t2) { return R::compare (t1.val, t2.val) < 0 ? t1 : t2; } ...
google
android
pr59622-5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr59622-5.C
302
utf_8
130c4a2591886c862b4521b479fc39c4
// PR tree-optimization/59622 // { dg-do compile } // { dg-options "-O2" } namespace { struct A { A () {} virtual A *bar (int); A *baz (int x) { return bar (x); } }; __attribute__((noreturn)) A *A::bar (int) { __builtin_exit (0); } } A *a; void foo () { a->baz (0); }
google
android
pr36185
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr36185.C
389
utf_8
e3e63ced4f57071fce511810c74aa7be
// PR rtl-optimization/36185 // { dg-do run } // { dg-options "-O2 -fgcse-sm" } struct Base { virtual ~Base() {} virtual void f() = 0; }; struct Derived : Base { Derived(); virtual void f() {} }; struct Foo { Foo(Base&); }; Derived::Derived() { Foo foo(*this); } Foo::Foo...
google
android
thunk3-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/thunk3-1.C
191
utf_8
755e2f574eb0074e3c8ebdeab001b832
// { dg-do compile } // { dg-options "-O1" } struct Foo { }; struct Bar { virtual ~Bar(); }; struct Baz: public virtual Bar { virtual void Func (Foo); }; void unused() { Baz().Func(Foo()); }
google
android
pr45412
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr45412.C
284
utf_8
6cc5ee8ac3179431ed53016627f5f5e8
// { dg-do compile } // { dg-options "-O2 -fipa-cp-clone -ftracer" } int foo (int *); void bar (); struct S { virtual int vm (); ~S (); }; int S::vm () { int state; switch (foo (&state)) { case 0: bar (); case 1: delete this; } return state; }
google
android
complex3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/complex3.C
338
utf_8
35877c00cc48159fa11634f3321a6100
// PR 22022 // { dg-do compile } // { dg-options "-O2" } _Complex float f(); _Complex float g(); _Complex float h()throw(); void i(float)throw(); float j(void) { _Complex float x = h(); try { try { x = f(); }catch (...) { x += g(); } }catch(...){} i(__builtin_crealf(x)+__buil...
google
android
copysign-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/copysign-1.C
252
utf_8
8a6577c2e8b91d69c2d55b8ed2488fc8
// { dg-options "-O2" } // { dg-do compile } // PR rtl-opt/27883 // MIPS used to ICE because local flow update // was not removing an invalid REG_DEAD. double copysign (double x, double y); double GetDouble(); double a = copysign (1.0, GetDouble());
google
android
pr17697-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr17697-1.C
452
utf_8
12d4b0003e16ec3f7d70dc927be21000
// PR tree-optimization/17697 // { dg-do run } // { dg-options "-O2" } extern "C" { extern int strcmp (const char *s, const char *t) throw () __attribute__ ((pure)); } namespace A { extern int strcmp (const char *s, const char *t); } inline int A::strcmp (const char *s, const char *t) { return ::strcmp (s,...
google
android
pr48967
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr48967.C
1,593
utf_8
55d9596493fd775b8cd9e4078dbff35d
// PR debug/48967 // { dg-do compile } // { dg-options "-g -O2" } template <typename> struct A; template <typename T> struct A <T *> { typedef T ref; }; template <typename T, typename> struct B { typedef A <T> t; typedef typename t::ref ref; ref operator * () { return ref (); } }; template <typename T> struct ...
google
android
pr59947
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr59947.C
537
utf_8
bc581baefa9c2cdf340c7afe5ec42620
// PR ipa/59947 // { dg-do compile { target c++11 } } // { dg-options "-O0" } #pragma GCC optimize ("O2") template <typename T> inline void foo (T & a) noexcept { T tmp = static_cast <T &&> (a); }; struct A { A () noexcept : a (1), b (1) {} virtual void c () noexcept = 0; void d () noexcept { c (); } int a; ...
google
android
reg-stack4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/reg-stack4.C
520
utf_8
db27c1fd21ac905678bdd2950b920236
// PR target/12900 // This used to fail on x86 because the reg-stack pass // deleted a valid edge. // { dg-do compile } // { dg-options "-mtune=i586 -O2" { target { { i?86-*-* x86_64-*-* } && ia32 } } } struct array { double data; virtual ~array(); }; double glob; double ext1(double); int nmuons; void track_match()...
google
android
unroll2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/unroll2.C
596
utf_8
b3a23f133e24d6239172db5b22fe6824
// PR tree-opt/28937 // Complete unroll forgot to update the statement usage // which meant we ICEd in add_virtual_operand. // { dg-do compile } // { dg-options "-O2" } class SHA256 { unsigned m_digest; unsigned long long m_count; unsigned char _buffer[64]; static void Transform (unsigned * data); void Wri...
google
android
inline12
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline12.C
293
utf_8
ade9d860b214762222f5c8cd67008323
// PR tree-optimization/33458 // { dg-do compile } // { dg-options "-O" } inline void foo (int *p, int n) { for (; n > 0; --n, ++p) *p = 0; } struct A { int x[2]; A () { foo (x, 2); } }; inline A getA () { return A (); } struct B { A a; B (); }; B::B () : a (getA ()) { }
google
android
pr36449
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr36449.C
668
utf_8
cf0bf4d4ab4024bd8b79002f9cfced1e
// PR middle-end/36449 // { dg-do run } // { dg-options "-O3" } extern "C" void exit (int); extern "C" void abort (); struct R { short a; short b; }; struct S { R e; long f; long g; }; struct T { short c; short d; }; struct U { long h[0x1ffffff + 1]; T i; }; U *j; void __attribute__((noinline))...
google
android
fold2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/fold2.C
263
utf_8
8bda53d5b874de63c6fb463b2e63a8f9
// PR optimization/14669 // { dg-do run } // { dg-options "-O2" } extern "C" void abort (void); extern "C" void exit (int); enum ActionType { EE=-1, E0=0, E1, E2 }; int main(void) { ActionType t = E0; if (E1 <= t && t <= E2) abort (); exit (0); }
google
android
pr59647
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr59647.C
475
utf_8
658809bc6695a7036a3aa07912cf983c
// PR rtl-optimization/59647 // { dg-do compile } // { dg-options "-O2 -fno-tree-vrp" } // { dg-additional-options "-msse2 -mfpmath=sse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } void f1 (int); void f2 (); double f3 (int); struct A { int f4 () const { if (a == 0) return 1; return 0; } uns...
google
android
pr59622-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr59622-2.C
229
utf_8
7e3c8b4c5812177dc3f34b3040f7a779
// PR tree-optimization/59622 // { dg-do compile } // { dg-options "-O2" } namespace { struct A { A () {} virtual A *bar (int) = 0; A *baz (int x) { return bar (x); } }; } A *a; void foo () { a->baz (0); }
google
android
pr47366
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr47366.C
263
utf_8
ce12e27bbb9344379eb93fb80a67ab97
// PR rtl-optimization/47366 // { dg-do compile } // { dg-options "-O -fnon-call-exceptions -fno-tree-ccp -fno-tree-forwprop" } struct A { int i; virtual ~A (); }; struct B : virtual A {}; struct C : B { void bar () {} }; void foo () { C ().bar (); }
google
android
crash1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/crash1.C
308
utf_8
2b8e568482a37c0e98a0154aa649f58b
// PR opt/13681 // Here we have an out-of-range array index. We should not abort // trying to resolve the indirection back to an object. struct X { double values[1]; double & foo (const unsigned int index) { return values[index]; } }; void foo() { double d; X h1; h1.foo(1) = d; }
google
android
pr61654
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr61654.C
273
utf_8
6cfd7f0d8649e554551af4ecdbfa227e
// PR middle-end/61654 // { dg-do compile } class A { virtual int a (int, int = 0) = 0; int b (const int &); int c; }; class B : virtual A { int d; int a (int, int); }; int A::b (const int &) { return a ('\0'); } int B::a (int, int) { return 0 ? 0 : d; }
google
android
mmx1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/mmx1.C
985
utf_8
7f1c978b1a5b6150f90040d9f4d954fb
// PR optimization/4994 // This testcase ICEd because movsi was not supporting direct // mmx -> mmx register moves. // { dg-do compile } // { dg-options "-O2" } // { dg-options "-fno-exceptions -O2 -mmmx -fPIC" { target { { i?86-*-* x86_64-*-* } && { ilp32 && fpic } } } } struct A { unsigned a0; bool a1 () { retur...
google
android
nrv8
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv8.C
399
utf_8
77ca072679abe601d84a3ad8e00d99d2
// PR optimization/19531 // forbids NRV on volatile return value. // { dg-options -O2 } // { dg-do run } extern "C" { void abort(); } struct A { int d; A () { d = 123; } A (const A & o) { d = o.d; } A (volatile const A & o) { d = o.d + 2; } }; A bar() { volatile A l; return...
google
android
pr7503-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr7503-1.C
1,550
utf_8
90bdbfd9313461944756a9e9f01ce788
// PR c++/7503 // { dg-do run } // { dg-options "-O2" } extern "C" void abort(); void test1a() { int A = 4; int B = 4; (A > B ? A : B) = 1; if (A != 4 || B != 1) abort (); } void test1b() { int A = 3; int B = 5; (A > B ? A : B) = 1; if (A != 3 || B != 1) abort (); } void test1c() { int A...
google
android
reload3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/reload3.C
843
utf_8
cc59a920019c5a1283b69a21d8bdd150
// PR target/38287 // { dg-do run } // { dg-options "-O2 -mcpu=v8 -fPIC" { target { { sparc*-*-* } && { ilp32 && fpic } } } } #include <cstdlib> class QTime { public: explicit QTime(int ms = 0) : ds(ms) {} static QTime currentTime() { return QTime(); } QTime addMSecs(int ms) const; int msecs() const {...
google
android
alias4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/alias4.C
674
utf_8
d1eee6f7ae11e9a1e85a05197e331926
// PR c++/27768 // Alias grouping was losing some may_aliases, causing us to think // the store to w.p was dead. // { dg-do run } // { dg-options "-O2" } int N = 1; struct VA { int *p, *q, *r; VA() : p(), q() {} VA(const VA&) : p(), q() {} ~VA() { if (p) --N; } }; inline void foo(VA, VA, VA) {} struct VB ...
google
android
pr19768
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr19768.C
468
utf_8
45d19dda46c647dc885d443b5fced384
// PR tree-opt/19768 // tree DSE was removing one store to LL.currentLevel // but forgot that since the vop was in an abnormal PHI // that we have to update the SSA_NAME which we propagate // into the abnormal PHI // { dg-do compile } // { dg-options "-O" } struct LeveLogger { int currentLevel; }; extern LeveLo...
google
android
array1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/array1.C
367
utf_8
f5855f61cbf9d400a44f276598a5db21
struct A; struct D { static A ary[]; }; extern A ary[]; void Foo (A const *); void Bar () { Foo (D::ary); Foo (::ary); }
google
android
const4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/const4.C
349
utf_8
6b2e1cf4863e58457238c73c49085813
// PR c++/21454 // Test whether A is put into .rodata section on platforms // that have it. // { dg-do compile } const int a[] __attribute__ ((__used__)) = { 0, 1, 2, 3 }; // The MMIX port always switches to the .data section at the end of a file. // { dg-final { scan-assembler-not "\\.data(?!\\.rel\\.ro)" { xfail po...
google
android
pr23714
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr23714.C
276
utf_8
a00726702d5f995d777b0a88498791ae
// { dg-do compile } // { dg-options "-O2 -fnon-call-exceptions" } void run (void) { float stack[1]; float *sp = stack; try { float value2 = ((float) *(--sp)); float value1 = ((float) *(--sp)); *(sp++) = (value1 - value2); } catch (int *ex) { } }
google
android
range-test-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/range-test-1.C
7,323
utf_8
e269c16ecf97c6c4ed676a410b5ddf4a
// Test fold-const.c (fold_range_test) optimizations. // { dg-do run } */ // { dg-options "-O2" } */ #ifndef __RANGE_TEST_HDR_INCL #define __RANGE_TEST_HDR_INCL /* Protect against fix-header weakness */ #include <stdlib.h> #include <stdio.h> #include <limits.h> #endif #if (INT_MAX == 2147483647) && (INT_MIN == -21474...
google
android
combine
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/combine.C
1,824
utf_8
4c5c1322525d537f6a720c477ae94f1d
// { dg-do assemble { target fpic } } // { dg-options "-O2 -fweb -fPIC -fvisibility=hidden" } // { dg-require-visibility "" } class QBasicAtomicInt { public: volatile int _q_value; inline operator int () const {return _q_value;} }; class QVariant; class QScriptContext; class QScriptEngine; class QScriptValue { pub...
google
android
pr23056
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr23056.C
139
utf_8
5b3e2f8cbfc0d9247561a93b1028c186
// PR c++/23056 // { dg-do compile } template <bool T> struct S { virtual ~S(); }; void foo () { static_cast<bool>("Foo"); } S<true> a;
google
android
complex1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/complex1.C
140
utf_8
36372e9d039276c581f0a32167271310
// PR tree-opt/21994 // { dg-do compile } // { dg-options "-O2" } _Complex float f(void); _Complex float g(void) throw() { return f(); }
google
android
bool1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/bool1.C
296
utf_8
2196be4aeda3f2fca55756098ae04451
// PR opt/13869 // { dg-do run } // { dg-options "-O2" } extern "C" void abort (); int test () { bool my_bool = true; for (int i = 0; i < 10; ++i) { if (!my_bool) ; else my_bool = false; }; return my_bool; } int main () { if (test ()) abort (); return 0; }
google
android
devirt5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/devirt5.C
521
utf_8
ec5d9f18fc8e4f5f3d400f893f659f25
// PR c++/61659 // { dg-options "-O3" } // { dg-final { scan-assembler-not "_ZN6parserIiE9getOptionEv" } } struct generic_parser_base { virtual void getOption(); void getExtraOptionNames() { getOption(); } }; template <class DataType> struct parser : public generic_parser_base { virtual void getOption() {} }; st...
google
android
complex2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/complex2.C
307
utf_8
816200fa31222cb98232ecde51a545be
// PR 22022 // { dg-do compile } // { dg-options "-O2" } _Complex float f(); _Complex float g(); _Complex float h()throw(); void i(_Complex float)throw(); void j(void) { _Complex float x = h(); try { try { x = f(); }catch (...) { x = g(); } }catch(...){} i(x); }
google
android
pr15054
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr15054.C
525
utf_8
ce93d5cdf106ea7731b61f4421ac7fd8
// PR middle-end/15054 // This used to abort due to overlapping stack temporaries. // { dg-do run } // { dg-options "-O" } extern "C" void abort (void); struct pointer { void* ptr; pointer(void* x = 0) : ptr(x) {} pointer(const pointer& x) : ptr(x.ptr) {} }; struct element { int canary; element() : cana...
google
android
cfg1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/cfg1.C
741
utf_8
0365760743a63e367398b52c1a1ac37e
// PR optimization/11083 // The compiler used to keep unreachable basic blocks after dead edges // had been purged, which fooled the LCM code of the GCSE pass. // { dg-do compile } // { dg-options "-O2 -fnon-call-exceptions" } extern void *memmove (void *, const void *, unsigned int) throw (); struct S { int *q; ...
google
android
static2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/static2.C
189
utf_8
8423b578cde01fb65b9fcfbfb4cf06cd
// PR 5571 // { dg-options "-O2" } template <class T> struct A {}; struct B { static A<int> a; void f() { a; } }; A<int> B::a = A<int>();
google
android
inline6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline6.C
237
utf_8
5c520267c44f9ad56a86ee13778463ba
// PR c++/13081 // { dg-options "-O2" } // { dg-final { scan-assembler-not "\n_?_Z3fooIlET_S0_\[: \t\n\]" } } template<typename T> T foo(T); template<typename T> inline T foo(T t) { return t; } void bar (long& l) { l = foo(l); }
google
android
memcpy1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/memcpy1.C
1,899
utf_8
c957a3148e195478447cb2ddaf3d122e
// PR target/34403 // { dg-do compile } // { dg-options "-O" } typedef unsigned char uint8_t; typedef uint8_t uint8; __extension__ typedef __SIZE_TYPE__ size_t; class csVector2 { public:float x; }; class csBox2 { }; struct iBase { }; struct iClipper2D:public virtual iBase { }; template < class Class > class scfImplemen...
google
android
value-init1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/value-init1.C
304
utf_8
c0e183747d99b3a1525638800b213d82
// PR c++/59659 // { dg-do compile { target c++11 } } // { dg-options "-fdump-tree-gimple" } // { dg-final { scan-tree-dump-times "i = 0" 0 "gimple" } } // { dg-final { cleanup-tree-dump "gimple" } } struct S { S () = default; S (int i); int i; }; struct A { S s[100]; }; void foo () { A a = {{}}; }
google
android
rtti1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/rtti1.C
265
utf_8
823775aaa479e3ad245323d4d8a2605c
// Test that typeid sees through references even when optimizing. // { dg-do run } // { dg-options "-O2" } #include <typeinfo> struct A { virtual ~A() { } }; class B : public A { }; int main () { B b; A &aref = b; return typeid (aref) != typeid (b); }
google
android
static5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/static5.C
319
utf_8
e6a6097b4d5bd61ae38897f3b753019c
// PR c++/31809 // { dg-do run } // { dg-options "-O2" } struct S { unsigned v; static inline S f (unsigned a); }; inline S S::f (unsigned a) { static S t = { a }; return t; } const static S s = S::f (26); extern "C" void abort (void); int main () { S t = s; if (t.v != 26) abort (); return 0; }
google
android
pr17724-3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr17724-3.C
417
utf_8
159caaf3ecf96a86d91ffdb2a401e612
// PR tree-optimization/17724 // { dg-do compile } // { dg-options "-O2" } extern "C" char *strcpy (char* d, const char* s) throw (); class A { public: A (); ~A (); }; inline char * B (char *s, const char *t) { return ::strcpy (s, t); } class C { int D (void); int E; }; int C::D (void) { A a; try { c...
google
android
dtor4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/dtor4.C
181
utf_8
901c1f4a3e8f81d1bc0f7a633ce9b6be
// PR tree-optimization/42625 // { dg-do run } // { dg-options "-O1 -fipa-sra" } // { dg-additional-sources "dtor4-aux.cc" } #include "dtor4.h" int main () { S s; return 0; }
google
android
expect2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/expect2.C
239
utf_8
e8a21bcc87a675b894f8d5ad9b5b0170
// PR c++/13392 // { dg-do compile } // { dg-options "-O0" } extern "C" void abort (void); struct X { ~X () throw() {} }; bool foo (X s = X ()) { return false; } void bar () { __builtin_expect (foo () && true, 1) ? 0 : (abort (), 0); }
google
android
delay-slot-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/delay-slot-1.C
2,281
utf_8
903860d0fe2a846a5f1ee14453b38348
/* { dg-do run } */ /* { dg-options "-O2" } */ template <class _Ret, class _Tp> class const_mem_fun_t { public: explicit const_mem_fun_t(_Ret (_Tp::*__pf)() const) : _M_f(__pf) {} _Ret operator()(const _Tp* __p) const { return (__p->*_M_f)(); } private: _Ret (_Tp::*_M_f)() const; }; template <class _...
google
android
expect1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/expect1.C
264
utf_8
a46d4940a485effb55a52f27a3660542
// PR c++/13239 // { dg-do run } // { dg-options "-O2" } extern "C" void abort (void); struct Y { int i; }; bool foo () { return true; } Y bar () { Y y = {0}; return y; } int main () { __builtin_expect (foo () && (bar ().i) == 0, 0) ? 0 : (abort (), 1); }
google
android
const1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/const1.C
2,491
utf_8
815190a461caeca9af90923572df6303
// This testcase was miscompiled on IA-64 to read from unitialized memory // and dereference it. // { dg-do run } // { dg-options "-O2" } struct A { A () { a = 1; } void a1 () { a++; } bool a2 () { return !--a; } unsigned int a; }; struct B {}; template <class T> struct C { C () {} C (const T& t) : c (t)...
google
android
const6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/const6.C
288
utf_8
77ef3f0315a1d75cc03361805c714b79
// PR target/39179 // Make sure that we don't optimize away the load from K::k. // { dg-options "-O2" } // { dg-final { scan-assembler _ZN1K1kE } } struct K { static const unsigned k; }; extern "C" void abort (void); int main() { if ( K::k != 1 ) abort (); return 1; }
google
android
flifetime-dse1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/flifetime-dse1.C
308
utf_8
b5b63cd3c6f555a0f702d932b247aceb
// { dg-options "-O3 -fno-lifetime-dse" } // { dg-do run } typedef __SIZE_TYPE__ size_t; inline void * operator new (size_t, void *p) { return p; } struct A { int i; A() {} ~A() {} }; int main() { int ar[1]; A* ap = new(ar) A; ap->i = 42; ap->~A(); if (ar[0] != 42) __builtin_abort(); }
google
android
pr52429
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr52429.C
319
utf_8
4c73770833082fb8aa90b72c33979b0b
// PR tree-optimization/52429 // { dg-do compile } // { dg-require-effective-target pthread } // { dg-options "-O -g -ftree-parallelize-loops=4" } struct B { B () : b (__null) {} int *b; }; void * operator new (__SIZE_TYPE__, void *p) { return p; } void foo (B *x, unsigned y) { while (y--) new (x) B; }
google
android
init1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/init1.C
68
utf_8
4624dde4c5fc4aac12f23da866696b9c
// PR c++/23171 // { dg-options "-O" } int *p = (int*)(int[1]){0};
google
android
pr60002
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr60002.C
202
utf_8
fcc0cbf12c3c1ff2231451798c2c5d37
// PR tree-optimization/60002 // { dg-do compile } // { dg-options "-O2 -fcompare-debug -fdeclone-ctor-dtor -fipa-cp-clone" } struct A {}; struct B : virtual A { B (); ~B (); }; B::~B () { B (); }
google
android
pr48302
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr48302.C
454
utf_8
1101ebad87bf56bcdd391b0643c94504
// { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } // { dg-options "-O -fcrossjumping -fgcse -fschedule-insns2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling2 --param lim-expensive=320 --param min-crossjump-insns=1" } struct S { int i, j; S *s; ~S(); }; S *gs; vo...
google
android
eh2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/eh2.C
358
utf_8
4bc90d9400a86fd4bca87067006586da
// PR 6764 // { dg-do run } // { dg-options "-O -fomit-frame-pointer" } extern "C" void abort (); class test { public: test * const me; test () : me(this) { } ~test () { if (me != this) abort (); } }; void x1 () { test w1; throw 1; } void x2 () { test w2; x1 (); } int main (void) { try { x2 ()...
google
android
pr55281
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr55281.C
328
utf_8
18dd1a114766366695a4ed34bf5f0741
// PR tree-optimization/55281 // { dg-do compile } // { dg-options "-Ofast" } typedef float VF __attribute__((vector_size (16))); VF x; void foo (void) { VF a, b, c; a = (VF) { 1.0, 2.0, 3.0, 4.0 }; b = (VF) { 5.0, 6.0, 7.0, 8.0 }; c = (VF) { 0.0, 0.0, 0.0, 0.0 }; x = c == ((VF) { 0.0, 0.0, 0.0, 0.0 }) ? a...
google
android
pr55329
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr55329.C
936
utf_8
5ceb3796e4e19b825a620ea053ac62ba
// PR tree-optimization/55329 // { dg-do compile } // { dg-options "-O -fno-guess-branch-probability -fnon-call-exceptions --param=early-inlining-insns=111" } void *f1 (); void f2 (void *); void f3 (); static inline void * f4 () { void *p = f1 (); if (!p) f3 (); return p; } struct A { int *a; A (); ~A...
google
android
pr58864
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr58864.C
311
utf_8
e12ba3a3e0fee8d465b2d12fd7262b42
// PR target/58864 // { dg-do compile } // { dg-options "-Os" } // { dg-additional-options "-march=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } } struct A { A (); ~A (); }; struct B { B (); }; float d, e; void foo () { A a; float c = d; while (1) { B b; e = c ? -c : 0; } }
google
android
inline16
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline16.C
322
utf_8
c36b321ffd275d0b9d28d12713461fdf
// PR c++/36959 // We shouldn't have to emit fromSlotB just because we need shuf_BZZZ. // { dg-options -O } // { dg-final { scan-assembler-not "_ZL9fromSlotBv" } } static inline int *fromSlotB(void) { static int shuf_BZZZ = 1; return &shuf_BZZZ; } int *p; int main(void) { p = fromSlotB(); return (*p != 1); }...
google
android
pr43655
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr43655.C
447
utf_8
8bc8beae0a0e34141223a7ef500c655b
// PR tree-optimization/43655 // { dg-do run } // { dg-options "-O0 -ftree-ter" } extern "C" void abort (); struct C { C (int i) : val(i) { } C (const C& c) : val(c.val) { } ~C (void) { val = 999; } C& operator = (const C& c) { val = c.val; return *this; } C& inc (int i) { val += i; return *this; } int va...
google
android
pr56381
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr56381.C
4,154
utf_8
a11366306b88724f9bb36fdef806b6bd
// PR tree-optimization/56381 // { dg-do compile { target c++11 } } // { dg-options "-O2 -w" } template <class> class intrusive_ptr {}; class BasicReferenceCounted { }; template <class T> class ReferenceCountingPointer : intrusive_ptr <T> { }; typedef BasicReferenceCounted ReferenceCountedInConditions; class PointTag;...
google
android
pr17697-3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr17697-3.C
394
utf_8
09e65527612dc3099d57c0849f92ed55
// PR tree-optimization/17697 // { dg-do run } // { dg-options "-O2" } extern "C" int strcmp (const char *s, const char *t); namespace A { extern int strcmp (const char *s, const char *t); } inline int A::strcmp (const char *s, const char *t) { return ::strcmp (s, t); } int foo (const char *x) { return A::str...
google
android
pr25005
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr25005.C
569
utf_8
ca5cdb74119d9bef0cb07e16f7c3c88e
// PR target/25005 // { dg-options "-O2 -funroll-loops" } // { dg-do compile } inline void *operator new (__SIZE_TYPE__, void *__p) throw() { return __p; } struct M { ~M() { } }; struct P { P () { v[0] = 0; v[1] = 0; v[2] = 0; } P (const P &x) { for (int i = 0; i < 3; ++i) v[i] = x.v[i]; } double v[3]; }; str...
google
android
pr42508
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr42508.C
410
utf_8
6d1e020d4984faabf203c22b44e746bb
// PR tree-optimization/42508 // { dg-do run } // { dg-options "-O1 -fipa-sra" } extern "C" void abort (); int v[10], vidx; struct A { A *prev; int i; ~A() { v[vidx++] = i; delete prev; } }; int main () { A *a1 = new A (); A *a2 = new A (); a1->prev = 0; a1->i = 1; a2->prev = a1; a2->i...
google
android
mmx2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/mmx2.C
410
utf_8
88e99b8c59ed29dc8cf42de21a90ef82
// { dg-do link { target i?86-*-* x86_64-*-* } } // { dg-options "-O2 -mmmx" } // { dg-prune-output "mangled name" } #include <mmintrin.h> static union u { __m64 m; long long l; } u; extern "C" void abort (void); __attribute__((noinline)) void bar (__m64 x) { u.m = x; } int main () { bar (_mm_set_pi32 (0x000000...
google
android
pr50682
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr50682.C
521
utf_8
c69c57a5d9d687532f578a7c62557a1e
// PR tree-optimization/50682 // { dg-do compile } // { dg-options "-O2 -fnon-call-exceptions -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce" } void foo () __attribute__ ((__noreturn__)); int baz (); const int & bar (const int &x, const int &y) { if (x >= y) return y; return x; } int a, b; struct ...
google
android
pr34036
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr34036.C
594
utf_8
948b9afc167841a68f26959f0d915ee0
/* { dg-do compile } */ /* { dg-options "-O2 -fnon-call-exceptions -ffast-math -fsignaling-nans" } */ /* { dg-warning "-fassociative-math disabled" "" { target *-*-* } 1 } */ template <class T> class ggStaticArray { public: ~ggStaticArray(); }; template <class T> class ggGrid { public: ggGrid() : grid() { } ggS...
google
android
pr18968
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr18968.C
178
utf_8
92af3809e34a8d30b737f310d7e57654
// { dg-do compile } // { dg-options "-O1" } struct X { int i; }; struct Y : virtual X {}; struct Z : Y {}; struct A { Z* p; A(); }; A::A() : p(0) { ((X*)(Y*)p)->i++; }
google
android
compound1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/compound1.C
168
utf_8
c4554b5d4200bad32c81fd1af4c0f3de
// PR c++/33709 // { dg-do compile } // { dg-options "-O2" } class S { virtual void foo (); }; struct T { S *s; void bar (unsigned x) { s = (new S[1]) - x; } };
google
android
pr6713
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr6713.C
2,423
utf_8
ac2356162f00cd5e8804482480f1795a
// PR optimization/6713 // This testcase segfaulted on x86 because a dangling REG_EQUAL note // resulted in incorrect substitutions later. // { dg-do run } // { dg-options "-O2" } template<typename _CharT> class basic_iterator { public: basic_iterator(_CharT* _p) : _M_current(_p) {} basic_iterator& operator+...
google
android
complex6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/complex6.C
201
utf_8
79a8ff3d5e28ed60376952929be393ed
// PR 30168 // { dg-do compile } // { dg-options "-O2" } struct aaa { aaa(_Complex float __z) ; _Complex float _M_value; }; aaa::aaa(_Complex float __z) { __z*=2.0f; _M_value = __z; }
google
android
pr26179
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr26179.C
308
utf_8
9590b7328fb217704747cb8432db6f9e
/* The problem here is that Load PRE on the tree level forgot to handle RETURN_DECL which causes us to ICE. */ // { dg-do compile } // { dg-options "-O2" } struct a { int i; }; void h(struct a&); void l(void); struct a g(void) { struct a fl; h(fl); if (fl.i) l(); fl.i+=2; return fl; }
google
android
inline17
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline17.C
1,094
utf_8
cfc81ef50ab578f9a0fd645a9c7b45b6
// PR tree-optimization/47420 // { dg-do compile } // { dg-options "-O2" } class fooControlBase { public: fooControlBase() { } virtual ~fooControlBase(); }; class fooControl : public fooControlBase { public: fooControl() { } }; class sfTextEntryBase { public: sfTextEntryBase() { } virtual ~sfTextEn...
google
android
pr47036
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr47036.C
188
utf_8
55bb73a0ae685dc41a9415afb5fbf157
// { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } // { dg-options "-fschedule-insns -fselective-scheduling -fno-dce" } void foo () { for (;;) for (;;({break;})); }
google
android
static1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/static1.C
307
utf_8
58e8dee52431dafad875b7e31ec97e9b
// PR c++/6073 // This testcase ICEd because finish_struct_bits changed // A's and const A's TYPE_MODE from QI to BLK, but did // not change a's DECL_MODE because its mode was not // TYPE_MAIN_VARIANT. struct A { static const A a; ~A (); }; void bar (A x); void foo (); void foo () { bar (A::a); }
google
android
cfg5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/cfg5.C
561
utf_8
034e3a731866a70219217679e6573190
/* { dg-do compile } */ /* { dg-options "-O2 -fnon-call-exceptions -ffast-math -fno-gcse" } */ class One { public: One () { e[0] = e[1] = 0.0; } double e[2]; }; template <class T> class Two { public: Two(); private: T *data; int arraySize; }; template <class T> Two<T>::Two() { data = new T[arrayS...
google
android
reg-stack3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/reg-stack3.C
373
utf_8
3150d3bfe22de91401bf7cbcd067207d
// PR target/12712 // This used to segfault on x86 because the reg-stack pass // created an unreachable basic block by purging an outgoing // edge, and was not prepared to handle it. // { dg-do compile } struct A { ~A(); float f(float x); float g() const {return 0;} }; void h() { A a, b; a.f(b.g() + 1); }
google
android
pr17411-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr17411-1.C
276
utf_8
e3aba5b07f3934dcb30e156cc679a866
// PR middle-end/17411 // { dg-do compile } // { dg-options "-O2" } struct CalibData { float mean_pedestal; }; struct pair { CalibData second; pair(const CalibData& __b) : second(__b) { } }; void insert(const pair& __x); void foo() { insert(pair(CalibData())); }
google
android
pr19317-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr19317-1.C
497
utf_8
5e33a2389f882989df646b348d9a2f85
// PR c++/19317 // { dg-options "-O2" } // { dg-do run } extern "C" void abort (void); struct A { A () { d = e = 0; f = -1; } A (int x) : d (0), e (0), f (x) { } A b (const A &r) const; int d; int e; int f; }; A A::b (const A & r) const { A t; t.f = f < r.f ? f : r.f; return t; } int main () { A a (...
google
android
nrv4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv4.C
406
utf_8
b2773b15109a2fc43572a97edf29b236
// PR optimization/7145 // Bug: The NRV optimization caused us to lose the initializer for 'ret'. // { dg-options -O } // { dg-do run } struct GdkColor { long pixel; short red; short green; short blue; }; inline GdkColor mkcolor() { GdkColor ret={0,1,2,3}; return ret; } int main() { GdkColor col=mkcol...
google
android
pr19317-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr19317-2.C
352
utf_8
0d1816a449bc871b905970e91070536b
// PR c++/19317 // { dg-options "-O2" } // { dg-do run } extern "C" void abort (void); struct A { A () { d = e = 0; f = -1; } A (int x) : d (0), e (0), f (x) { } A b () const; int d; int e; int f; }; A A::b () const { A t; t.f = 10 + this->f; return t; } int main () { A a (100); a = a.b (); ...
google
android
pr52727
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr52727.C
895
utf_8
97c9c7c1234b32b050ead5f35e62444a
// { dg-do compile } // { dg-options "-g -Os" } // { dg-additional-options "-march=i686" { target ia32 } } int grow (int); void fn (int); struct A { int a1, a2; }; template <typename T> struct B { A *b; ~B () { b3 (b); } void b1 (int); void b2 (int); void b3 (A *); }; struct C { int c1, c2, c3; bool c4; }; i...
google
android
20050511-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/20050511-1.C
1,134
utf_8
80450d00a25790eac61041efe3b30bc0
/* { dg-do run } */ /* { dg-options "-w" } */ /* { dg-options "-O3 -w" { target powerpc*-*-* } } */ #include <stdio.h> #include <stdlib.h> // The VxWorks kernel headers define their own UINT32 #if defined __vxworks && !defined __RTP__ #define UINT32 my_UINT32 #endif typedef signed short SINT16 ; typedef unsigned long...
google
android
covariant1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/covariant1.C
562
utf_8
fe3330f4dcc4be90e5790ce38f643df9
// PR c++/20206 // { dg-do run } // { dg-options "-O0" } void bar (int x) { asm ("" : : "g" (x)); } struct S { S () {}; virtual ~S () {}; }; struct T { virtual T *foo (int) {}; }; struct V : virtual S, virtual T {}; struct V v; struct U : public S, public T { bool a; U () {} virtual ~U () {} virtual V *foo ...
google
android
nrv14
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv14.C
460
utf_8
f527f51fa4c8b92a4d9374e96752d73a
// PR c++/32992 // { dg-do run } // { dg-options "-O2" } extern "C" void abort (void); struct A { long int a1; long int a2; long int a3; }; struct B { long int f[3]; operator A () { union { long int t[3]; A a; }; for (int i = 0; i < 3; i++) t[i] = f[i]; return a; }...
google
android
devirt4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/devirt4.C
283
utf_8
207e50e59cdb4ce8249ec5731fee1bc4
// PR lto/53808 // Devirtualization should not produce an external ref to ~bar. // { dg-options "-O2" } // { dg-final { scan-assembler-not "_ZN3barD0Ev" } } struct foo { virtual ~foo(); }; struct bar : public foo { virtual void zed(); }; void f() { foo *x(new bar); delete x; }
google
android
pr57411
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr57411.C
352
utf_8
11efe66e14d9aba903f11007f0f3a4e8
// { dg-do compile } // { dg-options "-O -fno-tree-dce -ftree-vectorize" } static inline void iota (int *__first, int *__last, int __value) { for (; __first != __last; ++__first) { *__first = __value; } } void assert_fail (); int A[] = { 0, 0, 0 }; void test01 (int equal) { iota (A, A + 3, 1); i...
google
android
cse3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/cse3.C
1,007
utf_8
110fc27204a84af6a62744d613b30944
// This testcase resulted in invalid code generation on x86_64 targets // due to a bug in fold_rtx. For a "true" value, fold_rtx represented it // as const_true_rtx in floating-point mode, if the FLOAT_STORE_FLAG_VALUE // macro is not defined. // { dg-do run } // { dg-options "-O1 -fno-guess-branch-probability -fcse-f...
google
android
array2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/array2.C
210
utf_8
004765f1bd46208118158a52b348e859
/* { dg-do compile } */ /* { dg-options "-O2" } */ struct JArray { int data[1]; }; void *copyIntoByteArray (struct JArray *dest, __SIZE_TYPE__ offset) { void *pdest = dest->data + offset; return pdest; }
google
android
interface1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/interface1.C
194
utf_8
574ab4f3f6a358775de8a350d81a7251
// { dg-do run } // { dg-options "-O2" } // { dg-additional-sources "interface1-a.cc" } #pragma implementation "interface1.h" #include "interface1.h" extern void g(); int main () { g(); }
google
android
ptrmem3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/ptrmem3.C
489
utf_8
d93fbf41edf6fc4e7f2bf3dcf3d66ef4
// { dg-options "-O1" } #include <stdio.h> struct A { A(int arg) : ia(arg) {} int x,y,z,ia; int mf(int arg) { return arg + ia; } }; int func(int A::*pdm, int (A::*pmf)(int)) // 2. regular function { A oa(2); return ((&oa)->*pdm) + (oa.*pmf)(2); } int main() { int val; ...