plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
inline-3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/inline-3.C
652
utf_8
326e3cd571eb321549e48249013d62a9
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-einline --param max-early-inliner-iterations=5" } */ /* { dg-add-options bind_pic_locally } */ #include <algorithm> void foo(const char *s); void inline_me (char *x) { foo(x); } static void inline_me_too (char *x) { foo(x); } int main(int argc, char **ar...
google
android
pr28003
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr28003.C
603
utf_8
68f892d0aaa84abba22ecb11810e95ce
// PR tree-optimization/28003 // Alias grouping needs to be computed after call clobbering, because it // changes around the tags and variables in a way that makes our // call clobbering computation incorrect. // { dg-do run } // { dg-options "-O2" } extern "C" void abort(void); struct A { int i, j[9]; A() : i(1) {...
google
android
block1
.C
toolchain/gcc/gcc-4.9/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
android
pr18178
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr18178.C
769
utf_8
c58a667ac808876645730c40d207fb4b
/* { 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
android
pr19476-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr19476-2.C
404
utf_8
f8c84e81a44babf6ba7a33748c3c2d84
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ #include <new> int f(){ int *p = new(std::nothrow) int; return 33 + (0 == p); } int g(){ int *p = new int[50]; return 42 + (0 == p); } /* { dg-final { scan-tree-dump "return 42" "optimized" } } */ /* { dg-final { scan-tree-dump-not ...
google
android
pr47707
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr47707.C
408
utf_8
17b2dd8d2a9a3ac4de6f0295ef166de9
/* { dg-do run } */ /* { dg-options "-O2 -fno-tree-vrp" } */ #include <assert.h> struct CH { unsigned char ch : 3; } ch; __attribute__((noinline)) void MakeCheckOp (unsigned int *v1, unsigned int *v2) { assert (*v1 == *v2); } int main (void) { int len; for (len = 4; len >= 1; len--) { unsigned v1, v...
google
android
pr23046
.C
toolchain/gcc/gcc-4.9/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
android
pr58404
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr58404.C
394
utf_8
bb17cbedcbb5bcabb9ee8299f30c3ae9
// { dg-do compile } // { dg-options "-O -fdump-tree-cddce1" } struct S { int s; }; S a[1024]; void foo () { for (int i = 0; i < 1024; i++) { S &r = a[i]; r.s++; } } // We should propagate the reference into both memory accesses // during the first forwprop pass // { dg-final { scan-tree-dump-t...
google
android
pr24231-1
.C
toolchain/gcc/gcc-4.9/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
android
fwprop-align
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/fwprop-align.C
370
utf_8
c2c6346259efd9cf339b73844e0fef91
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-forwprop2" } */ struct A { void foo () { } }; int main() { void (A::* const p)() = & A::foo; A a; (a.*p)(); } /* We should eliminate the check if p points to a virtual function. */ /* { dg-final { scan-tree-dump-times "& 1" 0 "forwprop2" } } */ /* ...
google
android
pr17153
.C
toolchain/gcc/gcc-4.9/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();
google
android
pr41961
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr41961.C
236
utf_8
b3721c1012726f86c682c19ffbad76a6
// { dg-do compile } // { dg-require-effective-target pthread } // { dg-options "-O3 -ftree-parallelize-loops=2" } struct A { char c[17]; void foo(); }; void A::foo() { for (int i = 0; i < 17; ++i) c[i] = 0; }
google
android
pr24351-3
.C
toolchain/gcc/gcc-4.9/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
android
pr24231-3
.C
toolchain/gcc/gcc-4.9/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
android
pr33615-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr33615-2.C
459
utf_8
885e2d65485d9abe06da5ddb44712bf3
/* { dg-do compile } */ /* { dg-options "-O2 -fnon-call-exceptions -fdump-tree-pre-details -w" } */ extern volatile int y; double foo (double a, int x) { while (x--) { y++; a += 1.0 / 0.0; } return a; } // The expression 1.0 / 0.0 should not be treated as a loop invariant // if it may throw a...
google
android
ivopts-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/ivopts-2.C
337
utf_8
c474b44ca4a22b104ad2cb17a36cac70
/* { 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 <\[pb\]" 1 "ivopts"} } */ /* { dg-final { cleanup-tree-dump...
google
android
pr41186
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr41186.C
721
utf_8
112ea1ab2c51c876f6becada153dbc16
/* { dg-do compile } */ /* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */ struct Foo { Foo() {}; int i; short f; }; struct Bar : public Foo { Bar() {}; short b; }; extern "C" void abort(void); int main() { Bar b1, b2; b2.i = 0; b1.f = 0; b1.b = 1; b2.f = 1; b2.b = 2; static_cas...
google
android
ssa-sra-2
.C
toolchain/gcc/gcc-4.9/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
android
pr26443
.C
toolchain/gcc/gcc-4.9/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
android
builtin1
.C
toolchain/gcc/gcc-4.9/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
android
ivopts-1
.C
toolchain/gcc/gcc-4.9/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
android
pr31307
.C
toolchain/gcc/gcc-4.9/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
android
pr38572
.C
toolchain/gcc/gcc-4.9/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
android
pr38632
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr38632.C
323
utf_8
1808df9e79b8ab72983be12490ba0e31
// { dg-do compile } // { dg-require-effective-target pthread } // { dg-options "-O -ftree-parallelize-loops=2" } void foo(); void bar(int n, char *p) { try { foo(); ++n; foo(); for (int i = 0; i < n-1; ++i) p[i] = 0; } catch (...) { for (int i = 0; i < n; ++i) p[i] = 0; }...
google
android
pr23948
.C
toolchain/gcc/gcc-4.9/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
android
pr63841
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr63841.C
592
utf_8
3ab3bdd688450569b259541fd67518e3
/* { dg-do run } */ /* { dg-options "-O2" } */ #include <string> std::string __attribute__ ((noinline)) comp_test_write() { std::string data; for (int i = 0; i < 2; ++i) { char b = 1 >> (i * 8); data.append(&b, 1); } return data; } std::string __attribute__ ((noinline)) comp_test_write_good() { s...
google
android
pr22615
.C
toolchain/gcc/gcc-4.9/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
android
pr17517
.C
toolchain/gcc/gcc-4.9/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
android
dom-invalid
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/dom-invalid.C
835
utf_8
c08016841f219b69e363640eef24bd96
// { dg-message "note: file" "" } // 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 -fno-diagnostics-show-caret" } struct C { virtual const char *bar () const; }; struct D { D () : d1 (0) { } C *d2[4];...
google
android
pr37284
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr37284.C
282
utf_8
ad29c1108af522a5f6549a85ceae70af
/* { dg-do compile } */ /* { dg-options "-fstrict-aliasing" } */ void* operator new(__SIZE_TYPE__, void* __p) throw() { return __p; } class PatternDriverTop; typedef const PatternDriverTop* _Tp; void construct(_Tp* __p, const _Tp& __val) { ::new((void *)__p) _Tp(__val); }
google
android
pr20458
.C
toolchain/gcc/gcc-4.9/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
android
pr15791-5
.C
toolchain/gcc/gcc-4.9/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
android
pr24351-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr24351-2.C
650
utf_8
35351f51c829a8c2ba2180c169d060d1
/* { dg-do compile } */ /* { dg-options "-O2" } */ struct adaptor_base {}; struct bound_argument { bound_argument(); }; struct adaptor_functorint : public adaptor_base {}; struct adaptsint : public adaptor_base { adaptsint(const int& _A_functor); adaptor_functorint functor_; }; struct adaptor_functor_adaptsint { ...
google
android
restrict2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/restrict2.C
1,070
utf_8
ff162f4a33fd22637fac6b8daf4e64ca
// { dg-do compile } // { dg-options "-O2 -fdump-tree-optimized" } struct S { int *__restrict p; int q; }; S s; int f1 (S x, S y) { x.p[0] = 1; y.p[0] = 0; // { dg-final { scan-tree-dump-times "return 1" 1 "optimized" } } return x.p[0]; } int f2 (S x) { x.p[0] = 2; s.p[0] = 0; // { dg-final { scan-tree-dum...
google
android
pr22444
.C
toolchain/gcc/gcc-4.9/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
android
pr49911
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr49911.C
1,001
utf_8
7981fcbc1fe94927ebef936ad375d62d
/* { dg-do compile } */ /* { dg-options "-O2 -fstrict-enums -fno-rtti -fno-exceptions -fno-strict-aliasing -fdump-tree-vrp2" } */ extern void JS_Assert(); typedef enum { eax, ecx, edx, ebx, esp, ebp, esi, edi } RegisterID; union StateRemat { RegisterID reg_; in...
google
android
pr23624
.C
toolchain/gcc/gcc-4.9/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
android
pr8781
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr8781.C
662
utf_8
d56e4fc904579446fb892941249b3b4a
/* { dg-do compile } */ /* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */ int f(); template<typename predicate> class noop_t { const predicate &pred; public: explicit noop_t(const predicate &p) : pred(p) {} int operator()() const { return pred(); } }; template<typename predicate> inline n...
google
android
ssa-cast-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/ssa-cast-1.C
320
utf_8
393e0408cee76b2ea195f959657d773f
/* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-optimized" } */ int &f(int *a) { return *a; } /* There should be no cast as pointer and references are considered the same type. */ /* { dg-final { scan-tree-dump-times "\\(int &\\)" 0 "optimized"} } */ /* { dg-final { cleanup-tree-dump "optimized" } } */
google
android
pr37393
.C
toolchain/gcc/gcc-4.9/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
android
pr17400
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr17400.C
594
utf_8
84bb302e221d8cd2317c6c09441d615f
// Test PR 17400. Test case provided by Serge Belyshev. /* { dg-do compile } */ /* { dg-options "-O1" } */ void inc (int &); bool dec_test (int &); struct A { int c; friend void AddRef (A * p) { inc (p->c); } friend void Release (A * p) { if(dec_test (p->c)) delete p; } }; stru...
google
android
pr44706
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr44706.C
1,429
utf_8
04e3fee675a78d9acc025efe43614bc5
/* { dg-do compile } */ /* { dg-options "-O3 -fdump-tree-fnsplit" } */ class MemoryManager; class XMLExcepts { public : enum Codes { AttrList_BadIndex }; }; class XMLException { public: XMLException(const char* const srcFile, const unsigned int srcLine, MemoryManager* const memoryManager = 0); };...
google
android
pr21584-1
.C
toolchain/gcc/gcc-4.9/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
android
pr31146-2
.C
toolchain/gcc/gcc-4.9/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
android
tmmti-2
.C
toolchain/gcc/gcc-4.9/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
android
new1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/new1.C
628
utf_8
1c66c0a04e2d18d5e297d227f66382cc
// PR c++/36633 /* { dg-do compile } */ /* { dg-options "-O2 -Wall -fdump-tree-forwprop1" } */ // No particular reason for choosing forwprop1 dump to look at. struct B { ~B() {} }; struct D : public B {}; //struct D {}; struct my_deleter { void operator()(D * d) { // delete [] d; } }; struct smart_ptr ...
google
android
pr16688
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr16688.C
5,868
utf_8
890d09382f8bad07b069d8f8fe14035c
/* PR 16688. Test provided by Wolfgang Bangerth. The alias analyzer was aborting when trying to group aliases. */ /* { dg-do compile } */ /* { dg-options "-O2" } */ template<typename _Tp> struct iterator_traits; template<typename _Tp> struct iterator_traits<_Tp*> { typedef _Tp& reference; }; template<type...
google
android
pr27283
.C
toolchain/gcc/gcc-4.9/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
android
pr37337
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr37337.C
590
utf_8
5c831c14b296b96a01bdddeddc5a05ff
// PR middle-end/37337 // { dg-do compile } // { dg-options "-O2" } extern "C" { typedef struct _IO_FILE FILE; extern int __fprintf_chk (FILE *, int, const char *, ...); extern inline __attribute__ ((always_inline, gnu_inline, artificial)) int fprintf (FILE *s, const char *f, ...) { return __fprintf_chk ...
google
android
pr22071
.C
toolchain/gcc/gcc-4.9/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
android
pr57380
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr57380.C
444
utf_8
0302793462643aeaccabd5c387ce8c93
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-phiopt1" } */ struct my_array { int data[4]; }; const int& my_max(const int& a, const int& b) { return a < b ? b : a; } int f(my_array a, my_array b) { int res = 0; for (int i = 0; i < 4; ++i) { res += my_max(a.data[i], b.data[i]); } r...
google
android
forwprop-switch
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/forwprop-switch.C
606
utf_8
9879d714f3b5d9b33ab0c08161e49ae3
// { dg-do compile } // { dg-options "-O -fdump-tree-cddce1" } enum Scale { E1, E2, E3, E4, E5, E6, E7, E8 }; int Test(Scale s) { switch(s) { case E1: return 12; case E2: return 17; case E3: return 22; case E4: return 42; default: break; } return 0; } // tree forwprop sho...
google
android
pr37084
.C
toolchain/gcc/gcc-4.9/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
android
pr24238
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr24238.C
224
utf_8
2c3a0f58b5c4d9910b46c690b81523e9
/* { dg-do compile } */ /* { dg-options "-O2" } */ typedef struct SDL_Rect { unsigned short w, h; }SDL_Rect; SDL_Rect *location(); SDL_Rect inner_location() { SDL_Rect r = *location(); r.w -= 1; return r; }
google
android
ssa-sra-3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/ssa-sra-3.C
1,131
utf_8
3fc97853b7f5a33a82d43b9c8b97e80a
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* Test check use_block_copy bit propagation in sra element hierarchy. */ typedef unsigned char UINT8 ; typedef unsigned int UINT ; class C4 { public: int xy[2]; }; class C3 { public: inline void Reset() { C4 const mvMax = {0x7fff, 0x7fff}; m42(0,mv...
google
android
ssa-dom
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/ssa-dom.C
1,605
utf_8
5586b77d0fca07414e72f21f05ba12f1
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-dom1" } */ typedef long unsigned int size_t; extern void abort (void) __attribute__ ((__noreturn__)); union tree_node; typedef union tree_node *tree; union gimple_statement_d; typedef union gimple_statement_d *gimple; typedef const union gimple_statement_d *cons...
google
android
pr22550
.C
toolchain/gcc/gcc-4.9/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
android
pr19786
.C
toolchain/gcc/gcc-4.9/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
android
pr27090
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr27090.C
412
utf_8
64112b28dbb1e06f1769fe66e1cf6696
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ template <class T> struct Bar { int get() { return static_cast<T*>(this)->get2(); } }; struct Foo : public Bar<Foo> { int get2() { return x; } int x; }; int foo(Foo& f) { return f.get(); } /* { dg-final { scan-tre...
google
android
pr21463
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr21463.C
628
utf_8
6354563547a948a45e6104aad7bce512
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-phiopt1" } */ template<class T> static inline const T &ref_max(const T &a, const T &b) { return a<b ? b : a; } template<class T> static inline const T &ref_min(const T &a, const T &b) { return a<b ? a : b; } template<class T> struct foo_t { T a0, a1; T bar_ref...
google
android
restrict1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/restrict1.C
379
utf_8
fe0c4f92b4591334dd40df6bbeb06f32
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-lim1-details" } */ struct Foo { Foo(); Foo(const Foo&); int n; int * __restrict__ p; }; void bar(Foo f, int * __restrict__ q) { for (int i = 0; i < f.n; ++i) { *q += f.p[i]; } } /* { dg-final { scan-tree-dump "Executing store motion" "li...
google
android
pr40874
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr40874.C
419
utf_8
e99cd9167b2a53ab17dd6de12e8a93b3
// { dg-do compile } // { dg-options "-O -fdump-tree-optimized" } struct pf { inline pf(int(*x)(int)) : x(x) {} inline int operator()(int a) const { return x(a); } int (*x)(int); }; inline int g(int x) { return x/x - 1; } int main(int argc, char* argv[]) { pf f(g); return f(3); } // { dg-f...
google
android
pr27830
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr27830.C
252
utf_8
a4395760f907dfae0f2de3099740f694
/* { dg-do compile } */ /* { dg-options "-O" } */ struct gc{}; struct transform:public gc { double x, y, z, t; transform (void){} }; inline transform f (void) { return transform (); }; void transformed (void) { new transform (f()); }
google
android
pr34355
.C
toolchain/gcc/gcc-4.9/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
android
pr46228
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr46228.C
666
utf_8
d81b8222ae1f66cb6af87cfcc4ffe02a
// { dg-options "-fdump-tree-optimized -Os" } #include <set> #include <stdio.h> int main() { static const int array[] = { 1,2,3,4,5,6,7,8,9,10,6 }; std::set<int> the_set; int count = 0; for (unsigned i = 0; i < sizeof(array)/sizeof(*array); i++) { std::pair<std::set<int>::iterator, bool> result = t...
google
android
pr50741
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr50741.C
221
utf_8
89739f72c7f9bd6fcc4c05cbe340d2f7
/* { dg-do compile } */ /* { dg-options "-O2 -g" } */ /* PR middle-end/50741 */ struct PublishLo { const char *functionName; ~PublishLo(); }; struct A { A(); }; A::A() { static PublishLo _rL_53 = {__FUNCTION__}; }
google
android
pr33604
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr33604.C
1,145
utf_8
897f1bc17b61d0c4b8fa8b6108d26788
/* { dg-do run } */ /* { dg-options "-O -fdump-tree-optimized-vops" } */ struct Value { double value; Value(double value_) : value (value_) {} operator double() const { return value; } Value& operator=(double other) { value = other; } }; struct Ref { const Value& m; Ref(const Value& m_) : m(m_) {} opera...
google
android
pr22488
.C
toolchain/gcc/gcc-4.9/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
android
pr19476-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr19476-1.C
413
utf_8
4973c94242d68f4cf3a6e6e3e28d177e
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-ccp1" } */ // See pr19476-5.C for a version without including <new>. #include <new> int f(){ return 33 + (0 == new(std::nothrow) int); } int g(){ return 42 + (0 == new int[50]); } /* { dg-final { scan-tree-dump "return 42" "ccp1" } } */ /* { dg-final { ...
google
android
pr23164
.C
toolchain/gcc/gcc-4.9/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
android
inline-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/inline-1.C
770
utf_8
7fbe035ffed774616a6e0d8418e326fd
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-einline --param max-early-inliner-iterations=3" } */ /* { dg-add-options bind_pic_locally } */ namespace std { extern "C" void puts(const char *s); } template <class T, class E> void foreach (T b, T e, void (*ptr)(E)) { for (; b != e; b++) ptr(*b); } v...
google
android
pr24231-2
.C
toolchain/gcc/gcc-4.9/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
android
pr46734
.C
toolchain/gcc/gcc-4.9/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
android
stabilize1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/stabilize1.C
259
utf_8
70c6731d58337bfa2df66f13f0494e2e
// PR c++/53356 // { dg-options "-fdump-tree-gimple" } // { dg-final { scan-tree-dump-not "= 0" "gimple" } } // { dg-final { cleanup-tree-dump "gimple" } } class A {}; struct B { operator const A &() const; }; A* cause_ICE() { return new A(B()); }
google
android
copyprop
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/copyprop.C
30,166
utf_8
618c4cf23c93445ac05904384e804f11
// PR 39548 verify ssa ICE // // { dg-do compile { target { lp64 } } } // { dg-options "-Wno-error -fno-exceptions -fno-tree-vrp -O2 -fprofile-generate -finline-limit=500 -std=c++98" } // #include <map> #include <vector> #include <iostream> #include <cstdlib> using namespace std; template<typename _FIter, typename ...
google
android
pr36766
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr36766.C
299
utf_8
2f183741ea748ec4b30350602de8d364
// PR tree-optimization/36766 // { dg-do compile } // { dg-options "-O -fnon-call-exceptions" } struct A { ~A () { int *a = this->b; } int *b; }; struct B : A { B () { int *a = this->b; } ~B () { int *a = this->b; } }; void foo () { B *c = new B; delete c; }
google
android
pr22279
.C
toolchain/gcc/gcc-4.9/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
android
pr24351-1
.C
toolchain/gcc/gcc-4.9/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
android
empty-2
.C
toolchain/gcc/gcc-4.9/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
android
pr41905
.C
toolchain/gcc/gcc-4.9/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
android
pr19952
.C
toolchain/gcc/gcc-4.9/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
android
pr14814
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr14814.C
541
utf_8
78fcf929e1c1fde7a72e4f29b7956fd9
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-forwprop2" } */ class YY { public: YY(const YY &v) { e[0] = v.e[0]; e[1] = v.e[1]; e[2] = v.e[2]; } double &y() { return e[1]; } double e[3]; }; class XX { public: YY direction() const { return v; } YY v; }; int foo(XX& r) { if (r.direction().y()...
google
android
pr15791-4
.C
toolchain/gcc/gcc-4.9/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
android
pr20280
.C
toolchain/gcc/gcc-4.9/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
android
pr35144
.C
toolchain/gcc/gcc-4.9/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
android
ssa-sra-1
.C
toolchain/gcc/gcc-4.9/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
android
pr19476-4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr19476-4.C
283
utf_8
38138caed0bb9c2e32933736d0d5978a
/* { dg-do compile } */ /* { dg-options "-O3 -fno-delete-null-pointer-checks -fdump-tree-optimized" } */ #include <new> int g(){ return 42 + (0 == new int); } /* { dg-final { scan-tree-dump-not "return 42" "optimized" } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */
google
android
obj-type-ref
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/obj-type-ref.C
370
utf_8
9ea732e01391f201c070578af2e42c8a
/* { dg-do compile } */ /* This used to fail with type-checking enabled because we didn't expect OBJ_TYPE_REF expressions. */ class QObject {}; class Pile : public QObject { public: virtual void setVisible(void); }; class Spider { void dealRow(); Pile *redeals[5]; int m_redeal; }; void Spider::dea...
google
android
pr27549
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tree-ssa/pr27549.C
1,237
utf_8
b7fb5b853f7854c141799346f2354a0c
// PR tree-optimization/27549 // { dg-do compile } // { dg-options "-O2" } typedef __SIZE_TYPE__ size_t; struct E { virtual ~E () {} virtual size_t e () const = 0; virtual void f (char *x) const = 0; }; struct F : public E { F () {} virtual ~F () {} virtual size_t e () const { return 0; } virtual void ...
google
android
using20
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/using20.C
244
utf_8
1546c98e77fe28c2e18d5070a8ead0fe
// PR c++/40476 namespace A { int i; // { dg-message "i" } } using namespace A; namespace B { namespace B2 { int i; // { dg-message "i" } } using namespace B2; } using namespace B; int j = ::i; // { dg-error "ambiguous" }
google
android
using48
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/using48.C
216
utf_8
ec22ae77b5d2798d65a2cf945271e24c
// PR c++/51190 // { dg-do compile } struct A { int i; }; template<typename> struct B { A* p; }; template<typename T> struct C : B<T> { using B<T>::p; C() { p->i; } int i1, i2, i3, i4, i5; }; C<A> c;
google
android
conv-4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/conv-4.C
494
utf_8
a96892a658bcb84c3b0bb4a492c464f0
// { dg-do compile } // { dg-final { scan-assembler "_ZNK1AcviEv" } } // { dg-final { scan-assembler-not "_ZNK1VcviEv" } } struct V { operator int () const; }; struct A : virtual V { operator int () const; // this one }; struct B1 : A, virtual V { }; struct B2 : virtual V, A { }; int Foo (B1 const &b) { return b...
google
android
using26
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/using26.C
269
utf_8
3706c41d3b59585c1c93c01666a1b38c
// PR c++/26256 // { dg-do compile } struct A { double next; }; struct B { private: int next; // { dg-error "private" } }; struct C { int next; }; struct D : A, B, C // { dg-error "context" } { using B::next; void f() { next = 12; } };
google
android
extern-c-redecl5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/extern-c-redecl5.C
355
utf_8
a1cbc0febcffce8e0f164e0feb720ea6
// Origin: PR c++/41020 // { dg-do compile } class frok { int this_errno; friend int fork (void); // { dg-message "previous declaration .*?C\\+\\+. linkage" } }; extern "C" int fork (void) // { dg-error "conflicting declaration .*?C. linkage" }} { frok grouped; return grouped.this_errno; }
google
android
using47
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/using47.C
288
utf_8
685c1d7572e255b422692306b6984c2e
// PR c++/51152 // { dg-do compile } struct A { int a; }; struct B { int b1; int b2; A b3; }; struct C : B { typedef int R; typedef int S; typedef int T; using B::b1; using B::b2; using B::b3; void f() { b3.a; b3.~A(); } };
google
android
anon5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/anon5.C
340
utf_8
f6ed60ec36721bb21df4b4b0a445bcff
// PR c++/28409 // shouldIbevisible should be emitted because it's an extern "C" decl with // external linkage, even though it's in the anonymous namespace. namespace { extern "C" int shouldIbevisible() { return 0; } } namespace t { extern "C" int shouldIbevisible(void); } int main(void) { return t::sh...
google
android
using24
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/using24.C
185
utf_8
b6a4f61b322984d6698a73fe3804d547
// PR c++/26256 // { dg-do compile } struct A { int next; }; struct B { int next; }; struct C : B { using B::next; }; struct D : A, C { using C::next; void f() { next = 1; } };
google
android
hidden-temp-class5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/hidden-temp-class5.C
231
utf_8
5a5f41370026fd44a0bad756fb1c01f2
// { dg-do compile } class A { template <class T> friend class B; }; template <class T> class B; B<int>* b;
google
android
ambig2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/ambig2.C
414
utf_8
b9932960a2c5344244e109ba4c3ad748
// { dg-do compile } // Bug 16889:Undetected ambiguity. struct B { int i; // { dg-message "int B::i" "" } }; struct B1 : virtual B {}; struct B2 : B {}; struct BB : B1, B2 {}; int i = BB().i; // { dg-error "ambiguous" "" }
google
android
hidden-temp-class3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/lookup/hidden-temp-class3.C
234
utf_8
ab292b30848b42061657e1886f73b081
// { dg-do compile } class A { template <class T> friend class B; template <class T> class B; B<int> *b; };