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
pr23454-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr23454-2.C
2,203
utf_8
baed609f35505fe831c1cfc4973e2331
/* { dg-do compile } */ /* { dg-options "-O3" } */ typedef unsigned long long int ulonglong; typedef long long int longlong; typedef unsigned int uint32; typedef unsigned int uint; typedef unsigned long int ulong; class Item { public: bool null_value; virtual longlong val_int()=0; }; typedef struct st_tree_element ...
google
android
inline14
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline14.C
912
utf_8
7c12c52511f9ae9beae48523e9c4fa71
// PR middle-end/34018 // { dg-do compile } // { dg-options "-O1" } template <typename E, unsigned long N> struct A { typedef E F; E elems[N]; A () {} E *begin () { return elems; } const E *begin () const { return elems; } explicit A (F const &v0, F const &v1, F const &v2) { elems[0] = v0; elems...
google
android
pr30590
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr30590.C
528
utf_8
547e4433462a6d07971ee26bc624a941
/* { dg-do run } */ /* { dg-options "-O" } */ struct test { int type; char buffer[4242]; /* should trigger pass-by-reference */ }; int flag = 0; struct test reset (void) { struct test retval; retval.type = 1; return retval; } struct test test (void) { struct test result; result.type = 0; for (int i ...
google
android
pr19317-3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr19317-3.C
439
utf_8
dc9b39b824c8dd9501f2669629835ca6
// PR c++/19317 // { dg-options "-O2" } // { dg-do run } extern "C" void abort (void); struct A { int c; int d; int e; int f; }; A foo (const A *x, const A *r) { A t; t.c = -1; t.c += x->c < r->c ? x->c : r->c; t.d = 0; t.e = 0; t.f = 0; return t; } int main () { A a; a.c = 10; a.d = 0; a.e = ...
google
android
pr50747-1_0
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr50747-1_0.C
241
utf_8
88b4499211074260de3b3abf0326e145
// { dg-do compile } // { dg-require-effective-target lto } // { dg-options "-flto" } void foo(); static void bar() __attribute__((weakref("foo"))); struct A { A(); }; int i; template <typename T, int&> struct B : T {}; B<A, i> b;
google
android
reload2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/reload2.C
544
utf_8
eea08af86e12b2945858317c96c4626e
// PR 10352 // { dg-do compile } // { dg-options -O2 } extern double fabs(double x); typedef struct { float x, y; } S; typedef struct _T T; extern void fT( T *p ); extern T *h(); extern S g( ); static int f(void) { T *t=0; int c=0; S s; const S exp_s = {0.,0.}; if(!(t = h())) { c++...
google
android
template1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/template1.C
391
utf_8
0146d1b3727676ef281dada91e18ba91
// { dg-options "-O2" } // { dg-final { scan-assembler-not "\n_?_ZN1AILi0EE4foo1Ev\[: \t\n\]" } } template <int> struct A { void foo1 () throw (); void foo2 (); void UNRELATED (); }; template <> void A<0>::UNRELATED (); template <int dim> inline void A<dim>::foo1 () throw () {} template <int dim> inline...
google
android
pr17724-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr17724-2.C
437
utf_8
a299f85d974b25dab25e2f0cd5ede318
// PR tree-optimization/17724 // { dg-do compile } // { dg-options "-O2" } namespace N { char *strcpy (char *, const char *); } extern "C" char *strcpy (char *, const char *); inline char *N::strcpy (char *s, const char *t) { return ::strcpy (s, t); } struct S { ~S (); }; int foo (); int main () { S s; int a; ...
google
android
temp1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/temp1.C
1,098
utf_8
b9c612d3d4289676abda6ba55bb98ae9
// PR c++/16405 // { dg-options "-O2" } // { dg-do run } // There should be exactly one temporary generated for the code in "f" // below when optimizing -- for the result of "b + c". We have no // easy way of checking that directly, so we count the number of calls // to "memcpy", which is used on (some?) targets to c...
google
android
fold3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/fold3.C
289
utf_8
d89445d9cb1f86fe29290ee87eb3d8df
// PR middle-end/15069 // { dg-do run } // { dg-options "-O2" } extern "C" void abort (void); typedef enum { FOUR = 4, FIVE = 5 } direction_t; int main () { direction_t four = FOUR; int flags = (four & 4L) ? (32L | 128L) : 0; flags &= 32L; if (flags == 0) abort (); }
google
android
pr47615
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr47615.C
15,443
utf_8
fd419d4d9d8080fd90184e5cdd9618a6
// { dg-do compile } // { dg-options "-O -fstrict-aliasing -ftree-pre -fno-tree-fre -fno-tree-sra" } typedef __SIZE_TYPE__ size_t; namespace std { template < class _T1, class > struct pair { _T1 first; }; } namespace __gnu_cxx { template < typename _Tp > class new_allocator { public: typedef size_...
google
android
pr20995-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr20995-1.C
118
utf_8
4acbed4cf8581a600838d225b2b0fc01
/* { dg-do compile } */ /* { dg-options "-O2" } */ template<int N> void foo() { double d = (N ? 0.0 : 0) + 1; }
google
android
pr48273
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr48273.C
214
utf_8
894403b72da11473d9fc258078ee68ec
// { dg-do compile { target x86_64-*-* } } // { dg-options "-fschedule-insns2 -fsel-sched-pipelining -fselective-scheduling2 -funroll-all-loops -march=core2" } void bar (); void foo () { for (;;) bar (); }
google
android
asm1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/asm1.C
275
utf_8
8ec7cd2bb0f2a747c58511cdba0677c9
// PR c++/6747 // { dg-do compile } // { dg-options "-O" } void foo() { union { double d; char c[sizeof(double)]; } tmp; __asm__ ("" : "=m" (tmp.d)); // { dg-bogus "not directly addressable" "double sized union element should be addressible" { xfail xstormy16-*-* } } }
google
android
inline1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline1.C
645
utf_8
ff5f8554e631ad4fefd7b89cfd16687b
// PR c++/6316 // This testcase ICEd because when deferred bar()::F::F() was being // expanded, containing bar() was still deferred and had DECL_EXTERNAL set // (and DECL_NOT_REALLY_EXTERN too). // { dg-do compile } // { dg-options "-O3" } struct A { ~A() throw() {} }; template<typename T, typename U> struct B { U a; ...
google
android
cleanup1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/cleanup1.C
3,006
utf_8
fb4da9867fcb6f2d50834331b8bd01b9
// PR middle-end/6247 // This testcase was miscompiled on IA-32 because a single stack slot // was used for 2 different variables at the same time. // The function H::h1 was miscompiled. // { dg-do run } // { dg-options "-O2" } extern "C" void abort (void); extern "C" void exit (int); struct A { A () { a = 1; } v...
google
android
pr16693-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr16693-1.C
502
utf_8
5464d960c9f938a5db5e2ec3cd1657fd
// PR middle-end/16693 // { dg-do run } // { dg-options "-O2" } extern "C" void abort(); unsigned short ret6666(int) { return 0x66; } typedef enum { a = 0x0, b = 0x1, c = 0x2, d = 0x3, e = 0x4, f = 0x5, g = 0x6, h = 0x7, i = 0x8, j = 0x9, k = 0xa, l = 0xb, m = 0xc, n = 0xd...
google
android
placeholder1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/placeholder1.C
160
utf_8
1b20239db4498d5cce85a900755fb433
// PR rtl-optimization/15159 // { dg-options "-O2" } struct S { S (); }; struct P { P (S *); }; void foo (const P &); void bar () { P p = new S; foo (p); }
google
android
pmf1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pmf1.C
2,974
utf_8
cf9e1c6c02a4aee1d10b86325166de66
// PR c++/37016 // { dg-do run } // { dg-options "-O2 -Wall" } /* Basic design concept is that WorldObject implements remote method call functionality using the "curiously recurring template pattern" to enable forwarding ...
google
android
nrv17
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv17.C
397
utf_8
3bf30be38f5aa46b2a1c3f22d55000d4
// { dg-do run } #include <cstdlib> #include <complex> void __attribute__((noinline)) h(std::complex<double> x) { if (x.real() != 2.0) std::abort (); } void __attribute__((noinline)) g(std::complex<double> x) { if (x.real() != 0.5) std::abort (); } void __attribute__((noinline)) f(std::complex<double> x...
google
android
pr44919
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr44919.C
12,734
utf_8
1ed877c670581a2f25c6aa50f70334d0
// { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } // { dg-options "-O3 -fselective-scheduling2" } namespace std { typedef long unsigned int size_t; template<typename _Tp> class new_allocator { public: typedef size_t size_type; typedef _Tp* pointer; }; template<typename _Tp> class allocator: public new...
google
android
tmp1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/tmp1.C
1,031
utf_8
240c5e869a8b5ad0a8bf6049a8d00862
// { dg-do run } // compound exprs were causing additional temporaries. extern "C" int printf (char const *, ...); extern "C" void abort (); static unsigned order[] = { 1, 2, 502, 102, 101, 0 }; static unsigned point; static void Check (unsigned t, unsigned i, void const *ptr, char const *name) { printf ("%d %d ...
google
android
pr20931
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr20931.C
359
utf_8
fbf4a598c8089049715d4d2af8e480b8
// PR middle-end // This testcase ICEd because fold checking saw a type change which // is allowed as TYPE_CONTAINS_PLACEHOLDER_INTERNAL could change. // { dg-do compile } // { dg-options "-O2" } int __finite (double __x) throw () { return (__extension__ (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1...
google
android
nrv15
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv15.C
1,144
utf_8
4ed264b192fadaa6f3076ca27b4fc086
// PR debug/39086 // { dg-options "-g -O -fno-tree-sra" } struct A { int v; }; A ax; struct B { static A f1 () { return ax; } static bool f2 (); static A f3 (); }; struct C { A f4 () { A x; if (__builtin_expect (this->f6 () < this->f12 (), true)) x = B::f1 (); else x = this->f7 (); ...
google
android
pr19650
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr19650.C
1,808
utf_8
83ecbfe56d850315a7054a26bc2ece9f
// { dg-options "-O1 -w -fpermissive" } // { dg-do run } // Tests the fold bug described in PR 19650. #include <stdio.h> #include <stdlib.h> #define test(a) ((a) ? 1 : 0) typedef int (*arg_cmp_func)(); class Item_func { public: enum Functype { UNKNOWN_FUNC, EQ_FUNC, EQUAL_FUNC }; virtual enum Functype functy...
google
android
switch1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/switch1.C
277
utf_8
5ed0d3826b9088598be9656c25162529
// { dg-options "-O1" } template <typename T> int f(T t) { switch (t) { case 1: return 5; case 2: return 6; case 3: return -4; case 4: return 8; case 5: return 12; case 6: return 13; default: return -27; } } template int f(int);
google
android
pr59622
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr59622.C
210
utf_8
a7e9290a66164d70cf71a687dc002b1d
// PR tree-optimization/59622 // { dg-do compile } // { dg-options "-O2" } namespace { struct A { virtual int foo (); int bar () { return foo (); } }; } int baz () { A a; return a.bar (); }
google
android
conj2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/conj2.C
448
utf_8
14ee709f09c311be02b0626ca4909c28
// PR target/6043 // This testcase ICEd on IA-64 because emit_group_store // did not handle loading CONCAT from register group // { dg-do compile } struct C { C (double y, double z) { __real__ x = y; __imag__ x = z; } double r () const { return __real__ x; } double i () const { return __imag__ x; } __complex__...
google
android
pr24665
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr24665.C
520
utf_8
be8e681aa55392ab8d418d91b64c3d0a
// { dg-do compile } // { dg-options "-O2" } typedef unsigned long T; typedef volatile T* const hwreg_t; struct RegisterLayout { T intmask; }; struct Controller_t { Controller_t(); inline void disableInterrupt() { *mpMaskRegister = 0; }; static hwreg_t mpMaskRegister; }; extern cha...
google
android
eh4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/eh4.C
928
utf_8
30ed6168995f605f504dbbdc5887b067
// { dg-do run } // { dg-options "-O3" } // Make sure that the call to terminate within F2 is not eliminated // by incorrect MUST_NOT_THROW optimization. Note that we expect F1 // to be inlined into F2 in order to expose this case. #include <cstdlib> #include <exception> static volatile int zero = 0; // Note that ...
google
android
pr49264
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr49264.C
233
utf_8
006fe1dab8c20fad4979207684513a7d
// PR c++/49264 // { dg-do compile } // { dg-options "-O2" } struct B { }; struct A { char a[sizeof (B) + 1]; } a; static inline void foo (const B &b) { __builtin_memcpy (&a, &b, sizeof (b)); } void bar () { B c; }
google
android
devirt2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/devirt2.C
1,694
utf_8
5e8c6b5bce6b24a326531fbbd7e2c68d
// { dg-do compile } // { dg-options "-O2 -fdevirtualize" } /* Using -mshort-calls avoids loading the function addresses in registers and thus getting the counts wrong. */ // { dg-additional-options "-mshort-calls" {target epiphany-*-*} } // Using -mno-abicalls avoids a R_MIPS_JALR .reloc. // { dg-additional-option...
google
android
ptrmem5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/ptrmem5.C
292
utf_8
84530a6d66888302453a1415559319c5
// PR tree-opt/18904 // { dg-do compile } // { dg-options "-O3" } struct Data; struct Wrapper { Data* D; }; struct Data { int X; void init(Wrapper&); }; void Data::init( Wrapper &w ) { int Data::* res = &Data::X; w.D = this; for( int i = 0; i < 4; i++ ) (w.D->*res) = 0; }
google
android
pr18683-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr18683-1.C
482
utf_8
b2ae3464686798e5eff26df852913eff
// PR middle-end/18683 // { dg-do compile } // { dg-options "-O0" } template<typename _CharT> struct basic_ostream { basic_ostream& operator<<(int __n); }; extern basic_ostream<char> cout; template<int> struct linear_congruential { template<class CharT> friend basic_ostream<CharT>& operator<<(basic_ostream<...
google
android
preinc1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/preinc1.C
608
utf_8
1451eba24eea82cbd0c1ab87885c0f77
// PR optimization/6086 // { dg-do run } // { dg-options "-O" } extern "C" void abort (void); struct A { A (int x, int y); int a, b; int foo () { return a; } int bar () { return b; } }; struct B { virtual ~B (); virtual A baz () const; }; struct C { A foo () const; B *c; }; A C::foo () const { i...
google
android
asm2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/asm2.C
154
utf_8
c9481d742a48253660d16743a6beecf9
/* PR inline-asm/15740 */ /* { dg-do compile } */ /* { dg-options "-O" } */ void foo(void) { int a, b; a = 1; b = a + 1; asm ("" : : "m" (a)); }
google
android
static6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/static6.C
425
utf_8
f8fa04e44f6fd70dc42a62899c9f64d6
// PR c++/31806 // { dg-do run } // { dg-options "-O2 -fno-inline -fno-threadsafe-statics" } extern "C" void abort(void); struct A { void *d; }; static const A& staticA() { static A s_static; return s_static; } void assert_failed() { abort(); } A testMethod() { static const A& s = staticA( ); ...
google
android
cse1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/cse1.C
268
utf_8
e98c78fcaf089947f989361b38fdf935
// PR optimization/6759 // This testcase ICEd on SPARC because folded REG_EQUAL // note was note stored back and fold_rtx left invalid rtx // in it. // { dg-do compile } // { dg-options "-O2" } struct A { long long a; A (unsigned short d) : a (d) {} } x (65535);
google
android
pr24780
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr24780.C
279
utf_8
80bd32221811a65643ddd8ba225d7d48
// PR c++/24780 // { dg-do compile } template<typename S=int> struct Move { Move(); static Move<S> const MOVES[2][2]; }; template<typename S> Move<S> const Move<S>::MOVES[2][2]={}; typedef Move<int> const MoveClass; void moves(int x, int y) { &MoveClass::MOVES[x][y]; }
google
android
pr57661
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr57661.C
1,118
utf_8
a973b4402a2cd2f18f263e0a4dba06e6
// PR tree-optimization/57661 // { dg-do compile { target c++11 } } // { dg-options "-O2 -fno-tree-forwprop" } template <typename> struct A { ~A () {} }; template <typename _Tp> using B = A <_Tp>; template <typename _Tp> class C : B <_Tp> {}; namespace N { enum D { d }; } template <class> struct E { ~E (); }; temp...
google
android
pr50747-2_0
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr50747-2_0.C
5,498
utf_8
0f6fbe05e12cef1e61aed1b9e1b75538
// { dg-do compile } // { dg-require-effective-target lto } // { dg-options "-w -fpermissive -fno-implicit-templates -flto" } namespace std { typedef long unsigned int size_t; template<typename _Alloc> class allocator; template<class _CharT> struct char_traits; template<typename _CharT, typenam...
google
android
init2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/init2.C
115
utf_8
c38d4267a5dc18af5254f21903b0176e
// PR middle-end/37414 // { dg-do compile } // { dg-options "-O2 -ffast-math" } double x = 6.0; double y = x * x;
google
android
pr51895
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr51895.C
277
utf_8
afaf8cb3f2a7b78fa9ceff10e9135773
// PR middle-end/51895 // { dg-do compile } // { dg-options "-O2" } struct S { long a; char b; S () : a (0), b (0) {} bool baz (); }; __attribute__((noinline)) static bool bar (S x, S y) { y = x; return y.baz (); } bool foo (S x) { S y; return bar (x, y); }
google
android
alias2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/alias2.C
1,056
utf_8
15bcb0db43b0a7c6f0b1a4ff014da35d
// { dg-do run } // { dg-options "-O2" } extern "C" int printf (const char*, ...); struct _Deque_iterator { int _M_cur; int x[2]; int* _M_node; _Deque_iterator() : _M_cur(0), _M_node(0) {} _Deque_iterator(const _Deque_iterator& __x) : _M_cur(__x._M_cur), _M_node(__x._M_node) {} }; class _Deque_b...
google
android
stack2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/stack2.C
601
utf_8
397b0ee96b240fd68f4c0aade2337049
// PR c++/51060 // { dg-options "-Os -Wframe-larger-than=2000 -Werror" } // Shows a problem of not re-using stack space: // Compile as: g++ -c test_stack_reuse.cpp -o /dev/null -Wframe-larger-than=2048 -Werror -Os // Result: warning: the frame size of 10240 bytes is larger than 2048 bytes [-Wframe-larger-than=] // st...
google
android
pr47355
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr47355.C
348
utf_8
f3354bc934b81b5fc93ff5fd02c9dc9a
// PR tree-optimization/47355 // { dg-do compile } // { dg-options "-O -fipa-cp -fipa-cp-clone" } struct T { T (); void *p; ~T (); }; void foo (T *i); T *bar (); void baz (T *); struct V { long q; T *r; ~V () { while (q) { foo (r); ++r; --q; } baz (r); } }; void foo () { V ...
google
android
vt3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/vt3.C
482
utf_8
52fff29b07362fe5d23c4905a7595e39
// PR c++/34949 // { dg-do compile } // { dg-options "-O3" } struct E {}; struct A { virtual void a (void *) = 0; }; struct B { virtual ~B () {}; unsigned int b1; E **b2; A *b3; }; struct C : public B { ~C (); }; C::~C () { for (unsigned int i = 0; i < b1; i++) b3->a (b2); } struct D { ~D () {} C...
google
android
pr17724-4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr17724-4.C
408
utf_8
a756ddc55da373498280cb4569b36df4
// PR tree-optimization/17724 // { dg-do compile } // { dg-options "-O2" } extern "C" char *strcpy (char* d, const char* s); 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 { char z[22]...
google
android
ptrmem4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/ptrmem4.C
222
utf_8
487df22214708e120d70825e74769ba6
// { dg-do compile } // { dg-options "-O3" } struct X { void foo (); }; template <typename> inline void spawn (void (X::*fun_ptr)()) {} void bar () { void (X::*const comp)() = &X::foo; spawn<int> (comp); }
google
android
thunk1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/thunk1.C
446
utf_8
423a720c5d6fa9172e277e0cd1c91f34
// PR 6788 // Test that the thunk adjusts the this pointer properly. // { dg-do run } extern "C" void abort (); struct A { virtual void foo() = 0; char large[33*1024]; }; struct B { virtual void foo() = 0; }; struct C : public A, public B { virtual void foo(); }; static C *match; void C::foo() { if (thi...
google
android
pr16372-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr16372-1.C
267
utf_8
9d59acc2f3b8629051cb020f4bf9a8c6
// PR tree-optimization/16372 // { dg-do run } // { dg-options "-O1" } extern "C" void abort(); enum number {ZERO, ONE, TWO, THREE, FOUR, FIVE}; int main() { number n = FIVE; if((n == ONE) || (n == TWO) || (n == THREE)) { abort (); } return 0; }
google
android
reg-stack
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/reg-stack.C
635
utf_8
8c97bd5e5c1c0f5ce05a0c69a6e6df27
// PR target/6087 // The code that moves around insns emitted by reg-stack to cope with // exception edges lost the REG_DEAD note indicating a pop. Which // eventually fills up the register stack resulting in Z == NaN. // { dg-do run } // { dg-options "-O" } extern "C" void abort (); struct Base { virtual ~Base()...
google
android
pr23299
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr23299.C
572
utf_8
8649f7896552ca6fbd94cc9825bd264c
// PR rtl-optimization/23299 // { dg-do run } // { dg-options "-Os" } extern "C" void abort (); struct A { virtual int a () {} }; struct B : public A { virtual int b () {} }; struct C : public A { virtual int c () {} }; struct D { D () { d = 64; } ~D (); int d; }; int x; D::~D () { x |= 1; if (d != 6...
google
android
pr39607
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr39607.C
1,299
utf_8
8fad458588ec31543de9506cdbd39461
// PR rtl-optimization/39607 // { dg-do compile } // { dg-options "-O2" } void abcErrorMessage(int error); enum AbcSurfType { SURF_U, SURF_V }; class AbcVec2d { public: double x; double y; }; class AbcIval1d { protected: double m_dMin; double m_dMax; public: AbcIval1d(); AbcIval1d(doubl...
google
android
enum1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/enum1.C
420
utf_8
58fd998dee334068d9109db8a6d68eee
// Verify that we don't confuse precision and mode for enums. // { dg-do run } // { dg-options "-O" } extern "C" void abort(); enum E { zero = 0, test = 0xbb }; static bool foo(unsigned char *x) { E e = static_cast<E>(*x); switch (e) { case test: return true; default: return false; ...
google
android
nrv12
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv12.C
499
utf_8
81198ce290e8e24ba664217e348fb872
/* Verify that gimple-level NRV is occurring even for RESULT_DECLs. */ /* { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ /* { dg-options "-O -fdump-tree-optimized" } */ struct P { long long l; int a; unsigned int b; P(long long x) : l(x) {} }; P foo (P); P bar (P); P foo (P x) { P y =...
google
android
pr17697-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr17697-2.C
470
utf_8
c6fc5ae31465965239c674790c73d6fb
// 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) throw (); } inline int A::strcmp (const char *s, const char *t) throw () { r...
google
android
nrv9
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv9.C
359
utf_8
572452f9faebdba95cc03bfba39f6879
// PR c++/19317 // If we do both NRV and caller-side return slot opt for ga = f() // constructing la sets ga.i to 0 too soon. extern "C" void abort(); struct A { int i; int pad[32]; // force return in memory A(): i(0) {} A(int ia): i(ia) {} }; A ga(42); A f() { A la; if (ga.i != 42) abort(); ret...
google
android
pr58165
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr58165.C
181
utf_8
1cadcb34706f8ce0f09e6fdea8d1e401
// PR tree-optimization/58165 // { dg-do compile } // { dg-options "-O2" } extern "C" float sqrtf (float); struct A { A (); ~A (); }; void foo (double d) { A a; sqrtf (d); }
google
android
pr27826
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr27826.C
203
utf_8
f29c0bb6b9b69984ecfcac1439154146
/* { dg-do compile } */ /* { dg-options "-O3" } */ struct Geometry { int type:16; }; struct Geometry get() {}; int f() { struct Geometry test; return get().type == test.type; }
google
android
inline15
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline15.C
615
utf_8
94c2ba91c95ed4edb0b97cb3f10be68f
// PR tree-optimization/40813 // { dg-do compile } // { dg-options "-O -fcheck-new" } typedef __SIZE_TYPE__ size_t; typedef void *P; struct A; struct B { void *b[5]; A *foo () { return (A *) & b[0]; } }; struct A { void *operator new (size_t x, B &y) { return y.foo (); } }; struct C : public A { virtual int ba...
google
android
vrp2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/vrp2.C
411
utf_8
c4f8b2aee6bbe8bb7c04aa1a20ed7b46
/* { dg-do run } */ /* { dg-options "-O2" } */ /* VRP was miscompiling the following as it thought &a->b was a dereference and therfore a was non-null. extern "C" void abort (void); struct T { int i; } t; struct A : T { int j; } *p = __null; int main (void) { if (p == &t) return 0; if (p) abort (); r...
google
android
pr59622-3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr59622-3.C
233
utf_8
7f405bffb41cc1dbad1bc9deccd0944e
// PR tree-optimization/59622 // { dg-do compile } // { dg-options "-O2" } struct C { int a; int b; }; namespace { struct A { virtual C foo (); C bar () { return foo (); } }; } C baz () { A a; return a.bar (); }
google
android
thunk3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/thunk3.C
568
utf_8
f869a43935cc3631852fcb3f8e68ecfd
// PR c++/39106 // { dg-do compile } // { dg-options "-O2" } extern "C" void abort (); struct A { A (bool x = true); }; class B { virtual bool bar (A &, int) const =0; }; class C : virtual public B { }; struct D : virtual public B { bool bar (A &, int) const; }; template <int N> struct E : public D { bool bar...
google
android
devirt1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/devirt1.C
212
utf_8
8018b160f15d45282821d6478a7e497d
// { dg-do compile } // { dg-options "-O2 -fdevirtualize" } // { dg-final { scan-assembler "xyzzy" } } struct S { S(); virtual void xyzzy(); }; inline void foo(S *s) { s->xyzzy(); } void bar() { S s; foo(&s); }
google
android
pr55331
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr55331.C
227
utf_8
eb316460089208481c6b3e5a0c34a90a
// PR tree-optimization/55331 // { dg-do compile } // { dg-options "-O2 -fno-tree-fre" } struct A {}; void foo (A *p, bool x) { A a; char *e = (char *) (&a + 1); if (x) __builtin_memmove (p, &a, e - (char *) &a); }
google
android
nrv16
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv16.C
120
utf_8
e94377182a1dedb230f53db874897364
// PR c++/44808 // { dg-do compile } struct S { void *a, *b; int c; }; S foo () { S x; S y = x; return x; }
google
android
ifcvt1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/ifcvt1.C
237
utf_8
89db632d35bc828ff4165ebbf333e9d4
// { dg-do compile } // { dg-options "-O2 -fnon-call-exceptions" } struct S { ~S () throw () {} }; double bar (); int foo () { S a; int i = 0; double c = bar (); c = c < 0 ? -c : c; if (c <= 1.e-8) i += 24; return i; }
google
android
pr60912
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr60912.C
199
utf_8
2ca5ee004fc73e412a39de0dd38e1b4c
// { dg-do run } // { dg-options "-O -fno-inline -fipa-pta" } struct IFoo { virtual void Foo () = 0; }; struct Bar:IFoo { void Foo () {} }; int main () { (new Bar ())->Foo (); return 0; }
google
android
thunk2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/thunk2.C
504
utf_8
178df7a1f97e8581d95b76bda27dc33d
// PR c++/20206 // { dg-do run } // { dg-options "-O0" } void bar (int x) { asm ("" : : "g" (x)); } struct S { S () {}; virtual ~S () {}; }; struct T { virtual void foo (int) = 0; }; struct U : public S, public T { bool a; U () {} virtual ~U () {} virtual void foo (int x) { switch (x) { ca...
google
android
float1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/float1.C
421
utf_8
d48bf743fe7cd2670b77dd76e8fc1714
// PR optimization/11637 // This used to fail to assemble on x86 because a decimal // floating point litteral was emitted, which originated // from a bogus REG_EQUAL note not removed by the combiner. // { dg-do assemble } // { dg-options "-O2 -fnon-call-exceptions" } void f(long int seed); void g(float &o) { float a ...
google
android
pr18084-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr18084-1.C
472
utf_8
8ebdd0e826546bdb2f9be82a0c9a3631
// { dg-do run } // { dg-options "-O3" } extern "C" void abort (void); struct X { bool init; void foo() { if (!init) init = true; } void bar() { foo(); } }; typedef unsigned long long int uint64_t; uint64_t mask1, mask2; uint64_t calc() { return mask1 & mask2; } int main() { mask1...
google
android
pr14888
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr14888.C
365
utf_8
8fb7e68e9e9b5eb02628e03f5333e645
// PR target/14888 // This used to ICE because the truncdfsf2 isn't completely eliminated // { dg-do compile } // { dg-options "-O2 -ffast-math" } class xcomplex { public: float re, im; xcomplex &operator*= (const float &fact) { re*=fact; im*=fact; return *this; } }; void foo (xcomplex &almT, xcomplex &almG) ...
google
android
thunk4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/thunk4.C
1,313
utf_8
2abee99752ddcdc2d689d23397d7046e
// { dg-do compile } // { dg-options "-O1" } namespace std __attribute__ ((__visibility__ ("default"))) { template < class _CharT > struct char_traits; } namespace std __attribute__ ((__visibility__ ("default"))) { template < typename _CharT, typename _Traits = char_traits < _CharT > >class basic_iostream; } e...
google
android
rtti2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/rtti2.C
314
utf_8
86f37428153f2503110eee8bbb401a58
// { dg-do compile } // { dg-options "-O2" } // We used to ICE in compare_values as the types for a comparison // were not the same kind of types. struct class1 { virtual ~class1 (); }; struct class2 : class1 { }; void f(class1 * oo) { class2 * oj = dynamic_cast <class2 *>(oo) ; if (oj) delete oo; }
google
android
ptrmem2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/ptrmem2.C
211
utf_8
5997c28e492c14900c6ecc330ea33744
typedef unsigned int Mword; struct Thread { Mword sys_ipc_log(); void hook_ipc_vector(); unsigned (Thread::*syscall_table)(); }; void Thread::hook_ipc_vector() { syscall_table = &Thread::sys_ipc_log; }
google
android
pr51396
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr51396.C
385
utf_8
1e056a81356c2f6b3cb2e30bab85ef79
// PR tree-optimization/51396 // { dg-do compile } // { dg-options "-O2 -fnon-call-exceptions" } // { dg-additional-options "-mfma" { target i?86-*-* x86_64-*-* } } double baz (double) throw (); struct C { C (double d = 0.0) : c (d) {} double c; }; static inline void foo (double x, const C &y) { x ? (y.c * baz...
google
android
crossjump1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/crossjump1.C
549
utf_8
ac103794722418c1c77100ecd74c066e
// PR middle-end/21492 // { dg-do compile } // { dg-options "-Os" } // { dg-options "-Os -fPIC" { target fpic } } extern char *bar (const char *, const char *); extern char *baz (char *, const char *); extern unsigned int fn (const char *); static const struct C { int i; } k = { 0}; struct A { ~A (); }; char * foo...
google
android
pr59622-4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr59622-4.C
260
utf_8
878454118fba11e9dda7e32a22fa8058
// PR tree-optimization/59622 // { dg-do compile } // { dg-options "-O2" } struct C { int a; int b; }; namespace { struct A { A () {} virtual C bar (int) = 0; C baz (int x) { return bar (x); } }; } A *a; C foo () { return a->baz (0); }
google
android
stack1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/stack1.C
2,937
utf_8
64cddd41580d4c444ced76036ddd036a
// PR optimization/11198 // The compiler used to allocate the same stack slot for two aggregates, // overlooking that assignments to members given the same address on the // stack may not alias and thus may be reordered by the scheduling passes. // { dg-do run } // { dg-options "-O2 -frename-registers" } double zero_; ...
google
android
nrv13
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nrv13.C
731
utf_8
64f9c4b7ac5155de7756890af79b38cb
// PR tree-optimization/32353 // { dg-do run } // { dg-options "-O2" } extern "C" void abort (); struct A { int f; A (int x) : f (x) {} }; A foo (const A &x, const A &y) { A r (0); r = x.f == -111 ? y : (y.f == -111 || x.f > y.f) ? x : y; A s (0); r = r.f == -111 ? s : (r.f > s.f) ? r : s; return r; } ...
google
android
fold1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/fold1.C
233
utf_8
65e3fab7de933a99f4b5f52a982ea8d1
// PR middle-end/13696 // { dg-do compile } // { dg-options "-O2" } extern void x(unsigned long*); enum e { red, blue, green }; struct s { unsigned long l; }; struct s map[1][256]; void f(int i,e j) { x(&(map[i][j].l)); }
google
android
operator1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/operator1.C
347
utf_8
5778a352c750259fe850421e364893fa
// Tests whether g++ can handle large number of operators // { dg-do compile } #define OP0(n) struct I##n { int i; }; operator I##n (); #define OP1(n) OP0(n) #define OP2(n) OP1(n##0) OP1(n##1) OP1(n##2) OP1(n##3) OP1(n##4) #define OP3(n) OP2(n##0) OP2(n##1) OP2(n##2) OP2(n##3) OP2(n##4) struct S { OP3(0) OP3(1) OP3(...
google
android
pr48272
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr48272.C
2,974
utf_8
16fdb00e82f91a3d2db5392bf143a395
// { dg-do compile } // { dg-options "-O3 -ftracer -fsched-pressure -Wno-unused-parameter -Wno-return-type" } extern "C" { namespace std { class exception { virtual const char *what () const throw (); }; } } namespace std __attribute__ ((__visibility__ ("default"))) { template < typename _All...
google
android
pr22167
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr22167.C
525
utf_8
395e10896a3d5235a8f3f2b9d6ad4cc7
// Derived from PR22167, which failed on some RISC targets. The call to // foo() has two successors, one normal and one exceptional, and both // successors use &a[0] and x. Expressions involving &a[0] can be hoisted // before the call but those involving x cannot. // { dg-options "-Os" } // { dg-do run } int a[4]; ...
google
android
pr36187
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr36187.C
878
utf_8
9462fd9d3dbf2f96d18c423969b0a4f2
/* { dg-do run } */ /* { dg-options "-O2" } */ extern "C" void abort (void); enum SbxDataType { SbxINTEGER, SbxDECIMAL, SbxBYREF = 0x4000 }; struct SbxValues { union { float nSingle; float* pSingle; }; SbxDataType eType; }; static bool ImpPutDoubleFoo( SbxValues* p) { bool bRet = false; SbxValues...
google
android
pr42295
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr42295.C
306
utf_8
5932b660e4368861f26ec5f7e1c980d4
// { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-options "-O1 -fschedule-insns -fselective-scheduling" } extern int f (...); int testsum (void *a, int k, int n) { int i, j; f (n / 2); for (i = 0; i < n; i += 8) for (j = 0; j < n; j += 8) while (k < n) k += 8; return k; }
google
android
pr51596
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr51596.C
434
utf_8
f247fac4d92c7c6737ad28e1c1990a9e
// PR tree-optimization/51596 // { dg-do compile } // { dg-options "-O -fnon-call-exceptions" } struct A { float v[2]; }; struct B { int v[2]; }; struct C { B c; C f () { B b; for (int i = 0; i < 2; i++) b.v[i] = c.v[i]; return *this; } }; struct D { A d; D (B x) { for (int i = 0;...
google
android
vt2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/vt2.C
260
utf_8
dd3ea979ea6a569776fd230af289e026
// PR c++/34949 // { dg-options "-O3" } // { dg-final { scan-assembler-not "mov\[^\n\]*_ZTV" { target i?86-*-* x86_64-*-* } } } class Foo { public: virtual ~Foo(); }; Foo::~Foo() { } class Bar : public Foo { public: virtual ~Bar(); }; Bar::~Bar() { }
google
android
cfg4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/cfg4.C
730
utf_8
2bb81d8b4e035fe5f91ce41ef3284779
// PR optimization/13067 // This used to fail on the tree-ssa because of "out-of-ssa" // We might have a valid variable, but not a valid value when trying to find // useless statements created by out-of-ssa translation. In this case // val will be set to null, then later dereferenced. Bad. // { dg-do compile } // {...
google
android
nothrow1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/nothrow1.C
434
utf_8
50e5944dd7f93a4f4ec66fa768db7684
// Test that the nothrow optimization works properly. // { dg-do compile } // { dg-options "-O -fdump-tree-optimized" } extern void blah() throw(); int i, j, k; int main() { try { ++i; blah(); ++j; } catch (...) { return -42; } } // The catch block should be optimized awa...
google
android
call1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/call1.C
209
utf_8
def63acb8ef99a4c443fc492c744024e
// { dg-options "-O2" } void a (void (*f)()) { f(); } struct RunState { static void runcallback() { } static void wait() { a (runcallback); } }; int main() { RunState::wait(); return 0; }
google
android
range-test-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/range-test-2.C
1,797
utf_8
19ded3e2a50942bf9bcc2f1fc4413e35
// Test fold-const.c (fold_range_test) optimizations. // { dg-do run } */ // { dg-options "-O2" } */ #include <stdlib.h> #include <stdio.h> #include <limits.h> #if (INT_MAX == 2147483647) && (INT_MIN == -2147483648) \ && (SCHAR_MIN == -128) && (SCHAR_MAX == 127) \ && (UCHAR_MIN == 0) && (UCHAR_MAX == 255) #i...
google
android
anchor1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/anchor1.C
1,048
utf_8
76a1ade7c3b02a35300f798365e098d3
// { dg-do run } // { dg-options "-O2" } // The size of the construction vtable for YFont in YCoreFont was not // updated to reflect its actual size. On targets with section anchor // support, the vtable for YCoreFont was laid out immediately after // that, but the compiler thought it was about 40 bytes closer to the...
google
android
dump1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/dump1.C
25,005
utf_8
08f6aa20da1aa303c1ef57cc3917d256
// PR c++/57102 // { dg-options "-O2 -fno-inline -fdump-final-insns" } // { dg-do compile { target c++11 } } // { dg-final cleanup-saved-temps } namespace std { typedef __SIZE_TYPE__ size_t; typedef __PTRDIFF_TYPE__ ptrdiff_t; } extern "C++" { void* operator new(std::size_t, void* __p) noexcept; } namespace std ...
google
android
inline2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline2.C
152
utf_8
bdb061ce93c83db85373f2347c9ecdf0
// { dg-do link } // { dg-options "-O1 -finline-functions" } static void g (); void f() { void g(); g(); } void g() { } int main () { f (); }
google
android
temp2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/temp2.C
966
utf_8
3a03380a215b8d907bcfc208d09d5204
// { dg-do run } // Originally from PR 16681, found also in init/array15.C // This variant of the testcase verifies that we do not create // a temporary on the stack, which is PR 27620. int i; extern "C" void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n) { char *d = (char *) dest; const char *s = (const ch...
google
android
inline7
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/inline7.C
238
utf_8
b7cb98f473e1920797490085dbf7bb94
// PR c++/13543 // { dg-do compile } // { dg-options "-O3" } struct basic_string { basic_string(const basic_string&); }; basic_string operator+(const basic_string& lhs, char); void dumpNode(basic_string start) { dumpNode(start + 'a'); }
google
android
pr51014
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr51014.C
211
utf_8
3ddad86dbaaac431a314d011f1c5f1be
// PR rtl-optimization/51014 // { dg-do compile } // { dg-options "-O2 -funroll-loops -fcompare-debug" } struct S { ~S() { delete s; } int *s; }; void f (S *x, S *y) { for (; x != y; ++x) x->~S(); }
google
android
pr17724-5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/pr17724-5.C
413
utf_8
cffbcf404312fe67a6054e66e6bb6ace
// PR tree-optimization/17724 // { dg-do compile } // { dg-options "-O2" } extern 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 { char ...