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
nested-1
.C
native_client/pnacl-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/pnacl-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
lambda1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/lambda1.C
592
utf_8
78150d5ce1618056e2c230cbef595b7f
// PR c++/43912 // { dg-options "-g -std=c++0x -dA -fno-merge-debug-strings -gno-strict-dwarf" } // Check for the local alias variables that point to the members of the closure. // { dg-final { scan-assembler-times "DW_TAG_variable\[^.\]*\.ascii \"j.0\"" 4 } } // { dg-final { scan-assembler-times "DW_TAG_variable\[^.\...
google
chromium
fesd-any
.C
native_client/pnacl-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
self-ref-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/self-ref-1.C
408
utf_8
503ff08a3d3f78c97f4d0d82c8c8898c
// Origin: PR debug/45088 // { dg-do compile } // { dg-options "-g -dA" } // { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_pointer_type\\)\[\n\r\]{1,2}\[^\n\r\]*DW_AT_byte_size\[\n\r\]{1,2}\[^\n\r\]*DW_AT_type" 4 } } struct A { virtual ~A(); }; struct B : public A { virtual ~B(){} }; st...
google
chromium
typedef2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/typedef2.C
275
utf_8
d0973112f45467df2acab929c0676b6b
// Origin: PR debug/43628 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_formal_parameter\\)\[\n\r\]{1,2}\[^\n\r\]*DW_AT_type\[\n\r\]{1,2}" 1 } } class C { public: }; C::t f;
google
chromium
explicit-constructor
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/explicit-constructor.C
310
utf_8
a0a98f3ff5dd1cb016f114ae3c495f47
// Origin: PR c++ // { dg-do compile } // { dg-options "-O -g -dA -gno-strict-dwarf" } // { dg-final { scan-assembler-times "DW_AT_explicit" 2 } } struct Foo { Foo () {} explicit Foo (int) {} Foo (char) {} ~Foo () {}; }; void bar () { Foo foo; }
google
chromium
typedef5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/typedef5.C
147
utf_8
9312dd0f6427c9a6e3c5ef4764342454
// Origin: PR debug/46101 // { dg-options "-g -feliminate-dwarf2-dups" } // { dg-do compile } typedef struct { virtual void f () { } } A; A a;
google
chromium
template-func-params-6
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-6.C
745
utf_8
dbeb4c158df41c49836d7c77a37649e3
// Origin PR debug/30161 // { dg-options "-g -dA -fno-merge-debug-strings" } // { dg-final { scan-assembler-times "DW_TAG_GNU_template_template_param" 2 } } // { dg-final { scan-assembler-times "\"vector.0\".*?DW_AT_GNU_template_name" 1 } } // { dg-final { scan-assembler-times ".ascii \"U.0\".*?DW_AT_name" 1 } } templa...
google
chromium
template-func-params-4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-4.C
1,069
utf_8
d10174197afc9d61bee63f2955961efb
// Origin PR debug/30161 // { dg-options "-std=c++0x -g -dA" } // // In theory the compiler instantiates count<int, char, long>, // count<char, long> and count<long>. In practice, only // count<int, char, long> is emitted, thanks to constant folding. // So in theory, each of the 3 instances of count yields a // DW_TAG_...
google
chromium
imported-module
.C
native_client/pnacl-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
dwarf4-typedef
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/dwarf4-typedef.C
416
utf_8
028988276ea11e16dc02d68d0ec797e2
/* { dg-do compile } */ /* { dg-options "-gdwarf-4" } */ /* Regression test for an ICE in output_die when using -gdwarf-4. */ namespace { struct A { virtual ~A(); }; struct B : public A { template <typename A> bool foo(A x[2]) { } }; template <typename T> struct C { T v[2]; }; template <typename T> bool ...
google
chromium
pr46527
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/pr46527.C
400
utf_8
83e103e0e6e4fc3fb74441438b2c7288
// Origin: PR 46527 // { dg-do compile } // { dg-options "-g -O0 -dA" } template <typename T> struct Struct { double defined_later(); }; struct WrapperStruct { Struct<double> ClassInstantiated; }; template <typename T> double Struct<T>::defined_later() // { dg-function-on-line {_ZN6StructIdE13defined_laterEv} } {...
google
chromium
typedef3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/typedef3.C
337
utf_8
65c113697c36db18ba0d279fd77ea2f0
// Origin: PR debug/44188 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_typedef\\)" 1 } } // { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_structure_type\\)" 1 } } typedef struct { int i; } AAA; int main(void) { AAA a...
google
chromium
template-params-10
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-10.C
395
utf_8
c170ff12ec84f2a2c9ffcae864bca574
// Origin PR c++/47291 // { dg-options "-g -dA" } // { dg-do compile } struct S; template< int S::* cst> struct D {}; struct S { int i; D < &S::i > di; //<-- folding &S::i was failing // because i has no offset as S is not laid out yet }; int main() { S s; return s.i; } // { dg-final { sca...
google
chromium
icf
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/icf.C
371
utf_8
5f527b1d5db3338320735cddde309293
// { dg-do compile } // { dg-options "-O1 -gdwarf-2 -gno-strict-dwarf -fno-inline -dA" } class A { public: A(); virtual void work(); virtual int p(); private: int i; }; class B { public: B(); ~B(); void work(const A* a); private: int j; }; int test1(A* a) { a->work(); } int test2(A* a) { if ...
google
chromium
imported-module-3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-3.C
232
utf_8
00073dddfb84caf2285834b264334fb6
// PR debug/39379 // { dg-do compile } // { dg-options "-g -dA -gno-strict-dwarf" } // { dg-final { scan-assembler "DW_TAG_imported_module" } } namespace A { int v; } int main () { using namespace A; v++; return v - 1; }
google
chromium
template-func-params-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-1.C
314
utf_8
28ee1573f60d0f37f2eac34202823823
// origin PR debug/30161 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler "DW_TAG_template_type_param" } } // { dg-final { scan-assembler "U.*DW_AT_name" } } template <class U> U func(U m) { return m; } int i = func<int>(2);
google
chromium
template-params-5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-5.C
440
utf_8
7990148304d4007dede2e0cbc4350de4
// Origin PR debug/30161 // { dg-options "-g -dA" } // { dg-final { scan-assembler "DW_TAG_template_type_param" } } // { dg-final { scan-assembler "T.*DW_AT_name" } } template <class T> struct vector { int size; vector () : size (0) { } }; template<template <class T> class U> struct bar { U<int> u; int m; ...
google
chromium
accessibility1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/accessibility1.C
579
utf_8
f92710721a9f5fa080ed6b537bc83edd
// PR debug/44668 // { dg-do compile } // { dg-options "-g -dA" } struct C { private: typedef int a; a b; enum g { g1, g2 } h; struct D { int i; } i; protected: typedef int c; c d; public: typedef int e; e f; } c; // 3 private DW_TAG_member dies, 1 private DW_TAG_typedef, // 1 private DW_TAG_enumerati...
google
chromium
fesd-sys
.C
native_client/pnacl-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
anonname1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/anonname1.C
374
utf_8
822f852e589b608f693df0cf9eb330bb
// PR debug/41828 // { dg-do compile } // { dg-options "-gdwarf-2 -dA -std=c++0x" } // { dg-final { scan-assembler-not "<anonymous" } } // { dg-final { scan-assembler-not "\\._\[0-9\]" } } // { dg-final { scan-assembler-not "\$_\[0-9\]" } } // { dg-final { scan-assembler-not "__anon_" } } struct { union { stru...
google
chromium
pr44641
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/pr44641.C
1,219
utf_8
7fa7566d96b541284887aa5b1974aeae
// Origin: PR 44641 // { dg-do compile } // { dg-options "-g -O0 -dA" } template <class A> struct MisplacedDbg; template<class T> struct MisplacedDbg<T*>; struct Full; template<> struct MisplacedDbg<Full>; struct Arg; typedef MisplacedDbg<Arg> Typedef1; typedef MisplacedDbg<Arg*> Typedef2; typedef MisplacedDbg<Full> ...
google
chromium
self-ref-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/self-ref-2.C
436
utf_8
b0ee56c0f398af45fcabeb726abc1eb7
// Origin: PR debug/45088 // { dg-do compile } // { dg-options "-g -dA" } // { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_pointer_type\\)\[\n\r\]{1,2}\[^\n\r\]*DW_AT_byte_size\[\n\r\]{1,2}\[^\n\r\]*DW_AT_type" 4 } } template<class T> struct A { virtual ~A(); }; struct B : public A<int> { ...
google
chromium
namespace-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/namespace-1.C
816
utf_8
bf7faf1b5b6b3ff185c7363540f67eed
// Origin PR debug/41170 // { dg-options "-g -dA -fno-merge-debug-strings -gno-strict-dwarf" } // // We want to test that there is a DW_TAG_namespace DIE DW_AT_name is set // to "not_emitted". That namespace die has a child DW_TAG_typedef DIE // which DW_AT_name is the null terminated string "T". // { dg-final { scan-a...
google
chromium
template-params-6
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-6.C
840
utf_8
0aab90f063244783a6e6eaedb53d71c4
// Origin PR debug/30161 // { dg-options "-g -dA -fno-merge-debug-strings" } // { dg-final { scan-assembler-times "DW_TAG_GNU_template_template_param" 2 } } // { dg-final { scan-assembler-times "\"vector.0\"\[^\n\]*DW_AT_GNU_template_name" 1 } } // { dg-final { scan-assembler-times ".ascii \"U.0\"\[^\n\]*DW_AT_name" 1 ...
google
chromium
pr41063
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/pr41063.C
278
utf_8
7054dc65c88179389afb9e79cad0df38
// Origin: PR debug/41063 // { dg-do compile } struct A { virtual void run(); }; void test() { struct B : public A { void run() { struct C : public A { C() { } B *b_; }; C c; } }; B b; }
google
chromium
pr46123
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/pr46123.C
566
utf_8
0b06a651bd88729cd5005f63297ed8ff
// PR debug/46123 // { dg-do compile } // { dg-options "-gdwarf-4" } struct foo { static int bar () { int i; static int baz = 1; { static int baz = 2; i = baz++; } { struct baz { static int m () { static int n; return n += 10; } }; baz a; i += ...
google
chromium
pr45997-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/pr45997-2.C
552
utf_8
443ec5817865fbd9af98771a74a1c93c
// PR debug/45997 // { dg-do compile } // { dg-options "-gdwarf-2 -dA" } typedef int my_int; typedef volatile my_int volatile_my_int; typedef const volatile_my_int const_volatile_my_int; my_int v_my_int = 0; volatile_my_int v_volatile_my_int = 1; const_volatile_my_int v_const_volatile_my_int = 4; int main () { asm...
google
chromium
pr45997-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/pr45997-1.C
537
utf_8
90028c65be83718cb8e154df1b502d99
// PR debug/45997 // { dg-do compile } // { dg-options "-gdwarf-2 -dA" } typedef int my_int; typedef const my_int const_my_int; typedef volatile const_my_int volatile_const_my_int; my_int v_my_int = 0; const_my_int v_const_my_int = 1; volatile_const_my_int v_volatile_const_my_int = 4; int main () { asm volatile ("...
google
chromium
lineno-simple1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/lineno-simple1.C
255
utf_8
b8c47aaa52921815d2ef8eaab6c0680e
// { dg-do compile } // { dg-options "-g -O0 -dA" } struct C { // { dg-function-on-line {_ZN1CC[12]Ev} } int i; virtual void foo() {} // { dg-function-on-line _ZN1C3fooEv } }; static C dummy; int main (void) { // { dg-function-on-line main } }
google
chromium
template-params-7
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C
477
utf_8
cce892058e41cbbbe5a0e6f051172f38
// Origin PR debug/30161 // { dg-options "-std=c++0x -g -dA -fno-merge-debug-strings" } // The type M<> should have one DW_TAG_GNU_template_parameter_pack DIE, // with no DW_AT_name attribute. We don't test the fact that it has no // DW_AT_name though. // { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_G...
google
chromium
typedef1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C
958
utf_8
eef9d8e5f77db49b9f32e4c978aba005
// 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>\"|\"foo<1u>..\"\[^\n\]*DW_AT_name" 1 } } // { dg-final { scan-assembler-times "DW_TAG_enumeration_type" 2 } } // { dg-fin...
google
chromium
localclass2
.C
native_client/pnacl-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/pnacl-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
cdtor-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/cdtor-1.C
234
utf_8
ec14ec684c6500c13661acb67d504b13
// origin PR debug/49047 // { dg-options "-g -dA -fno-merge-debug-strings" } // { dg-do compile } struct K { K () { } ~K () { } }; int main() { K k; } // { dg-final {scan-assembler-times " DW_AT_\[MIPS_\]*linkage_name" 2 } }
google
chromium
static-data-member2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/static-data-member2.C
342
utf_8
6fe81ebc2b1b5af959934857597f7d83
// PR debug/26965 // { dg-options "-gdwarf-2 -dA" } // { dg-final { scan-assembler-not "DW_TAG_variable" } } // { dg-final { scan-assembler-not "DW_TAG_enumerator" } } // { dg-final { scan-assembler-not "DW_TAG_enumeration_type" } } enum x { i = 1 }; class c { static const x beg = i; int foo () { return (int) beg;...
google
chromium
localclass1
.C
native_client/pnacl-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
typedef4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/typedef4.C
376
utf_8
d2722bf0d3a3d1bdb6fcfc7517ca1239
// Origin: PR debug/45171 // { dg-options "-g -dA -fno-eliminate-unused-debug-types" } // { dg-do compile } // There should be 2 real instances of byte_size -- one for the // struct and one for "int". The other two instances are from // the comments in the .debug_abbrev section. // { dg-final { scan-assembler-times "...
google
chromium
enum1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/enum1.C
391
utf_8
8a1134e22c409fa2e2d0fedec05368e8
// { dg-do compile } // { dg-options "-g -dA -gno-strict-dwarf -std=c++0x" } // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_enumeration_type" 3 } } // { dg-final { scan-assembler-times " DW_AT_enum_class" 2 } } enum A { a1, a2 } a; enum struct B { b1, b2 } b; enum class C { c1, c2 } c; void foo () { a = ...
google
chromium
fesd-reduced
.C
native_client/pnacl-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
template-params-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-1.C
294
utf_8
bb96dc187eece3355d07e4c49c77587a
// origin PR debug/30161 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler "DW_TAG_template_type_param" } } // { dg-final { scan-assembler "U.*DW_AT_name" } } template <class U> class A { U m; }; A<int> a;
google
chromium
crossjump1
.C
native_client/pnacl-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/pnacl-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
combine
.C
native_client/pnacl-gcc/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
chromium
switch3
.C
native_client/pnacl-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
pr23372
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/opt/pr23372.C
339
utf_8
0cb3ec2bc521912639efb2ca41ad1fa0
// PR c++/23372 // { dg-options -fdump-tree-gimple } // There shouldn't be an assignment to a temporary in the GIMPLE, // as that represents a redundant copy. // { dg-final { scan-tree-dump-not "=" gimple } } struct A { int a[1000]; //A(A const &); }; void f(A); void g(A *a) { f(*a); } // { dg-final { cleanup-tr...
google
chromium
pr30965
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/opt/pr30965.C
676
utf_8
810ab5a2c055975ae9ca41789db9b27d
/* { 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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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
nrv16
.C
native_client/pnacl-gcc/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
chromium
complex4
.C
native_client/pnacl-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/pnacl-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/pnacl-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/pnacl-gcc/gcc/testsuite/g++.dg/opt/inline9.C
556
utf_8
13c304c377f82ba4b80f337f555069a3
// PR c++/17972 // { dg-do run } // { dg-options "-O" } // { dg-options "-O -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } } 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; } v...
google
chromium
unroll1
.C
native_client/pnacl-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
empty2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/opt/empty2.C
160
utf_8
d1d055611bb2998e370992816712eb3a
// PR c++/46160 // { dg-do compile } struct S { enum E { A }; } s; volatile S t; void f (S::E); void g () { volatile S *p = &s; f (p->A); f (t.A); }
google
chromium
cfg1
.C
native_client/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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
pr46649
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/opt/pr46649.C
199
utf_8
8cc9399dd972318b6a188f19c5701035
// { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } // { dg-options "-fschedule-insns -fselective-scheduling" } void foo () { for (;;) for (;;({break;})) ; }
google
chromium
reload1
.C
native_client/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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
nrv17
.C
native_client/pnacl-gcc/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
chromium
const2
.C
native_client/pnacl-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/pnacl-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/pnacl-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
builtins2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/opt/builtins2.C
229
utf_8
4bd7a548fa732f956d651ca91ca130d0
// PR c++/49813 // We should handle asinh as a built-in in C++0x mode, even when strict. // { dg-options "-std=c++0x" } // { dg-final { scan-assembler-not "asinh" } } #include <math.h> int main() { double das = asinh(1.0); }
google
chromium
pr19317-1
.C
native_client/pnacl-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/pnacl-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/pnacl-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
pr45412
.C
native_client/pnacl-gcc/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
chromium
pr19317-3
.C
native_client/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-gcc/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
chromium
switch2
.C
native_client/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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/pnacl-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; ...