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
20090311-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090311-1_1.C
289
utf_8
4bd241066ec44d418a463b706bee517f
#include "20090311-1.h" struct A { enum { UNO, DOS, TRES } f1_; int x; }; struct B; extern struct B x[]; struct C { int x; struct B *p; float d; }; extern A a; extern B b; extern bool flag; extern C c; int foo() { if (!flag) return a.x - c.x; return 0; }
google
chromium
20081219_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081219_1.C
859
utf_8
f59c1786515e2448abc8abf5a1c29eb0
typedef struct { } __mbstate_t; typedef __mbstate_t mbstate_t; namespace std __attribute__ ((__visibility__ ("default"))) { using::mbstate_t; typedef int *__c_locale; class locale { class facet; }; class locale::facet { }; template < typename _CharT > class numpunct:public locale::facet { void...
google
chromium
20080709_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080709_0.C
93
utf_8
7e2d91b237717acf2d48024593e875e3
// { dg-lto-do run } class Init { }; int f(Init *a) { } int main(void){ return 0; }
google
chromium
pr45679-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr45679-1_0.C
1,239
utf_8
aed0ba38a6ea060bc2e3e3202863de86
// { dg-lto-do link } // { dg-lto-options {{-O3 -Wno-multichar}} } // { dg-extra-ld-options "-flto -flto-partition=1to1 -r -nostdlib" } extern "C" { typedef struct __locale_struct { } *__locale_t; } typedef void * POVMSContext; struct POVMSData { }; int POVMS_OpenContext (POVM...
google
chromium
20081119_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081119_1.C
181
utf_8
5e1667c0d0b7c8628e5b3e5b0e6fcb93
class foo { public: foo () {} virtual ~foo() {} virtual void m() {} }; template<typename t> class bar : public foo { public: bar () {} }; void f2 (bar<int> *p) { p->m(); }
google
chromium
pr45621_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/pr45621_0.C
152
utf_8
73aaf0ac9f0d89731fe141c67cc8b8c2
// { dg-lto-do assemble } // { dg-extra-ld-options "-O2 -fipa-cp-clone -flto -nostdlib -r" } #include "pr45621.h" void foo () { s.v1 (); s.m (); }
google
chromium
20090313_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090313_1.C
147
utf_8
af95ff52b10d0e17c8fe8216f7c09b32
struct Foo { virtual void X(); virtual void Y(); }; struct Bar: public Foo { Bar(Foo *); void Y(); }; void Baz() { Foo f; Bar b(&f); }
google
chromium
20080908-3_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080908-3_0.C
181
utf_8
5099dc41f267dd624df5d8fc4dfacc06
/* { dg-lto-do run } */ volatile double bar; int foo() { double baz = -__builtin_huge_val(); return baz <= -bar; } int main() { if (foo () != 1) return 1; return 0; }
google
chromium
20090302_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090302_1.C
154
utf_8
b695bcee4d477cea4f681d8982db9752
struct Foo { bool Mumble(); static void Bar() { if (foo_->Mumble()) foo_ = 0; } static void Baz() { Bar(); } static Foo *foo_; }; Foo *Foo::foo_;
google
chromium
20091210-1_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091210-1_1.C
105
utf_8
e5e25bc32bb88fc22d2586e2e9ce5ea6
#include "20091210-1_0.h" struct Foo : Base { virtual void g(); }; void Foo::g() {} int main() {}
google
chromium
20090112_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20090112_0.C
154
utf_8
ea89b08bb23cbd99492773e11d27c75c
// { dg-lto-do run } const char *func(int val) { switch (val) { case 2147483647: return "foo"; default: return ""; } } int main() { return 0; }
google
chromium
20081119-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081119-1_0.C
295
utf_8
042b304fbcc845fa5922189f415051d1
/* { dg-lto-do link } */ /* { dg-require-effective-target fpic } */ /* { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -r -nostdlib}} } */ #include "20081119-1.h" extern __gnu_cxx::new_allocator<int> X; int f (__gnu_cxx::new_allocator<int> * a) { return a->max_size () + X.max_size(); }
google
chromium
20080910-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20080910-1_0.C
80
utf_8
b4a616fe18097af8a6fa7226d5f333f0
// { dg-lto-do assemble } struct Foo { Foo(int); }; void func() { new Foo(0); }
google
chromium
20091026-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20091026-1_0.C
236
utf_8
8a40f7bdd413d7cb05c24018cb5e6bc9
// { dg-lto-do link } // { dg-extra-ld-options "-r -nostdlib" } #include "20091026-1_a.h" cObject *cHead::find(const char *objname) const { return firstchildp; } class cNetworkType : public cObject { }; cNetworkType *networktype;
google
chromium
20081209_1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081209_1.C
69
utf_8
f7fc820b56efba6c7763744da17a87c9
class foo { public: foo (); virtual ~foo (); }; foo::~foo () { }
google
chromium
20081118-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081118-1_0.C
197
utf_8
e32d73cb2418a3865b03cb8eec3120a3
/* { dg-lto-do link } */ class C { public: C(); virtual ~C(); virtual void foo(); }; void bar() { new C(); } C::C() { } C::~C() { } void C::foo() { } int main(void) { return 0; }
google
chromium
20081023_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081023_0.C
135
utf_8
70c8326841e0a44b78d4c90ba0094bc7
// { dg-lto-do link } extern inline void __attribute__ ((__always_inline__)) func (void) { } void f (void) { func (); } main() { }
google
chromium
20081217-2_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/lto/20081217-2_0.C
204
utf_8
3cb8890c26a8b56dfd2026bd17dc5618
struct A { virtual int foo() {} }; struct B { virtual int f() {return 1; } }; struct C : public A, public B { C(); virtual int f() { return 0; } }; C::C() { } main() { C c; return c.f(); }
google
chromium
g++-bprob-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/bprob/g++-bprob-2.C
125
utf_8
91292dc36de1287d9de59661dd0c8c78
namespace { int calc(int j) { if (j==0) return 0; return calc(j-1)*j % 17; } } int main(void) { return calc(25); }
google
chromium
g++-bprob-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/bprob/g++-bprob-1.C
4,998
utf_8
232269dc2a9b913c19e49f1e7a29bf08
/* Check that various C constructs (in C++) don't cause problems for * profile-directed block ordering. Most of this test is the same as bprob-1.c and gcov-4.c in gcc.misc-tests. The "count" comments are left in to make comparisons easier; they are ignored for this test. */ extern "C" void abort (void); /...
google
chromium
typeid1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/dfp/typeid1.C
112
utf_8
cd0133a632a541db051ef84d53754ac6
// PR c++/39131 // { dg-do link } #include <typeinfo> const std::type_info &r = typeid(0.dd); int main() { }
google
chromium
mangle-mode
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/dfp/mangle-mode.C
854
utf_8
8b4d16a77a1edab85ee4c99fda03eb79
// { dg-do compile } // Check that the compiler mangles types defined with decimal float // modes according to the vendor-neutral C++ ABI. typedef float _Decimal32 __attribute__((mode(SD))); typedef float _Decimal64 __attribute__((mode(DD))); typedef float _Decimal128 __attribute__((mode(TD))); extern void foo32 (_D...
google
chromium
nofields
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/dfp/nofields.C
396
utf_8
3a865b01c504023d0b90b1f055163c6a
// PR c++/46862 // { dg-do compile } namespace std { namespace decimal { class decimal32 { }; // { dg-error "does not have any fields" } class decimal64 { }; // { dg-error "does not have any fields" } class decimal128 { }; // { dg-error "does not have any fields" } } } void foo (std::decimal::decima...
google
chromium
base
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/dfp/base.C
474
utf_8
694614d4f71e398dcda11523059a774e
// PR c++/50207 // { dg-do compile } namespace std { namespace decimal { template <class _Fmt> struct _FmtTraits; class decimal32; template <> struct _FmtTraits <decimal32> { static const long _NumBytes = 4UL; }; template <class _Tr> class _DecBase { unsigned char _Bytes[_Tr...
google
chromium
pr27291
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr27291.C
8,740
utf_8
b70fdde5abd17c5811c3303beb4c4a27
/* { dg-do compile } */ /* { dg-options "-O2" } */ namespace std { template < class _T1, class _T2 > struct pair { }; } extern "C" { extern "C" { typedef int int32_t __attribute__ ((__mode__ (__SI__))); struct _pthread_fastlock { } pthread_mutexattr_t; } } namespace std { struct __num...
google
chromium
pr31146
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr31146.C
379
utf_8
83b48ca66f73d211f6659c4d6b99bb52
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-forwprop" } */ /* We should be able to optimize this to i[j] = 1 during early optimizations. */ int i[5]; void foo (int j) { void *p = &i[j]; int *q = (int *)p; *q = 1; } /* { dg-final { scan-tree-dump "MEM\\\[.*&i\\\]\\\[j.*\\\] =.* 1;" "forwprop1" }...
google
chromium
empty-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/empty-2.C
425
utf_8
89020011a0cbf3d39cdead1f86d328af
// PR c++/45307 // { dg-options "-fdump-tree-gimple -fdump-tree-optimized -O" } struct fallible_t { }; const fallible_t fallible = fallible_t(); void t(void) { } // { dg-final { scan-tree-dump-not "fallible" "gimple" } } // Whole constructor should be optimized away. // { dg-final { scan-tree-dump-not "int" "optimiz...
google
chromium
pr31146-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr31146-2.C
392
utf_8
ee86dfeab34434a360bcab30db46fa8a
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-forwprop1" } */ #include <new> template <class T> struct Vec { Vec() { for (int i=0; i<3; ++i) new (&a[i]) T(0); } T a[3]; }; double foo (void) { Vec<double> v; return v.a[2]; } /* { dg-final { scan-tree-dump "Replaced .* != 0B. with .1" ...
google
chromium
pr20280
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr20280.C
1,501
utf_8
a9d7f4347bccd1e6029d7c844680a5b4
// PR c++/20280 // { dg-do compile } // Gimplification of the COND_EXPR used to fail because it had an // addressable type, and create_tmp_var rejected that. struct A { ~A(); }; struct B : A {}; A& foo(); void bar(bool b) { (B&) (b ? foo() : foo()); } // Make sure bit-fields and addressable types don't cause cr...
google
chromium
pr28238
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr28238.C
360
utf_8
8aea640c13c12833067fe21f2796f0ab
/* { dg-do compile } */ /* { dg-options "-O" } */ struct iterator{}; struct ByteIterator : iterator { ByteIterator (){} int a[1024]; }; inline ByteIterator f () { return ByteIterator (); } class ConfLexerCore { ConfLexerCore (); ByteIterator m_matchStart; }; ConfLexerCore::Conf...
google
chromium
sra-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/sra-1.C
578
utf_8
4b409387c124f6c52a3b106d015e09fa
/* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=223576 */ /* SRA failed to canonicalize bit-field types, introducing type mismatches. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ struct A { int a:16; /* These dummy bit-fields are here to prevent GCC 4.2+ from merging the bit-field compa...
google
chromium
pr24351-3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24351-3.C
5,388
utf_8
374559cef47a384e5add68ead511bef5
/* { dg-do compile } */ /* { dg-options "-O2" } */ namespace sigc { template <class T_type> struct type_trait { typedef T_type& pass; typedef const T_type& take; typedef T_type* pointer; }; template <class T_type> struct type_trait<T_type&> { typedef T_type& pass; }; ...
google
chromium
pr26757
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr26757.C
367
utf_8
f08282d681d172ebc2a1c9dc4cc201ec
// PR c++/26757 // { dg-do run } // { dg-options "-O" } extern "C" void abort (); typedef struct A { int c; int d; } A; A *b; void foo () { b->c++; extern A *b; b->d++; } void bar () { if (b->d) b->c++; } int main () { A a = { 0, 0 }; b = &a; foo (); bar (); if (b->c != 2) abort ()...
google
chromium
pr41905
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr41905.C
116
utf_8
9fa7c9a1677573428aaa46e9bd0f12e7
/* { dg-do compile } */ /* { dg-options "-O2" } */ int foo() __attribute__((noreturn)); int bar() { return foo(); }
google
chromium
ivopts-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ivopts-2.C
332
utf_8
4a6213c10187a3f05931a6925f550e79
/* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */ /* { dg-options "-O2 -fdump-tree-ivopts-details" } */ void test (int *b, int *e, int stride) { for (int *p = b; p != e; p += stride) *p = 1; } /* { dg-final { scan-tree-dump-times "PHI <p" 1 "ivopts"} } */ /* { dg-final { cleanup-tree-dump "ivo...
google
chromium
pr13954
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr13954.C
491
utf_8
9f140d067a9913d7925e506be238488a
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ void link_error (void); class base { }; class teststruct: public base { public: double d; char f1; }; void copystruct1 (teststruct param) { teststruct local; param.f1 = 0; local = param; if (local.f1 != 0) link_error (); } /*...
google
chromium
pr37393
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr37393.C
409
utf_8
33497c20b479b289e6e9a28d4cb6ed0f
// PR middle-end/37393 // { dg-do compile } // { dg-options "-O2" } struct A { ~A (); bool foo () const; }; extern "C" { extern void bar (const char *, ...) __attribute__ ((noreturn)); extern inline __attribute__ ((always_inline, gnu_inline, artificial)) void baz (const char *fmt, ...) { bar (fmt, __b...
google
chromium
pr45453
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr45453.C
372
utf_8
6e5a3983e2a920d193a05fba8aeb8a34
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ struct S { S(); virtual inline void foo () { foo(); } }; void B () { S().foo (); } /* We should inline foo and devirtualize call to foo in the inlined version. */ // { dg-final { scan-tree-dump-times "OBJ_TYPE_REF" 1 "optimized" } ...
google
chromium
pr27548
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr27548.C
1,416
utf_8
8068c5970209523958d75e5cd5284d28
// PR tree-optimization/27548 // { dg-do compile } // { dg-options "-O1" } namespace Gambit { template < class T > class Array { protected:int mindex, maxdex; T *data; int InsertAt (const T & t, int n) { T *new_data = new T[++this->maxdex - this->mindex + 1] - this->mindex; int i; f...
google
chromium
pr18178
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr18178.C
771
utf_8
af0b096ca2ad7437a484c26de4dec069
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ // Define this to see it work. // #define WORK_WORK_WORK #define THIRD #ifdef THIRD #define FIRST i < 0 || #define ORIG int #define CAST #else #define FIRST #ifdef WORK_WORK_WORK #define ORIG unsigned int #define CAST #else #define ORIG int #defi...
google
chromium
pr15791-5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr15791-5.C
265
utf_8
5c84d01e2380defec463c6de4c81154b
/* { dg-do compile } */ /* { dg-options "-fdump-tree-gimple" } */ int foo(int i, int j) { char g[16]; if (&g[i] == &g[j]) return 1; return 0; } /* { dg-final { scan-tree-dump-times "i == j" 1 "gimple" } } */ /* { dg-final { cleanup-tree-dump "gimple" } } */
google
chromium
pr19952
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr19952.C
242
utf_8
f05b30134e85add64a7b367e35828cf5
/* PR 19952 */ /* { dg-do compile } */ /* { dg-options "-ftree-vectorize -O2" } */ int i; struct A { ~A() { ++i; } }; struct B { A a; }; void foo() { for (int i=0; i<2; ++i) { B *p; if (p) p->~B(); } }
google
chromium
pr22488
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22488.C
510
utf_8
48e06b851bf1784a8edda8606ba10d99
// PR tree-optimization/22488 // This testcase is really a C++ FE bug in represnting virtual inheritance // It gives the appearance to the middle end that the fields exist twice // which resulted in a very confused structure analyzer // { dg-do compile } // { dg-options "-O" } struct X { int i0, i1; char c; }...
google
chromium
pr19807
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr19807.C
850
utf_8
73da22d2847ea7f72d44f0536907328f
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ int a[4]; int *x, *y, *z; void foo(void) { x = &a[3] - 1; y = &a[1] + 1; z = 1 + &a[1]; } void bar(int i) { x = &a[i] - 1; y = &a[i] + 1; z = 1 + &a[i]; } /* { dg-final { scan-tree-dump-times "&a\\\[2\\\]" 3 "optimized" } } */ /* We want...
google
chromium
pr37084
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr37084.C
154
utf_8
7bc2202a0f82103a8b65611ca356c6a5
// PR tree-optimization/37084 // { dg-do compile } // { dg-options "-O" } struct A { A (); }; inline A foo () { return A (); } const A a (foo ());
google
chromium
pr24231-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24231-1.C
503
utf_8
44148757e03cea49e851edb978cc91a5
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* FRE testcase for PR 24231, problem with PRE coalescing abnormal phis. */ struct f { int i; }; struct h{h();}; int g(void); int g1(void) throw(); int h2222(f*); void ghh(int); int main(void) { int i; f t; try { i = g1(); try { i = g(); ...
google
chromium
pr46734
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr46734.C
467
utf_8
7b0e4882ed9e6e78fb17c21e24090631
/* { dg-do compile } */ /* { dg-options "-O -fipa-sra" } */ struct A { int *p; A() {p = (int *) -1;} ~A() {if (p && p != (int *) -1) *p = 0;} }; struct B { A a; char data[23]; B() : a() {data[0] = 0;} }; extern A ga; extern int *gi; extern void *gz; extern B *gb; static int * __attribute__ ((noinline)) ...
google
chromium
pr31307
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr31307.C
808
utf_8
7dada0a2246480857f3189289122784e
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ union MY_M128 { double i; }; struct RegFile { MY_M128 dst[4]; }; __inline__ __attribute__((always_inline)) static void MEM_OPT_LOAD(MY_M128* reg, double* mem) { reg[0].i = *mem; } void _ia32_movntdq (double *, double); __inline__ __attri...
google
chromium
pr23624
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr23624.C
86
utf_8
31fb06e70a65b02820509d29892e2f1c
/* { dg-do compile } */ template <int> void f() { int *t, i; t[i ? 0 : i]; }
google
chromium
pr25771
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr25771.C
568
utf_8
106c9716380acfba412f6534beaba23b
/* { dg-do compile } */ int ggggg(); struct string { static int _S_empty_rep_storage[]; void _M_destroy(); char* _M_rep; ~string() { if (_M_rep != (char*)&_S_empty_rep_storage ) if (ggggg() <= 0) _M_destroy(); } }; extern void SDL_FreeSurface(int surface); struct scoped_resource { ~sco...
google
chromium
pr24351-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24351-1.C
575
utf_8
c7d08277c75dad45e79a0f43ab257c4c
/* { dg-do compile } */ /* { dg-options "-O2" } */ struct adaptor_base { }; struct bound_argument { bound_argument(); }; template <class T_functor> struct adaptor_functor : public adaptor_base { explicit adaptor_functor(const T_functor& _A_functor) : functor_(_A_functor) { } T_functor functor_; bound_argument...
google
chromium
pr27283
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr27283.C
1,356
utf_8
af26e0d1ce1be8b1c0a5623561e1b719
/* { dg-do compile } */ /* { dg-options "-O2" } */ namespace Gambit { template < class T > class Array { protected:int mindex, maxdex; T *data; int InsertAt (const T & t, int n) { T *new_data = new T[++this->maxdex - this->mindex + 1] - this->mindex; int i; for (i = this->mindex; i ...
google
chromium
pr22071
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22071.C
361
utf_8
941b942a95d741f6184e06a6436ab545
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* This code ends up taking the address of part of the structure that is padding, and because there is no real field there, the structure alias analyzer would abort. */ struct empty_class {}; struct class1 : empty_class { class1() {} empty_class value_; }...
google
chromium
pr41275
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr41275.C
279
utf_8
88c743ef9121547a2080de9e32812c79
// PR middle-end/41275 // { dg-do compile } // { dg-options "-O2" } // this used to ICE struct ErrmsgWindow { virtual ~ErrmsgWindow() { extern int _switch_mode_errorstr; _switch_mode_errorstr = 42; } }; void ShowErrorMessage(void) { ErrmsgWindow w; }
google
chromium
pr20963
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr20963.C
676
utf_8
c6f234d3623212f40d78fad6b87310ad
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* This was causing PRE to insert the value of the ADDR variable, to remove the invariant cast but in doing so, it was creating a non-invariant expression out of the invariant one, causing a later failure in PRE. */ struct sMCB { unsigned char type; ...
google
chromium
dom-invalid
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/dom-invalid.C
805
utf_8
e6a767be59130f79677faa96e068cef1
// PR tree-optimization/39557 // invalid post-dom info leads to infinite loop // { dg-do run } // { dg-options "-Wall -fno-exceptions -O2 -fprofile-use -fno-rtti" } struct C { virtual const char *bar () const; }; struct D { D () : d1 (0) { } C *d2[4]; int d1; inline const C & baz (int i) const { return *d2[i]; }...
google
chromium
pr22279
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22279.C
744
utf_8
7c4b92ce09c59b2004e7746f2b1bd386
/* { dg-do compile } */ /* { dg-options "-O2" } */ struct string { long long _M_p; long long i; string(); int begin(); int end(); string(int, int); }; struct symbol { int type; string name; long long raw_name; long long demangled_name; long long version_name; int version_status; int status; ...
google
chromium
tmmti-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/tmmti-2.C
463
utf_8
a7af44b02aeb24506b5f9734a202f0ef
/* { dg-do compile } */ /* { dg-options { -O -fdump-tree-optimized } } */ int a[4][8]; int foo(long i) { return *(&a[0][0] + i*8); // a[i][0] } struct Foo { double x, y; }; Foo b[4]; double bar(long i) { return *(&b[0].x + i*2); // b[i].x } /* { dg-final { scan-tree-dump "a\\\[.*i.*\\\]\\\[0\\\]" "optimized" { ...
google
chromium
ivopts-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ivopts-1.C
429
utf_8
1a68a606ab899ac20dc0fb911f3edf25
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-ivopts" } */ struct Foo { Foo() : s(1) {} int s; }; void foo(Foo&); void bar(void) { Foo x[4]; foo(x[0]); } /* { dg-final { scan-tree-dump-not "-&x" "ivopts" } } */ /* { dg-final { scan-tree-dump-not "offset: (4294967292|0x0f+fc)" "ivopts" } } */ /* { d...
google
chromium
pr20458
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr20458.C
413
utf_8
41846b62265c3bb2f5a736155a172f33
/* { dg-do run } */ /* { dg-options "-O2" } */ /* The tail call optimization would inapproriately tail call the destructors due to not recognizing a call clobbered variable */ namespace std { class locale { public: locale(); ~locale(); }; } struct B { std::locale _M_buf_locale; virtual ~B() {} }; st...
google
chromium
pr23948
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr23948.C
451
utf_8
2943090c17900350d5466b1ecb1f011f
/* { dg-options "-O1 -ffast-math -fdump-tree-recip" } */ /* { dg-do compile } */ struct MIOFILE { ~MIOFILE(); }; double potentially_runnable_resource_share(); void f1(double); int make_scheduler_request(double a, double b) { MIOFILE mf; double prrs = potentially_runnable_resource_share(); f1(a/prrs); f1(1/pr...
google
chromium
pr35144
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr35144.C
299
utf_8
0fc8cb45517696ad7a137d07f7a59d5f
// PR c++/35144 // { dg-do compile } // { dg-options "-O2" } struct A { int baz (); }; typedef int (A::*P) (); struct B { B (); int foo (P x, int y = 0); }; struct C { typedef int (B::*Q) (P, int); void bar (Q x) { c = x; } Q c; }; extern C c; B::B () { c.bar ((C::Q) &B::foo); }
google
chromium
ptrmemfield
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ptrmemfield.C
514
utf_8
1774a3db4e8c1c639d06cfd8ba95990d
/* { dg-do compile } */ // { dg-options "-O2 -fdump-tree-optimized" } struct f { char m; char m1; }; static inline char f:: *g(int a) { return a?0:&f::m; } int h(void) { char f:: *a = g(0); return a == 0; } /* We should have no cast to offset_type. */ /* { dg-final { scan-tree-dump-times "offset_type" 0 ...
google
chromium
pr41428
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr41428.C
395
utf_8
1652275d8bd0f5914734a97bb1880ad0
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-ccp1-details" } */ extern "C" void abort (void); inline void *operator new (__SIZE_TYPE__, void *__p) throw () { return __p; } int foo(void) { float f = 0; int *i = new (&f) int (1); return *(int *)&f; } /* { dg-final { scan-tree-dump "Folded into: if \\\...
google
chromium
empty-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/empty-1.C
314
utf_8
ebffc2389dbbf739ae120d2beb15bf62
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ struct S {}; S bar (const S &a) { S s; s = a; return s; } /* Test whether memcpy call has been optimized out. */ /* { dg-final { scan-tree-dump-times "memcpy" 0 "optimized"} } */ /* { dg-final { cleanup-tree-dump "optimized" } } */
google
chromium
pr24439
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24439.C
177
utf_8
9a08ef02da783cd1df3302f368440d82
/* { dg-do compile } */ /* We used to ICE in invert_truthvalue on the void type 2nd argument of the COND_EXPR. */ void foo(void) { int value=1; !(value?true:throw); }
google
chromium
pr19786
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr19786.C
707
utf_8
a425019d3ee630ab12baac6d527c530b
// { dg-do run } /* { dg-options "-O2" } */ // We used to get alias grouping wrong on this one, hoisting accesses // to the vector's end out of the loop. #include <vector> #include <cassert> struct A { double unused; // If I remove it => it works. std::vector<int> v; A() : v(1) {} }; inline // If not in...
google
chromium
fold-compare
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/fold-compare.C
558
utf_8
4b282b14fe99b844fdc0ffd971aaa369
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ struct ExtentsBase { ExtentsBase() : startx_(), endx_() { } ExtentsBase(const ExtentsBase &b) { *this = b; } const ExtentsBase & operator=(const ExtentsBase &b) { if (this != &b) { startx_ = b.startx_; } return *this; } int st...
google
chromium
pr24231-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24231-2.C
506
utf_8
fc23f194bae9c81c5e59ce474597bd1c
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* FRE testcase for PR 24231, problem with PRE coalescing abnormal phis. */ struct f { int i; }; struct h{h();}; int g(void); int g1(void) throw(); int h2222(f*); void ghh(int); int main(void) { int i; f t; try { i = g1(); try { i = g(); ...
google
chromium
pr24231-3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24231-3.C
803
utf_8
673c806c4a52af61e84671cf0de44ae3
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* PRE testcase for PR 24231, problem with PRE coalescing abnormal phis. */ struct MemoryManager { virtual void deallocate() = 0; }; struct XalanVector { ~XalanVector() { m_memoryManager->deallocate(); } void swap(XalanVector& the...
google
chromium
pr38572
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr38572.C
633
utf_8
02b5ab6fcca95cd2ee0233b9c2227460
// PR tree-optimization/38572 // { dg-do compile } // { dg-options "-O2" } // Crash caused by the out-of-bounds enum values (all the remaining cruft // is needed only to trigger the appropriate code path in tree-vrp.c). enum JSOp { JSOP_GETELEM = 5, }; extern void g (); void f (char *pc, char *endpc, int format, char...
google
chromium
pr34355
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr34355.C
520
utf_8
070e8ded8a9dcc9c7e2b6d5878d21565
// { dg-do compile } // { dg-require-effective-target pthread } // { dg-options "-O3 -ftree-parallelize-loops=4" } typedef double EXPRESS[5]; extern int Terms; void Parse_Rel_Factor (EXPRESS Express, int *Terms) { EXPRESS Local_Express = {5.0, 4.0, 3.0, 2.0, 1.0}; int Local_Terms = 5; int i; for (i = (*Te...
google
chromium
nothrow-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/nothrow-1.C
379
utf_8
3f2e0e7e3ff73f5d65e9ee99f810fe1e
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-cfg" } */ /* { dg-add-options bind_pic_locally } */ double a; void t() { a=1; } void t1(void); void abort(void); void q() { try { t(); } catch (...) {abort();} } /* We shouldnotice nothrow attribute. */ /* { dg-final { scan-tree-dump-times "exception" 0 ...
google
chromium
ssa-sra-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ssa-sra-1.C
1,042
utf_8
7b1430776e05b9bf2917d27e8cccefbc
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ void link_error(); struct State { int p0, p1, p2; inline State(){p0=0;p1=0;p2=0;} inline State(const State &s) { p0 = s.p0; p1 = s.p1; p2 = s.p2; } inline void operator =(const State &s) { p0 = s.p0; p1 = s.p1; p2...
google
chromium
pr23164
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr23164.C
238
utf_8
f9e0ba5e946f02655fec1329bedd4078
/* { dg-do compile } */ /* { dg-options "-O2" } */ bool f(); struct S { S(); ~S(); }; void g() { for (;;) { S s1, s2, s3, s4, s5, s6; if (f()) continue; if (f()) return; } }
google
chromium
pr17517
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr17517.C
472
utf_8
3f50ad6afe1400d17f21f8b61d4be1a6
// Test PR 17517. Test case provided by Serge Belyshev. /* { dg-do compile } */ /* { dg-options "-O2" } */ extern void foo (); struct Ptr { int * ptr; Ptr () { ptr = 0; } ~Ptr() { delete ptr; } Ptr &operator= (int * p) { ptr = p; return *this; } }; int *new_checker () { foo (); return 0; } void pipe (int c...
google
chromium
pr23046
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr23046.C
214
utf_8
73a20ce04e160fe0b32687e6154f256b
/* { dg-do compile } */ /* { dg-options "-O2" } */ enum eumtype { ENUM1, ENUM2 }; void g(const eumtype kind ); void f(long i); void g(const eumtype kind) { if ((kind != ENUM1) && (kind != ENUM2)) f(kind); }
google
chromium
pr22444
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22444.C
5,435
utf_8
26f6a330aaa1867dbab3e7a2226b985c
// PR tree-optimization/22444 // When creating SFT's, we shouldn't add the original variable // to the addressable vars list, because this may cause false aliasing // with the subvars leading to the subvars not being renamed when they should // { dg-do compile } // { dg-options "-O2" } __extension__ typedef __PTRDIFF_T...
google
chromium
pr13146
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr13146.C
947
utf_8
482a64ed60783060cd1097d55e09aa68
/* { dg-do link } */ /* { dg-options "-O -fstrict-aliasing" } */ class first { public: double d; int f1; }; class middle : public first { }; class second : public middle { public: int f2; short a; }; class third { public: char a; char b; }; class multi: public third, public second { public: short s; ...
google
chromium
pr22615
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22615.C
338
utf_8
8757b801b93bd7b27358f98ca8bc55b2
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* Ensure that we don't crash when people decide to return the address of padding. */ struct A { char c; int i; }; A a; struct B { char c, d; }; union C { A *p; B *q; C() : p(&a) {} char& foo() { return q->d; } }; void bar() { ...
google
chromium
pr37356
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr37356.C
331
utf_8
50e81396db8278e2f138e7c26430b52e
// PR middle-end/37356 */ // { dg-do compile } // { dg-options "-O" } bool foo (); int bar (); bool baz (int v) { return v == bar (); } struct A { A () { baz (1) || foo (); } }; struct B { static A get () { return A (); } B (const int &x) { } B () : b (get ()) { } A b; }; B c; void test () { int d; ...
google
chromium
builtin1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/builtin1.C
131
utf_8
92014ea122d687546fe3649560d8b2a7
// { dg-do link } extern void link_error(); int main() { if (! __builtin_constant_p (&"Hello"[0])) link_error(); return 0; }
google
chromium
pr45605
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr45605.C
735
utf_8
ce81bffb1b4d60bdacbdb0d5928f66cf
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-ssa" } */ extern "C" void abort(); bool destructor_called = false; struct B { virtual void Run(){}; }; struct D : public B { virtual void Run() { struct O { ~O() { destructor_called = true; }; } o; s...
google
chromium
pr41906
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr41906.C
237
utf_8
91fe55fdc4c162c106f9fe9a49ed7329
/* { dg-do compile } */ /* { dg-options "-fpermissive -w" } */ /* We aren't interested in the warning, but in the ICE. */ void foo(); extern void abort (void); void bar() { try { foo(); } catch (...) {} catch (int) {abort ();} }
google
chromium
pr22037
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22037.C
244
utf_8
aa931156abafd21884e323d601aa367f
/* { dg-do compile } */ /* { dg-options "-O2" } */ extern double sqrt (double) throw (); void foo(double& d, int n) { double e=0; for(int i=0; i<n; i++); for(int i=0; i<n; i++) e=1; d = sqrt(e); for(int i=0; i<n; i++); }
google
chromium
pr26406
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr26406.C
282
utf_8
53f9f80a90d08a898ab9c66c6050280b
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ int *f(int *b) { int * a = new int[104]; *a = 1; if (a == 0) return b; return a; } /* { dg-final { scan-tree-dump-not "if" "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */
google
chromium
pr26443
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr26443.C
175
utf_8
0f61e3b02d9689c33c95f07a9421ed69
// { dg-do compile } struct A { double x[4]; }; struct B { A y[2]; }; A foo(B *p) { for ( int i=0; i<4; ++i ) p->y[1].x[i]=0; A a; return a; }
google
chromium
pr22005
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22005.C
266
utf_8
01366956240506c80efe61a02b2126bb
/* { dg-do compile } */ /* { dg-options "-O2" } */ struct cl_string { union{ int i; }; cl_string (); }; struct cl_print_univpoly_flags { cl_string univpoly_varname; }; struct cl_print_flags: cl_print_univpoly_flags {int i;}; cl_print_flags default_print_flags;
google
chromium
pr15791-3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr15791-3.C
286
utf_8
60208923fa136080caefbbee2e86be67
/* { dg-do compile } */ /* { dg-options "-fdump-tree-gimple" } */ int f(int i, unsigned j) { int b[2]; if (&b[i] == &b[j]) return 1; return 0; } /* { dg-final { scan-tree-dump-times "i == j" 0 "gimple" } } */ /* { dg-final { cleanup-tree-dump "gimple" } } */
google
chromium
ssa-sra-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ssa-sra-2.C
1,030
utf_8
66bd3bb920ae8a07d7669d44d037b3f1
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ void link_error(); struct OOf { int value; OOf() {value = 0;} }; inline OOf operator+(OOf op1, OOf op2) { OOf f; f.value = op1.value + op2.value; return f; } inline OOf operator*(OOf op1, OOf op2) { ...
google
chromium
pr38104
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr38104.C
189
utf_8
6162289afdc8ea2d3d209d49e210373b
// PR tree-optimization/38104 // { dg-do compile } // { dg-options "-O3" } struct S { int foo; }; void f0 (); void f1 (struct S s) { f0 (); } void f2 () { f1 (*(struct S *) (0)); }
google
chromium
pr24172
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24172.C
170
utf_8
cb28ea9929b05e6b833bd19e04d97d9c
// { dg-options "-O2" } void IOException( char); inline int* dummy( const char* const mode ) { IOException(*mode+*mode); } void prepare_inpaint( ) { dummy ("rb"); }
google
chromium
pr22550
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22550.C
493
utf_8
65be1fbed029e9a8dc4952880c85496f
/* { dg-do compile } */ /* { dg-options "-O2" } */ class X { public: int mfunc1 () { return 1; } int mfunc2 () { return 2; } X (int a, int b) { } }; typedef int (X::*memfunc_p_t) (); memfunc_p_t mf_arr[2] = { &X::mfunc1, &X::mfunc2 }; int main () { // Get pntr to the array of pointers to member-...
google
chromium
pr21584-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr21584-1.C
590
utf_8
d8a7cc9480a3e66c4aed7e081ba0ef0c
extern "C" { extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) throw () __attribute__ ((__nonnull__ (1, 2))); extern char *foo (char *__restrict __s) throw (); } class cset { public: cset(); int operator()(unsigned char) const; private: char v[(127 * 2 + 1)+1]; }; inline int c...
google
chromium
pr34063
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr34063.C
388
utf_8
c896a5c6bc3c2c73fb372aa1df72f942
// { PR tree-optimization/34063 } // { dg-do compile } // { dg-options "-O2" } struct S { double e[9]; double const & operator() (int r, int c) const { return e[r * 3 + c]; } }; void foo() { S r; double *p; for (int j = 0; j < 3; j++) for (int k = 0; k < 3; k++) for (int l = k + 1; l < ...
google
chromium
pr30738
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr30738.C
347
utf_8
822cd8fa882210d586093e8e0bb0e94c
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-phiopt1" } */ template <class T> static inline const T& min_ref (const T &x, const T &y) { return x < y ? x : y; } int test_min_ref (int x, int y) { return min_ref (x, y); } /* { dg-final { scan-tree-dump "MIN_EXPR" "phiopt1" } } */ /* { dg-final { cleanup-...
google
chromium
block1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/block1.C
291
utf_8
d4c530769d43a1d750e74fd5f10a662c
// PR 13764: We were inserting an extra body block in all functions, but // it's only really necessary for [cd]tors. // { dg-options "-fdump-tree-gimple" } void bar (void) { int a; } // { dg-final { scan-tree-dump-times "\{" 1 "gimple" } } // { dg-final { cleanup-tree-dump "gimple" } }
google
chromium
pr15791-4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr15791-4.C
283
utf_8
0f59bb1d8a1193143a12e70d489de8a4
/* { dg-do compile } */ /* { dg-options "-fdump-tree-gimple" } */ int f(int i, int j) { int b[2][2]; if (&b[1][i] == &b[0][j]) return 1; return 0; } /* { dg-final { scan-tree-dump-times "i == j" 0 "gimple" } } */ /* { dg-final { cleanup-tree-dump "gimple" } } */
google
chromium
pr27894
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr27894.C
1,173
utf_8
086db4c922e923a9d5c7b0582a1ba9f5
// PR c++/27894 // { dg-do compile } // { dg-options "-O" } class A; struct B { B (unsigned long); int b2 () const; A *b1 () const; }; enum { P = 0 }; enum O { Q = 75, }; class C; struct D { A *d; }; struct E { B e1 (int) const; A *e2 (const B &) const; D e3[4096]; }; inline A * E::e2 (const B & x) const...
google
chromium
pr17153
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr17153.C
303
utf_8
800bd27a3a39f1b9271b5c24af25251d
/* The alias analyzer was marking RETVAL non-addressable, but RETVAL is a special variable that's available across different functions. */ void foo(const char*); struct A {}; struct B : A { B(){} B bar() { foo(__PRETTY_FUNCTION__); return B(); } }; B b=B().bar();