plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
chromium
debug8
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/debug8.C
35
utf_8
f3e5e740f9e7210ccece705c6d548267
struct t{}; struct g : public t{};
google
chromium
using3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/using3.C
81
utf_8
e3e47848d7edc7d04e996db8969c01c0
// PR debug/31899 namespace NS { int x = 0; int &ref = x; } using NS::ref;
google
chromium
vartrack1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/vartrack1.C
1,379
utf_8
9ddce3a837af3a01b33e86ac89b2a282
// This testcase used to hang the compiler in vt_find_locations. // { dg-do compile } // { dg-options "-O2 -g" } struct S { int a; S *b, *c, *d; }; struct T { void f1 (S *x); void f2 (S *x); void f3 (S *x, S *y); S *e; }; void T::f3 (S *x, S *y) { while (x != this->e && (!x || x->a == 1)) { i...
google
chromium
debug6
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/debug6.C
55
utf_8
aae7d3d75005a60ab912ae1b3feefdd9
// { dg-do compile } void foo() { int i=1, x[i]; }
google
chromium
typedef2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/typedef2.C
116
utf_8
798848d35df1829cb7c468058c887871
// PR c++/17695 template<typename T> struct A { T t; A(); }; struct B { B() { typedef int C; A<C> a; } } b;
google
chromium
minimal1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/minimal1.C
138
utf_8
475a95279bcd0b4ccd6e118ead65e106
// PR debug/6387 // Verify that -g1 works with local class member functions. void foo(); void bar() { struct A { A() { foo(); } } a; }
google
chromium
pr30898
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/pr30898.C
103
utf_8
bf050d057433140d0ed2aeeab122c5be
// { dg-do compile } double foo() { union { int i; double d; }; i = 0; return d; }
google
chromium
pr22514
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/pr22514.C
281
utf_8
df49cf40347d14b2036b2c9b04d64a6f
/* { dg-do compile } */ namespace s { template <int> struct _List_base { int _M_impl; }; template<int i> struct list : _List_base<i> { using _List_base<i>::_M_impl; } } /* { dg-error "expected unqualified-id before '\}'" } */ s::list<1> OutputModuleListType;
google
chromium
const3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/const3.C
140
utf_8
7d21ffa2ab4a579692d45c2c52190a0d
/* { dg-do compile } */ typedef float FloatVect __attribute__((__vector_size__(16))); const FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0 };
google
chromium
using2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/using2.C
173
utf_8
06ba44c6640fe57a83e614bcb293ca4d
// PR c++/22489 namespace N { } struct T { T () { } }; void bar () { struct U : public T { void baz () { using namespace N; } } u; u.baz(); }
google
chromium
pr27657
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/pr27657.C
96
utf_8
a9cf363ccde67638eed4148103577d18
/* { dg-do link } */ const char s[] = ""; const char *const p = s; int main() { return 0; }
google
chromium
pr34895
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/pr34895.C
375
utf_8
1b42af04a1371351292650a3fd822c78
// { dg-do compile } // { dg-options "-O2 -g" } // struct A { A() { } unsigned operator()() { return 1; } }; struct B: public A { typedef const A base; using base::operator(); B() { } }; int main() { B b; }
google
chromium
const1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/const1.C
245
utf_8
e4aee91d21a8cdbd286094f893319c70
// PR c++/6381 // Bug: we were emitting the initializer for bar, which referenced foo, // which was not emitted. // { dg-options "-O" } // { dg-do link } static const int foo[] = { 0 }; static const int * const bar[] = { foo }; int main() {}
google
chromium
dwarf2-2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2-2.C
174
utf_8
a11c6bcd4c8cdca98697be5126edd6c1
// PR debug/27057 // { dg-do compile } // { dg-options "-g -feliminate-dwarf2-dups" } namespace N { } struct A { void foo (); }; void A::foo () { using namespace N; }
google
chromium
debug7
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/debug7.C
242
utf_8
7981ed7658c588372c1da7bb75ab3d00
// { dg-do compile } void f (int); int main() { int a = 4; int b = 5; int (*x)[b] = new int[a][b]; // { dg-error "" } x[2][1] = 7; for (int i = 0; i < a; ++i) for (int j = 0; j < b; ++j) f (x[i][j]); delete [] x; }
google
chromium
typedef3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/typedef3.C
158
utf_8
de7626032b99ed0b36b4dc7fb3f18f9d
// PR debug/16261 // { dg-do compile } namespace N { struct A {}; typedef A B; } void foo() { struct C { C(N::B) {} }; N::B b; C c(b); }
google
chromium
debug5
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/debug5.C
114
utf_8
d8a635e6af7e5d8a716c4330769d87a8
// { dg-do compile } int foo() { int a = 1; int b = 1; int e[a][b]; e[0][0] = 0; return e[a-1][b-1]; }
google
chromium
debug4
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/debug4.C
526
utf_8
aaa5bddbbd1e77e4f951cd3e1e37f5f5
/* PR debug/5770 This testcase failed at -O -g because the following constants were optimized away since they were never referenced, but since they are variables with initializers, rtl_for_decl_location run expand_expr on their initializers and returned it. This lead to references to constants which were...
google
chromium
debug9
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/debug9.C
333
utf_8
21cf4d633ed522aaeda6d51af07ab604
/* { dg-do assemble } */ /* This testcase requires entries in the debug_range section in DWARF which refer to a vague linkage function. */ struct s { ~s (); }; bool f1 (); s f2 (s); template<int x> void f3(const s & a) { while (f1 () && f1 ()) { s c = f2(a); } } int main() { f3<0>(s ()); ...
google
chromium
template1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/template1.C
150
utf_8
7e13d86d33b17cfb7cdf61b7b8cca961
// PR c++/5118 template <int Count> class d { public: d() { myInt = Count; } int myInt; virtual ~d() {} }; volatile d<5> instD;
google
chromium
namespace1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/namespace1.C
2,767
utf_8
8d1c97a9b811ba8c9a789baf97c48ce4
/* Test DWARF namespace support. This test case is based on GDB testsuite test case. */ /* { dg-do compile } */ namespace AAA { char c; int i; int A_xyzq (int); char xyzq (char); class inA { public: int xx; int fum (int); }; }; int AAA::inA::fum (int i) { return 10 + i; } namespace BBB {...
google
chromium
trivial
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/trivial.C
52
utf_8
f50cc26d9a41a3cc4afb62032326372f
/* { dg-do run } */ int main(void) { return 0; }
google
chromium
pr16792
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/pr16792.C
117
utf_8
ee0ec04c39cca9bd75fd40da91daaab0
// { dg-do compile } struct S { S(); }; int foo (S b, double j) { }; int main () { int foo (S, double); S v; }
google
chromium
crash1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/crash1.C
164
utf_8
36f088b22dca6ab78668e7d505839fbd
template <typename T> class foo { T t; }; class bar; typedef foo<bar> foobar; class obj { virtual foobar* yeah() = 0; }; class bar : virtual public obj { };
google
chromium
typedef1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/typedef1.C
168
utf_8
863c8434199f0ac4d3a2d8d915bd5d1a
// PR debug/6436 // { dg-do compile } typedef struct { unsigned int a0, a1; } A __attribute__ ((aligned(8))); typedef struct { A a; } B; struct C { B *bp; };
google
chromium
using1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/using1.C
125
utf_8
261cdcb5a7c5cf143b8af9beb8258ebc
// PR c++/19406 // { dg-do compile } struct A { virtual int foo(); double d; }; struct B : public A { A::d; }; B b;
google
chromium
const4
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/const4.C
54
utf_8
b196cb4af4d539f545ae961b8905ba24
/* { dg-do compile } */ const __complex__ int x = 2i;
google
chromium
namespace2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/namespace2.C
86
utf_8
98d1fa8a42200722f612a8f915bb9673
// PR debug/36278 // { dg-do compile } namespace N { typedef void T; } using N::T;
google
chromium
debug2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/debug2.C
767
utf_8
cece96666e504d9287aaadf8a4855138
/* Verify that sched re-inserts needed scopes properly. */ /* { dg-do compile } */ /* { dg-options "-mcpu=ev5" { target alpha*-*-* } } */ template <class T> inline void foo() { void (T::*x)() __attribute__ ((__unused__)) = &T::bar; } template <class T> struct D { void bar() { } T i; }; template <class T> st...
google
chromium
static-local-var-in-ctor
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/static-local-var-in-ctor.C
546
utf_8
4dd763a2da3747b0fe66e264c50f0b1a
// PR debug/39372 // { dg-do compile } // { dg-options "-O0 -g -dA" } // { dg-final { scan-assembler "DW_OP_addr\[^\n\r\]*\[\n\r\]*\[^\n\r\]*staticvar1" } } // { dg-final { scan-assembler "DW_OP_addr\[^\n\r\]*\[\n\r\]*\[^\n\r\]*staticvar2" } } extern void f (int *); struct A { A(int i); void foo(int i); }; A::A(...
google
chromium
pubnames-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
505
utf_8
5d1ecf7b69c952a27766558b612beac6
// Origin PR debug/39706 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler-times ".debug_pubnames" 1 } } // { dg-final { scan-assembler-times "\"main\".*external name" 1 } } // { dg-final { scan-assembler-times "\"ns::ns_x.*external name" 1 } } // { dg-final { scan-assembler-times "\"y::y_x...
google
chromium
const2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/const2.C
279
utf_8
e70f88144abfc6a69a1241301a9b5e68
/* { dg-do compile { target powerpc_altivec_ok } } */ /* { dg-options "-O -gdwarf-2 -dA -maltivec" } */ /* { dg-final { scan-assembler "DW_AT_const_value" } } */ typedef float FloatVect __attribute__((__vector_size__(16))); const FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0 };
google
chromium
const2b
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/const2b.C
266
utf_8
45f49e130f4058bb515ffb8e4099d40e
/* { dg-do compile { target i386*-*-* } } */ /* { dg-options "-O -gdwarf-2 -dA -msse" } */ /* { dg-final { scan-assembler "DW_AT_const_value" } } */ typedef float FloatVect __attribute__((__vector_size__(16))); const FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0 };
google
chromium
imported-module-2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-2.C
262
utf_8
f58bd4092f55525e858e74234f98f1d3
// Origin: PR debug/38390 // { dg-do compile } // { dg-options "-g -dA" } // { dg-final { scan-assembler "DW_TAG_imported_module" } } namespace A { int v; } int f () { using namespace A; return v; }
google
chromium
fesd-baseonly
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/fesd-baseonly.C
7,771
utf_8
a26a24dcac8fa1d56d36002c9551d274
// { dg-do compile } // { dg-options "-gdwarf-2 -dA -femit-struct-debug-baseonly" } // { dg-final { scan-assembler "timespec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_sec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_nsec.*DW_AT_name" } } // { dg-final { scan-assembler "itimerspec.*DW_AT_name" }...
google
chromium
imported-module-4
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-4.C
243
utf_8
27dc215b1c0da59878d4d0ad71856d4f
// PR debug/39379 // { dg-do compile } // { dg-options "-g -dA" } // { dg-final { scan-assembler "DW_TAG_imported_module" } } namespace A { int v; } int f () { int i; { using namespace A; v++; i = v - 1; } return i; }
google
chromium
global-used-types-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/global-used-types-1.C
499
utf_8
b899bb3263f62cdedb9ac1f07a21fb7f
// { dg-options "-g -dA -fno-merge-debug-strings" } // { dg-do compile } // { dg-final { scan-assembler-times "DIE \\(0x.*?\\) DW_TAG_enumeration_type" 1 } } // { dg-final { scan-assembler-times "DIE \\(0x.*?\\) DW_TAG_enumerator" 2 } } // { dg-final { scan-assembler-times "ascii \"a.0\"\[\t \]+.*?DW_AT_name" 1 } } // ...
google
chromium
fesd-none
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/fesd-none.C
7,908
utf_8
2678b035f308ef99812f9d651da706a4
// { dg-do compile } // { dg-options "-gdwarf-2 -dA -femit-struct-debug-detailed=none" } // { dg-final { scan-assembler "timespec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_sec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_nsec.*DW_AT_name" } } // { dg-final { scan-assembler "itimerspec.*DW_AT_na...
google
chromium
nested-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/nested-1.C
595
utf_8
a805a39dd25f75a8d917e6036732df72
// Origin PR debug/40109 // { dg-do compile } // { dg-options "-g -dA -O0" } namespace A { class B { }; typedef A::B AB; }; int main() { A::AB ab; return 0; } // { dg-final { scan-assembler "DW_TAG_typedef" } } // // What we want to do here is to be sure that the DIE of A::AB is generated // as a child of ...
google
chromium
imported-decl-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/imported-decl-1.C
262
utf_8
94ab24c4c92e0025c8c21c00e7088ab9
// PR debug/39524 // { dg-do compile } // { dg-options "-gdwarf-2 -dA -O0 -fno-merge-debug-strings" } namespace A { static int var2 = 2; } int func () { using A::var2; return var2; } // { dg-final { scan-assembler-times "var2\[^\n\r\]*DW_AT_name" 1 } }
google
chromium
fesd-any
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/fesd-any.C
7,627
utf_8
2853ac7b025c77719bcb8d67c97d88d0
// { dg-do compile } // { dg-options "-gdwarf-2 -dA -femit-struct-debug-detailed=any" } // { dg-final { scan-assembler "timespec.*DW_AT_name" } } // { dg-final { scan-assembler "tv_sec.*DW_AT_name" } } // { dg-final { scan-assembler "tv_nsec.*DW_AT_name" } } // { dg-final { scan-assembler "itimerspec.*DW_AT_name" } } /...
google
chromium
const1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/const1.C
166
utf_8
151f7421a1ad0956296abb84d05dca7d
/* { dg-do compile } */ /* { dg-options "-O -gdwarf-2 -dA" } */ /* { dg-final { scan-assembler "DW_AT_const_value" } } */ extern void x (); void (* const f) () = x;
google
chromium
imported-module
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/imported-module.C
411
utf_8
93bfc5990594c4c0244151f6fdc98bc7
// Origin: PR debug/37410 // { dg-do compile } namespace A1 { int aaa = 1; }; namespace A2 { int aaa = 2; }; int foo (void) { int x; { int block_create; using namespace A1; block_create = aaa; /* break1 */ } { int block_create; using namespace A2; block_create = aaa; /* b...
google
chromium
imported-module-3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-3.C
214
utf_8
82a4be36e2c22edb65751c2f29a2ec73
// PR debug/39379 // { dg-do compile } // { dg-options "-g -dA" } // { dg-final { scan-assembler "DW_TAG_imported_module" } } namespace A { int v; } int main () { using namespace A; v++; return v - 1; }
google
chromium
fesd-sys
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/fesd-sys.C
7,739
utf_8
2c7aeb6da0718e753892e00c3c8dd6e6
// { dg-do compile } // { dg-options "-gdwarf-2 -dA -femit-struct-debug-detailed=sys" } // { dg-final { scan-assembler "timespec.*DW_AT_name" } } // { dg-final { scan-assembler "tv_sec.*DW_AT_name" } } // { dg-final { scan-assembler "tv_nsec.*DW_AT_name" } } // { dg-final { scan-assembler "itimerspec.*DW_AT_name" } } /...
google
chromium
typedef1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C
853
utf_8
cb595d5f076e7eb10a497d05a83c469a
// Origin: PR c++/40705 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler-times "DW_TAG_structure_type" 2 } } // { dg-final { scan-assembler-times "DW_AT_name: \"foo<1u>\"" 1 } } // { dg-final { scan-assembler-times "DW_TAG_enumeration_type" 2 } } // { dg-final { scan-assembler-times "DW_AT...
google
chromium
localclass2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/localclass2.C
2,328
utf_8
e630666f783fe49a55b1e7fca6a3fa9d
// PR c++/27017 // { dg-do compile } // { dg-options "-gdwarf-2 -dA -O2 -feliminate-unused-debug-types -fno-merge-debug-strings" } int foo (int arg1) { struct localstruct1 { static inline int staticfn1 (int arg2) { int var2 = arg2 << 2; return arg2 + var2; } static int staticfn2 (int ar...
google
chromium
local-var-in-contructor
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/local-var-in-contructor.C
321
utf_8
237e50ca0346c070ed29dd1d894fc812
// Origin PR27574 // { dg-do compile } // { dg-options "-O0 -g" } // { dg-final { scan-assembler "problem" } } void f (int *) { } class A { public: A(int i); }; A::A(int i) { int *problem = new int(i); f (problem); } int main (void) { A a (0); return 0; }
google
chromium
localclass1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C
2,324
utf_8
9e5623c9c708f6f0753f773b5dc7a354
// PR c++/27017 // { dg-do compile } // { dg-options "-gdwarf-2 -dA -feliminate-unused-debug-types -fno-merge-debug-strings" } int foo (int arg1) { struct localstruct1 { static inline int staticfn1 (int arg2) { int var2 = arg2 << 2; return arg2 + var2; } static int staticfn2 (int arg3) ...
google
chromium
fesd-reduced
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/fesd-reduced.C
7,698
utf_8
732bd4537e65d67adf1952e9052bb367
// { dg-do compile } // { dg-options "-gdwarf-2 -dA -femit-struct-debug-reduced" } // { dg-final { scan-assembler "timespec.*DW_AT_name" } } // { dg-final { scan-assembler "tv_sec.*DW_AT_name" } } // { dg-final { scan-assembler "tv_nsec.*DW_AT_name" } } // { dg-final { scan-assembler "itimerspec.*DW_AT_name" } } // { d...
google
chromium
crossjump1
.C
native_client/nacl-gcc/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
chromium
reg-stack2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/reg-stack2.C
628
utf_8
424e403345e23e621b477afd23b875db
// PR target/9786 // This used to fail on x86 because the reg-stack pass deleted // an insn that could seemingly trap (but actually doesn't) // without updating the CFG. // { dg-do compile } // { dg-options "-O2 -fnon-call-exceptions" } struct D1 { float l; D1 GS() const {D1 d;float f=.299*l;d.l=f;return d;} ...
google
chromium
switch3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/switch3.C
207
utf_8
0cc8575163405751cafdeec02c836cfb
// PR c++/20023 // { dg-do compile } // { dg-options "-O2" } void f (void); typedef __SIZE_TYPE__ size_t; void g (void *a) { size_t b = (size_t) a; switch (b) { case 1: f (); break; } }
google
chromium
pr30965
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/pr30965.C
666
utf_8
5621d54beee341e4bc37e8a64e555420
/* { dg-do compile } */ /* { dg-options "-O3 -fdump-tree-optimized" } */ #include <tr1/functional> #include <algorithm> extern void assign( long* variable, long v ) { std::transform( variable, variable + 1, variable, std::tr1::bind( std::plus< long >(), 0L, v ) ); } extern void assign( long& v...
google
chromium
array1
.C
native_client/nacl-gcc/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
chromium
copysign-1
.C
native_client/nacl-gcc/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
chromium
thunk3
.C
native_client/nacl-gcc/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
chromium
inline15
.C
native_client/nacl-gcc/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
chromium
cfg2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/cfg2.C
671
utf_8
2db7ebcb2c45714978fcb3cadb7cb570
// PR optimization/12215 // This used to fail because the CSE pass destroyed the CFG in presence // of trapping loads, which led to the deletion of basic blocks. // { dg-do compile } // { dg-options "-O2 -fno-gcse -fnon-call-exceptions" } struct B { ~B() throw() {} }; struct X { X(const char*, const B&); ~X() {} ...
google
chromium
nrv3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/nrv3.C
241
utf_8
42adcc800d5d2029a2b831e1453e8f32
// PR optimization/6189 // Bug: we forgot about foo's nrv after writing it out. // { dg-options -O3 } // { dg-do run } struct A { int i; }; A foo () { A a; a.i = 42; return a; } int main() { A b = foo(); return b.i != 42; }
google
chromium
delay-slot-1
.C
native_client/nacl-gcc/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
chromium
pr17724-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/pr17724-1.C
446
utf_8
299566d461676c146df9f785903f6f2d
// PR tree-optimization/17724 // { dg-do compile } // { dg-options "-O2" } namespace N { char *strcpy (char *, const char *); } extern "C" char *strcpy (char *, const char *) throw (); inline char *N::strcpy (char *s, const char *t) { return ::strcpy (s, t); } struct S { ~S (); }; int foo (); int main () { S s; ...
google
chromium
complex4
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/complex4.C
270
utf_8
8a5a897536e97520b29744f3237bd4fd
// PR 24362 // { dg-do compile } // { dg-options "-O2" } typedef __complex__ double cdouble; cdouble elt_zero(); const cdouble *pointer(); cdouble trace(void) { cdouble output = elt_zero(); const cdouble *data = pointer(); output += data[1]; return output; }
google
chromium
static4
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/static4.C
299
utf_8
da113259afc60dbf3dd7e421650ce386
// PR 13898 // Make sure the two X variables get assigned unique assembler names // if they are promoted to static storage. // { dg-do compile } int g(int i) { if (i<1) { const int x[3] = { 1,2,3 }; return x[i]; } else { const int x[3] = { 4,5,6 }; return x[i]; } }
google
chromium
inline14
.C
native_client/nacl-gcc/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
chromium
inline9
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/inline9.C
557
utf_8
81fd12ae62e7eba58e19fe1f834aaea9
// PR c++/17972 // { dg-do run } // { dg-options "-O" } // { dg-options "-O -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } struct thread_info { short preempt_count; } x; static inline struct thread_info *cti (void) __attribute__ ((const)); static inline struct thread_info *cti (void) { return &x; } ...
google
chromium
unroll1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/unroll1.C
8,750
utf_8
5a0d1f452801f903b71f360e2af9dab9
// PR optimization/12340 // This used to segfault on x86 because the loop optimizer wrongly // interpreted a double assignment to a biv as a double increment, // which subsequently fooled the unroller. // { dg-do run } // { dg-options "-O2 -fno-exceptions -funroll-loops" } typedef __SIZE_TYPE__ size_t; inline void* ope...
google
chromium
cfg1
.C
native_client/nacl-gcc/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
chromium
pr13066-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/pr13066-1.C
226
utf_8
2896f5b1a96dd9fabb1dbb65cb4c5921
/* { dg-do compile } */ /* { dg-options "-O2" } */ class nsIURI; struct nsCOMPtr { operator nsIURI*() const { return mRawPtr; } nsIURI *mRawPtr; }; void func() { nsCOMPtr u1; if (!u1 == !u1) return; }
google
chromium
interface1
.C
native_client/nacl-gcc/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
chromium
anonunion1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/anonunion1.C
433
utf_8
a20397e7aec19ce67e72ee637a08a416
// PR c++/5748 // This testcase ICEd because used flag from the anon union variables // was not propagated back to the anon union itself, causing addressof // not to be replaced with stack slot. // { dg-do compile } // { dg-options "-O2" } struct A { A (); ~A (); int foo (); int bar (void *x, int y); }; int A...
google
chromium
return-slot1
.C
native_client/nacl-gcc/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
chromium
pr16372-1
.C
native_client/nacl-gcc/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
chromium
reload1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/reload1.C
449
utf_8
25e9962e240d8c8ed05cecb4820f38d3
// PR 7944 // { dg-do compile } // { dg-options -O2 } struct B { B & operator << (short s) { int j; if (j) return operator << (s); else return operator << (s); } }; struct A { int i; static void bar (); static int quux () { bar (); return 0; } A ():i (quux ()) ...
google
chromium
noreturn-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/noreturn-1.C
2,150
utf_8
aae564cdd9b50225ee28c64cfe203a3b
// PR optimization/12965 // This ICEd on Alpha because the reload pass emitted save/restore // insns around a no-return call. // { dg-do compile } // { dg-options "-O2" } template <typename _Alloc> class allocator; template <class _CharT> struct char_traits; template <typename _CharT, typename _Traits = char_traits<...
google
chromium
pr36449
.C
native_client/nacl-gcc/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
chromium
bool1
.C
native_client/nacl-gcc/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
chromium
cfg3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/cfg3.C
1,189
utf_8
edb10b502f24cdcc3e2d6bd03834f453
// PR optimization/11646 // This used to fail because the compiler inadvertently cleared // the EDGE_ABNORMAL flag on a EDGE_EH edge and didn't delete // unreachable blocks after CSE. // { dg-do compile } // { dg-options "-O -fgcse -fnon-call-exceptions" } struct C { int i; }; struct allocator { ~allocator() throw(...
google
chromium
ptrmem2
.C
native_client/nacl-gcc/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
chromium
temp1
.C
native_client/nacl-gcc/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
chromium
static1
.C
native_client/nacl-gcc/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
chromium
pr17724-6
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/pr17724-6.C
404
utf_8
144b08c56b97351a4e649cf301cc3f38
// PR tree-optimization/17724 // { dg-do compile } // { dg-options "-O2" } extern 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
chromium
cse1
.C
native_client/nacl-gcc/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
chromium
const2
.C
native_client/nacl-gcc/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
chromium
reload2
.C
native_client/nacl-gcc/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
chromium
cleanup1
.C
native_client/nacl-gcc/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
chromium
pr19317-1
.C
native_client/nacl-gcc/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
chromium
inline3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/inline3.C
617
utf_8
f8d8b6e43c65e932c2f62a1b6414e898
// PR opt/6793 // We failed to supress inlining of a varargs function when it's a template. // { dg-do compile } // { dg-options "-O3" } #include <stdarg.h> typedef __SIZE_TYPE__ size_t; template < class Type > class VectorNd { size_t size; Type *data; public: VectorNd (size_t _size, size_t count, ...) : si...
google
chromium
pr20995-1
.C
native_client/nacl-gcc/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
chromium
pr19317-3
.C
native_client/nacl-gcc/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
chromium
pr39607
.C
native_client/nacl-gcc/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
chromium
inline1
.C
native_client/nacl-gcc/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
chromium
inline2
.C
native_client/nacl-gcc/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
chromium
mmx2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/mmx2.C
372
utf_8
0f988c5a4c4565a26fde2b7693409cf2
// { dg-do link { target i?86-*-* x86_64-*-* } } // { dg-options "-O2 -mmmx" } #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 (0x000000FF,0xFFFF00FF)); _mm_empty (); if ...
google
chromium
switch2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/switch2.C
388
utf_8
61704a5f57c4a5f46b6144e7223f9962
// { dg-do compile } // { dg-options "-O2 -w" } extern int foo (int); void bar (void) { char tmp = foo (0); switch (tmp) { case 1: foo (1); break; case 2: foo (2); break; case 3: foo (3); break; case 4: foo (4); break; case 5: foo (5); break; case 6: foo (6); break; case 7: foo (7)...
google
chromium
complex6
.C
native_client/nacl-gcc/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
chromium
fold1
.C
native_client/nacl-gcc/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
chromium
pr25857
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/opt/pr25857.C
184
utf_8
46204dbd322cbbcf824c37d22442fd47
/* { dg-do compile } */ /* { dg-options "-O2" } */ int foo(); int i; struct A { ~A() { if (this != (A*)(&i)) foo(); } }; struct B { A a1, a2, a3, a4; ~B() { foo(); } }; B b;
google
chromium
pr36185
.C
native_client/nacl-gcc/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
chromium
ptrmem3
.C
native_client/nacl-gcc/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; ...