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
spec1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/spec1.C
147
utf_8
82939fb6cdaf944681687fca28788638
// Check that we allow an exception specification on a reference-to-function. // { dg-do compile } void f () throw (); void (&fp)() throw () = f;
google
android
uncaught4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/uncaught4.C
429
utf_8
fcfb3b280dbfcc3f1855c13475f2e865
// PR c++/41174 // { dg-do run } #include <exception> #define assert(E) if (!(E)) __builtin_abort(); struct e { e() { assert( !std::uncaught_exception() ); try { throw 1; } catch (int i) { assert( !std::uncaught_exception() ); throw; } } }; int main() { try { throw e();...
google
android
cleanup2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/cleanup2.C
555
utf_8
39018f18e1fc86801376affc388c0539
// PR c++/12491 // { dg-do compile } // { dg-options "-O2" } // The return statements are necessary to trigger this bug. class Object { public: virtual ~Object (void) { return; } }; class AutoPtr { public: ~AutoPtr (void) { delete m_rep; return; } private: const Object *m_rep; }; class Handle { public: ~Han...
google
android
throw2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/throw2.C
75
utf_8
7f4aab5cdb2954060fab6ebdbf157a33
// PR c++/16851 struct A { A(int); }; void f(int t) { throw (3,A(t)); }
google
android
async-unwind2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/async-unwind2.C
3,905
utf_8
36fd130e2360fc513ea717fcf2d40d32
// PR rtl-optimization/36419 // { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } // { dg-require-effective-target fpic } // { dg-options "-Os -fasynchronous-unwind-tables -fpic -fno-inline" } #include <stdarg.h> extern "C" void abort (); extern "C" { struct R { int r1; unsigned short r2[1]; }; int bar1...
google
android
gcsec1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/gcsec1.C
616
utf_8
08684655cbbdb7a5f4f96546c22535c1
/* PR other/29639 */ /* AIX gld supports garbage collection. But AIX gcc does not support -ffunction-sections or -fdata-sections. */ /* { dg-do run { xfail rs6000-*-aix* powerpc*-*-aix* } } */ /* { dg-require-gc-sections "" } */ /* { dg-options "-ffunction-sections -Wl,--gc-sections" } */ extern "C" void abort (v...
google
android
forced3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/forced3.C
1,243
utf_8
642226c103ec60194075b05447f1ba6a
// HP-UX libunwind.so doesn't provide _UA_END_OF_STACK. // { dg-do run { xfail "ia64-hp-hpux11.*" } } // Test that forced unwinding calls std::unexpected going // through a nothrow function. #include <unwind.h> #include <stdlib.h> #include <exception> #include <string.h> static _Unwind_Reason_Code force_unwind_stop...
google
android
forced1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/forced1.C
1,588
utf_8
b9e40a9f396b0f5897d9a01a383448d0
// HP-UX libunwind.so doesn't provide _UA_END_OF_STACK. // { dg-do run { xfail "ia64-hp-hpux11.*" } } // Test that forced unwinding runs all cleanups. Also tests that // rethrowing doesn't call the exception object destructor. #include <unwind.h> #include <stdlib.h> #include <string.h> static int test = 0; static ...
google
android
throw3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/throw3.C
65
utf_8
45cea983dcee48d4c249758ac270c782
// PR c++/19312 struct A {}; void foo(A a) { throw (A)a; }
google
android
cond1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/cond1.C
1,375
utf_8
bd6bd3cc57144658b6137dc9123743ed
// PR c++/7050 // { dg-do run } extern "C" void abort(void); #define CI(stmt) try { stmt; abort(); } catch (int) { } struct has_destructor { ~has_destructor() { } }; struct no_destructor { }; int PI(int& i) { return i++; } int main(int argc, char *argv[]) { (argc+1 ? has_destructor() : throw 0); CI((a...
google
android
alias1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/alias1.C
565
utf_8
562ca7c694e89bb3ac76711c239d5c5e
// { dg-do run } // { dg-options "-O3" } /* PR c++/28139: disjoint alias sets for the store from expand_start_catch_block than for loading P result in P being loaded before it is initialized for sh-elf. */ extern "C" { void exit (int) __attribute__ ((noreturn)); } int i_glob = 42; int *p0 = &i_glob; typedef in...
google
android
ehopt1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/ehopt1.C
665
utf_8
b8f0f8226fe799bdbefac986e559eb73
// into the following try block, so we lost its destructor call. // { dg-do run } template <class T, class U> class A; bool b; int count; template <> class A<int, int> { public: A(int) { ++count; if (b) throw 1; } A(const A&) { ++count; if (b) throw 1; } ~A() { --count; if (b) throw 1; } }; typedef A<int, int> B;...
google
android
pr29166
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/pr29166.C
13,442
utf_8
f31dc353c4075f1cee72592569d86e2e
// PR 29166: r4-r7 corrupted when unwinding. // { dg-do run } class Ex { public: int val; Ex( int v ) : val( v ) { } }; void doIt() { int OFF( 1000 ); register int v1=OFF+1,v2=OFF+2,v3=OFF+3,v4=OFF+4,v5=OFF+5,v6=OFF+6,v7=OFF+7,v8=OFF+8,v9=OFF+9,v10=OFF+10; register int v11=OFF+11,v12=OFF+12,v...
google
android
nested-try
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/nested-try.C
282
utf_8
c8f6f4459095bf15bd799a6d96061277
// { dg-do compile } // Nested try statements shadowing each other was crashing in EH edge redirection. // PR middle-end/40043 struct A { ~A(); void foo(); }; void bar() { A a; try { A b; try { b.foo(); } catch (int) {} } catch (int) {} }
google
android
comdat1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/comdat1.C
726
utf_8
5a4cb3c8d739e6d9bde39ba9bebd19e2
// PR target/29487 // { dg-do link } // { dg-options "-O2" } /* This function is not defined. The compiler should optimize away all calls to it. */ extern void undefined () throw (); extern void f1(); inline void f2() { f1(); } /* This function will be COMDAT if not inlined. */ inline void f1() {} /* This ...
google
android
spec11
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/spec11.C
594
utf_8
45bfdfe42eb7ac9675e33aa8fc84d845
// Make sure that we force an LSDA for a throw() spec with -fnothrow-opt so // that the personality routine will call terminate. Also check that we // optimize away the EH cleanup for var because the personality routine // will call terminate before unwinding: there should not be an EH region // (i.e. LEHB/LEHE labels...
google
android
dtor1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/dtor1.C
369
utf_8
1521a64435be961406151b3df9665c39
// PR c++/411 // Test that a fully-constructed base is destroyed before transferring // control to the handler of a function-try-block. // { dg-do run } int ad; int r; struct A { ~A() { ++ad; } }; struct B: public A { ~B(); }; B::~B () try { throw 1; } catch (...) { if (!ad) r = 1; ret...
google
android
filter2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/filter2.C
627
utf_8
12090d44df12e33d62fc4a9cf4bcd257
// Test that terminate gets run when a catch filter fails to match while // running destructors. Original bug depended on a::~a being inlined. // { dg-do run } // { dg-options -O } #include <exception> #include <cstdlib> struct e1 {}; struct e2 {}; struct a { a () { } ~a () { try { throw e1(); }...
google
android
uncaught3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/uncaught3.C
1,310
utf_8
794cca1303d30d70c6d5c47c972e23a7
// { dg-do compile { target powerpc*-*-darwin* } } // { dg-final { scan-assembler-not "__cxa_get_exception" } } // { dg-options "-mmacosx-version-min=10.4" } #include <exception> #include <cstdlib> struct Check { int obj1, obj2; bool state; }; static Check const data[] = { { 0, 0, false }, // construct [0] ...
google
android
simd-4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/simd-4.C
1,144
utf_8
d46aab23b9e76d1da7631a4184db1622
/* { dg-do run { target powerpc*-*-darwin* } } */ /* { dg-options "-fexceptions -fnon-call-exceptions -O -maltivec" } */ #include <cstdlib> #include <cstring> #include <signal.h> typedef int __attribute__((vector_size(16))) v; v vv[32]; volatile v vt = { 1, 2, 3, 4 }; void clobber_vrs(void) { }; void (*volatile fp...
google
android
pr42859
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/pr42859.C
201
utf_8
a081cebee3412cc144c315a53ce4d824
// { dg-do compile } void start (void); void ptw32_terminate (void) { try { try { start (); } catch (int) { } catch (int) { } } catch (int) { } }
google
android
unexpected1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/unexpected1.C
478
utf_8
1ff41980dd5d1398018fd0852361341a
// PR 3719 // Test that an unexpected handler can rethrow to categorize. // { dg-do run } #include <exception> extern "C" void abort (); struct One { }; struct Two { }; static void handle_unexpected () { try { throw; } catch (One &) { throw Two (); } } static void doit () throw (Two) { throw ...
google
android
partial1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/eh/partial1.C
347
utf_8
b0149e5a2fbd5ae0fa0d1eb763a1f18e
// PR c++/41449 // { dg-do run } struct A { A() {} A(const A&) { throw 1; } }; int bs; struct B { B() { ++bs; } B(const B&) { ++bs; } ~B() { --bs; } }; struct C { B b1; A a; B b2; }; int main() { { B b1, b2; A a; try { C c = { b1, a, b2 }; } catch (...) {} } if (bs != 0)...
google
android
const2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/const2.C
377
utf_8
2e4398a10938bba8e5fd13cd2d12e691
// Bug 20505: ICE with -ggdb2 struct b { static const int d; virtual bool IsEmpty() const=0; int e,c; }; const int b::d = ((__SIZE_TYPE__)(&((b*)1)->c) - 1);
google
android
pr56294
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr56294.C
702
utf_8
576767a84c6996b5b2023170e0bb7edf
// { dg-do compile } // { dg-options "-fno-ipa-sra -fcompare-debug" } // { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } struct comp_cost { int cost; unsigned complexity; }; struct cost_pair { struct iv_cand *cand; }; struct iv_use { unsigned n_map_members; cost_pair *cost_map; }; struct iv_cand { unsigned id; ...
google
android
const5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/const5.C
77
utf_8
8c7b9540eb6278b6bd197c3c55ae7945
// PR c++/49092 struct A { A(); }; int i; A::A() { const int j = i; }
google
android
using1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/using1.C
156
utf_8
7f09e3de1a839529b938c84a3bd3aac3
// PR c++/19406 // { dg-do compile } struct A { virtual int foo(); double d; }; struct B : public A { A::d; // { dg-warning "deprecated" } }; B b;
google
android
pr29906
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr29906.C
156
utf_8
fa240b5916a88de396432f0b952489b3
// { dg-do compile } // { dg-options "-g -fno-emit-class-debug-always" } struct A{ typedef int T; virtual ~A(); }; struct B:public A{ using A::T; };
google
android
localclass1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/localclass1.C
280
utf_8
17ae6f1aec2d20dbfc8b7e6f725645a7
// PR c++/52637 // { dg-do compile { target c++11 } } // { dg-options "-g" } template <typename T> struct C { }; template <typename V> void f(V v) { struct B {}; C<B> c; } template <typename T> void g(T t) { struct A { } a; f (a); } struct D { void h() { g(0); } };
google
android
pr27657
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr27657.C
96
utf_8
a9cf363ccde67638eed4148103577d18
/* { dg-do link } */ const char s[] = ""; const char *const p = s; int main() { return 0; }
google
android
vartrack1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/vartrack1.C
1,379
utf_8
9ddce3a837af3a01b33e86ac89b2a282
// This testcase used to hang the compiler in vt_find_locations. // { dg-do compile } // { dg-options "-O2 -g" } struct S { int a; S *b, *c, *d; }; struct T { void f1 (S *x); void f2 (S *x); void f3 (S *x, S *y); S *e; }; void T::f3 (S *x, S *y) { while (x != this->e && (!x || x->a == 1)) { i...
google
android
pr34895
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr34895.C
375
utf_8
1b42af04a1371351292650a3fd822c78
// { dg-do compile } // { dg-options "-O2 -g" } // struct A { A() { } unsigned operator()() { return 1; } }; struct B: public A { typedef const A base; using base::operator(); B() { } }; int main() { B b; }
google
android
debug3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug3.C
878
utf_8
b5c1d1e26252e6e306ee37c885cc449b
// PR optimization/5547 // This testcase caused ICE on IA-32, since DWARF-2 was unable // to emit location expression for parameter a of operator+. // { dg-do compile { target fpic } } // { dg-options "-fpic" } struct A { char *s; }; inline A operator+ (char a, const A &b) { A s; s.s = new char[12]; s.s[0] = a;...
google
android
crash1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/crash1.C
164
utf_8
36f088b22dca6ab78668e7d505839fbd
template <typename T> class foo { T t; }; class bar; typedef foo<bar> foobar; class obj { virtual foobar* yeah() = 0; }; class bar : virtual public obj { };
google
android
const4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/const4.C
54
utf_8
b196cb4af4d539f545ae961b8905ba24
/* { dg-do compile } */ const __complex__ int x = 2i;
google
android
pr16792
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr16792.C
117
utf_8
ee0ec04c39cca9bd75fd40da91daaab0
// { dg-do compile } struct S { S(); }; int foo (S b, double j) { }; int main () { int foo (S, double); S v; }
google
android
pr54831
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr54831.C
230
utf_8
5dc7cab98a90e4bc7730b184635619bd
// PR debug/54831 // { dg-do compile } // { dg-options "-O -fno-split-wide-types -g" } struct S { int m1(); int m2(); }; typedef void (S::*mptr) (); mptr gmp; void bar (mptr f); void foo (mptr f) { f = gmp; bar (f); }
google
android
const1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/const1.C
245
utf_8
e4aee91d21a8cdbd286094f893319c70
// PR c++/6381 // Bug: we were emitting the initializer for bar, which referenced foo, // which was not emitted. // { dg-options "-O" } // { dg-do link } static const int foo[] = { 0 }; static const int * const bar[] = { foo }; int main() {}
google
android
pr46123
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr46123.C
583
utf_8
acf2eda2b9c880269b8a202aac906113
// PR debug/46123 // { dg-do compile } // { dg-options "-g -feliminate-dwarf2-dups" } 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; } }; b...
google
android
pr53466
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr53466.C
904
utf_8
35213a3348223f6129c0a22fa47b3006
// { dg-do compile } // { dg-options "-foptimize-sibling-calls -fcompare-debug" } typedef union gimple_statement_d *gimple; typedef gimple gimple_seq_node; typedef struct { gimple_seq_node ptr; void *seq; void *bb; } gimple_stmt_iterator; struct gimple_statement_base { gimple next; }; union gimple_stat...
google
android
using5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/using5.C
171
utf_8
12ada26f2783bbf28bd0941522b565e2
// PR c++/26256 // { dg-do compile } struct A { int i; }; struct B { int i; }; struct C : A, B { using B::i; int f (); }; int C::f() { return i; }
google
android
static1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/static1.C
237
utf_8
c3f392076ad11f8768ef0321b89abd5f
// PR c++/24569 template <int dim> struct S { static const int u = 2 * dim; static const int p[u]; static int f(); }; template <> inline int S<3>::f () { return 1; } template <int dim> const int S<dim>::u; template class S<3>;
google
android
enum-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/enum-1.C
206
utf_8
479930fb5faf8196de02f2765efd234d
/* Verify that used enums are output. */ /* { dg-do compile } */ /* { dg-final { scan-assembler "JTI_MAX" } } */ int var; enum java_tree_index { JTI_MAX }; void function (void) { var = JTI_MAX; }
google
android
template2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/template2.C
232
utf_8
23dff563f4e6898790a381f0897b988f
// PR c++/57545 template<typename T, long unsigned int N> struct array { T data[N]; }; template<typename T> struct derived { typedef long unsigned int size_type; static const size_type n = 42; array<int, n> a; };
google
android
template1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/template1.C
150
utf_8
7e13d86d33b17cfb7cdf61b7b8cca961
// PR c++/5118 template <int Count> class d { public: d() { myInt = Count; } int myInt; virtual ~d() {} }; volatile d<5> instD;
google
android
dwarf2-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2-2.C
174
utf_8
a11c6bcd4c8cdca98697be5126edd6c1
// PR debug/27057 // { dg-do compile } // { dg-options "-g -feliminate-dwarf2-dups" } namespace N { } struct A { void foo (); }; void A::foo () { using namespace N; }
google
android
debug8
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug8.C
35
utf_8
f3e5e740f9e7210ccece705c6d548267
struct t{}; struct g : public t{};
google
android
debug7
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug7.C
272
utf_8
fa08fe949e7e3b814b4413eb1c2e0b1e
// { dg-do compile } // { dg-prune-output "note" } void f (int); int main() { int a = 4; int b = 5; int (*x)[b] = new int[a][b]; // { dg-error "" } x[2][1] = 7; for (int i = 0; i < a; ++i) for (int j = 0; j < b; ++j) f (x[i][j]); delete [] x; }
google
android
dwarf2-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2-1.C
335
utf_8
7976c74d25a46d6108c18e4ceb4cef33
// { dg-options "-feliminate-dwarf2-dups" } namespace N { struct Base { int m; }; struct Derived : Base { using Base::m; }; } N::Derived thing;
google
android
pr56819
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr56819.C
449
utf_8
5c1e2db64783ad9531a0a03f6e23da46
// PR debug/56819 // { dg-do compile } // { dg-options "-fcompare-debug" } // { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } template <typename> struct A { template <typename> struct B; }; template <typename> struct C { typedef int I; }; template <typename T> class D { typedef A <void> E; typedef t...
google
android
pr46338
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr46338.C
296
utf_8
7f8f717196eec3c8c2e12b8525a3baa3
// PR debug/46338 // { dg-do compile } // { dg-require-profiling "-fprofile-generate" } // { dg-options "-O -fprofile-generate -fcompare-debug" } void bar (); struct S { int f () { } }; S *s; void foo (int x) { if (x) return; bar (); for (int j = 0; j < s->f (); j++) ; }
google
android
debug6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug6.C
55
utf_8
aae7d3d75005a60ab912ae1b3feefdd9
// { dg-do compile } void foo() { int i=1, x[i]; }
google
android
pr22514
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr22514.C
265
utf_8
91880dfb66fda0db4ddabf486346b755
/* { dg-do compile } */ namespace s { template <int> struct _List_base { int _M_impl; }; template<int i> struct list : _List_base<i> { using _List_base<i>::_M_impl; } // { dg-error "after struct definition" } } s::list<1> OutputModuleListType;
google
android
debug5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug5.C
114
utf_8
d8a635e6af7e5d8a716c4330769d87a8
// { dg-do compile } int foo() { int a = 1; int b = 1; int e[a][b]; e[0][0] = 0; return e[a-1][b-1]; }
google
android
debug2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug2.C
767
utf_8
cece96666e504d9287aaadf8a4855138
/* Verify that sched re-inserts needed scopes properly. */ /* { dg-do compile } */ /* { dg-options "-mcpu=ev5" { target alpha*-*-* } } */ template <class T> inline void foo() { void (T::*x)() __attribute__ ((__unused__)) = &T::bar; } template <class T> struct D { void bar() { } T i; }; template <class T> st...
google
android
using2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/using2.C
173
utf_8
06ba44c6640fe57a83e614bcb293ca4d
// PR c++/22489 namespace N { } struct T { T () { } }; void bar () { struct U : public T { void baz () { using namespace N; } } u; u.baz(); }
google
android
debug4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug4.C
526
utf_8
aaa5bddbbd1e77e4f951cd3e1e37f5f5
/* PR debug/5770 This testcase failed at -O -g because the following constants were optimized away since they were never referenced, but since they are variables with initializers, rtl_for_decl_location run expand_expr on their initializers and returned it. This lead to references to constants which were...
google
android
typedef2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/typedef2.C
116
utf_8
798848d35df1829cb7c468058c887871
// PR c++/17695 template<typename T> struct A { T t; A(); }; struct B { B() { typedef int C; A<C> a; } } b;
google
android
trivial
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/trivial.C
52
utf_8
f50cc26d9a41a3cc4afb62032326372f
/* { dg-do run } */ int main(void) { return 0; }
google
android
pr46241
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr46241.C
504
utf_8
2a6db67bb06a2af57cbd8a77d80a74e2
class btIDebugDraw; class btCollisionWorld { virtual btIDebugDraw* getDebugDrawer() { }; static void rayTestSingle(); }; class btTriangleCallback { public: virtual ~btTriangleCallback(); }; class btTriangleRaycastCallback: public btTriangleCallback { public: btTriangleRaycastCallback(); }; void btColli...
google
android
pr46583
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr46583.C
624
utf_8
505d230c3e88dcfe556c16329cc19145
// PR debug/46583 // { dg-do compile } // { dg-options "-O -fno-inline -fipa-cp -fipa-cp-clone -fcompare-debug" } // { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } template < typename = unsigned long >struct A { unsigned long elems[3]; unsigned long *begin () { return 0; } }; void bar (unsigned lo...
google
android
pr47209
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr47209.C
161
utf_8
a864ac9ace6ee08b0ae00899e67445f0
// { dg-do compile } // { dg-options "-femit-struct-debug-baseonly" } struct A { void foo (); }; struct B : A { typedef const A base; using base::foo; };
google
android
using4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/using4.C
230
utf_8
4638bb2f7378dcf084ea6aca239d1536
// PR c++/26256 // { dg-do compile } struct A { typedef char type; }; struct B { typedef int type; }; struct C : A, B { using A::type; type f (type); }; C::type C::f( type ) { type c = 'e'; return c; }
google
android
typedef3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/typedef3.C
158
utf_8
de7626032b99ed0b36b4dc7fb3f18f9d
// PR debug/16261 // { dg-do compile } namespace N { struct A {}; typedef A B; } void foo() { struct C { C(N::B) {} }; N::B b; C c(b); }
google
android
pr43010
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr43010.C
253
utf_8
50e4a9b0417cf81d17db932d6e6767fd
// PR debug/43010 // { dg-do compile } // { dg-options "-g -femit-struct-debug-baseonly" } # 1 "foo.C" # 1 "bar.h" 1 typedef struct { int i; } S __attribute__((aligned)); typedef struct { struct { int i; } j; } T __attribute__((aligned)); # 1 "foo.C" 2
google
android
enum-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/enum-2.C
260
utf_8
7ca1d4c7ad1e18f7eebfa4742477778c
/* Verify that used enums are output. */ /* { dg-do compile } */ /* { dg-final { scan-assembler "JTI_MAX" } } */ int var; enum java_tree_index { JTI_MAX }; template<int X> void tmpl (void) { var = JTI_MAX + X; } void function (void) { tmpl<2>(); }
google
android
debug9
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug9.C
333
utf_8
21cf4d633ed522aaeda6d51af07ab604
/* { dg-do assemble } */ /* This testcase requires entries in the debug_range section in DWARF which refer to a vague linkage function. */ struct s { ~s (); }; bool f1 (); s f2 (s); template<int x> void f3(const s & a) { while (f1 () && f1 ()) { s c = f2(a); } } int main() { f3<0>(s ()); ...
google
android
using3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/using3.C
81
utf_8
e3e47848d7edc7d04e996db8969c01c0
// PR debug/31899 namespace NS { int x = 0; int &ref = x; } using NS::ref;
google
android
debug1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/debug1.C
766
utf_8
2b6f3bdb657c8865549db08f96a15223
// Test whether dwarf2 debug info works with named return value optimization // { dg-do compile } struct S { virtual ~S(); S (const char *str); S& operator= (const char *str); operator const char *() const; S& operator+= (const char *str); }; inline S operator+ (const char *s1, const S &s2) { S x (s1); x...
google
android
nullptr01
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/nullptr01.C
441
utf_8
a1164cb89fd7c9fa7a1570031ce48fc6
// Test that debugging backends don't crash on NULLPTR_TYPE. // { dg-do compile { target c++11 } } // { dg-options "-fabi-version=0" } typedef decltype(nullptr) nullptr_t; nullptr_t np1; void f (nullptr_t) { } template <class T> struct A { }; template <class T> nullptr_t g(T t); template <> nullptr_t g(A<nullptr_t>) ...
google
android
using6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/using6.C
225
utf_8
428eb41e10eafbf014126cce3925ce57
// PR c++/51189 // { dg-do compile } struct A { int i1, i2, i3, i4, i5, i6; }; struct B : A { using A::i1; using A::i2; using A::i3; using A::i4; using A::i5; using A::i6; }; struct C : B { using B::i1; };
google
android
anonunion1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/anonunion1.C
175
utf_8
e71a3440857a0df24410cbe91e45c678
// PR debug/9039 // Verify that the debugging backends don't get confused by ALIAS_DECLs. int foo() { union { int z; unsigned int w; }; w = 0; return 0; }
google
android
pr47283
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr47283.C
725
utf_8
3982c90f2cbd3107c17140c0b6d8f6b3
// PR debug/47283 // { dg-do compile } template <typename T> inline const T & f1 (const T &a, const T &b) { if (a < b) return b; return a; }; struct A { A (int w, int h) { a1 = w; } A f2 (const A &) const; int a1, a2; }; inline A A::f2 (const A &x) const { return A (f1 (a1, x.a1), f1 (a2, x.a2)); }; str...
google
android
namespace1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/namespace1.C
2,767
utf_8
8d1c97a9b811ba8c9a789baf97c48ce4
/* Test DWARF namespace support. This test case is based on GDB testsuite test case. */ /* { dg-do compile } */ namespace AAA { char c; int i; int A_xyzq (int); char xyzq (char); class inA { public: int xx; int fum (int); }; }; int AAA::inA::fum (int i) { return 10 + i; } namespace BBB {...
google
android
namespace2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/namespace2.C
86
utf_8
98d1fa8a42200722f612a8f915bb9673
// PR debug/36278 // { dg-do compile } namespace N { typedef void T; } using N::T;
google
android
pr54828
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr54828.C
215
utf_8
4926044cdcc2787b340e6d8bc2ed9ca4
// PR debug/54828 // { dg-do compile } // { dg-options "-g" } struct T { T (); virtual ~T (); }; struct S : public virtual T { S (); virtual ~S (); }; int v; void foo (char *); S::S () { char s[v]; foo (s); }
google
android
pr44182
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr44182.C
304
utf_8
20fe827262881d91cf4f447c1af56cd7
// PR tree-optimization/44182 // { dg-do compile } // { dg-options "-fcompare-debug" } struct S { int i; S (); ~S (); void f1 (); void f2 (S s) { f3 (s.i); for (int j = 0; j < s.i; j++) f1 (); } void f3 (int j) { if (j > i) f1 (); } }; void f (S *x) { x->f2 (S ()); }
google
android
ra1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/ra1.C
1,726
utf_8
a5e8d546d53a780cc3eb41574ea9f263
/* { dg-options "-fcompare-debug" } */ enum signop { SIGNED, UNSIGNED }; enum tree_code { FOO, BAR }; enum tree_code_class { tcc_type, tcc_other }; extern enum tree_code_class tree_code_type[]; struct tree_base { enum tree_code code : 8; unsigned unsigned_flag : 1; }; struct tree_def { tree_base base; struct...
google
android
pr45660
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr45660.C
217
utf_8
5a5294abaaa02cbee89edeef4322e392
// PR debug/45660 // { dg-do compile } // { dg-options "-g -fno-inline" } void test () { struct S { typedef void (**T) (void); static T i (void) { return 0; } }; S s; if (s.i ()) *s.i () = 0; }
google
android
typedef1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/typedef1.C
168
utf_8
863c8434199f0ac4d3a2d8d915bd5d1a
// PR debug/6436 // { dg-do compile } typedef struct { unsigned int a0, a1; } A __attribute__ ((aligned(8))); typedef struct { A a; } B; struct C { B *bp; };
google
android
pr53860
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr53860.C
163
utf_8
92838deb61f844cfa8f771fbd40cea5f
// PR debug/53860 // { dg-do compile } // { dg-options "-fkeep-inline-functions -fdebug-types-section" } void foo () { struct S { S () { } }; }
google
android
pr44178
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr44178.C
633
utf_8
04c1c1f10e5ac50150955c433bd5f2e1
// PR debug/44178 // { dg-do compile } // { dg-options "-funroll-loops -fcompare-debug" { target i?86-*-* x86_64-*-* } } // { dg-options "-fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" { target i?86-*-* x86_64-*-* } } struct A { A (); A (const A &) {} A &operator = (const A &); }; struct B { ...
google
android
pr47106
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr47106.C
526
utf_8
3abaf4526cf8f9d1c1372f2a5a9526ab
// { dg-do compile } // { dg-options "-O -fpartial-inlining -flto -fconserve-stack -fcompare-debug" } // { dg-require-effective-target lto } // { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } void end (int, int) __attribute__ ((__noreturn__)); struct S { int i; S *s; }; inline bool f (S *s) { if (!s->s)...
google
android
pr30898
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr30898.C
103
utf_8
bf050d057433140d0ed2aeeab122c5be
// { dg-do compile } double foo() { union { int i; double d; }; i = 0; return d; }
google
android
const3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/const3.C
140
utf_8
7d21ffa2ab4a579692d45c2c52190a0d
/* { dg-do compile } */ typedef float FloatVect __attribute__((__vector_size__(16))); const FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0 };
google
android
dwarf-eh-personality-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf-eh-personality-1.C
179
utf_8
a1416e769375c4aeb3b2203169f153e6
// { dg-options "-fno-dwarf2-cfi-asm" } extern void bar (void); int foo (void) { try { bar(); } catch (...) { return 1; } return 0; } int foobar (void) { }
google
android
minimal1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/minimal1.C
138
utf_8
475a95279bcd0b4ccd6e118ead65e106
// PR debug/6387 // Verify that -g1 works with local class member functions. void foo(); void bar() { struct A { A() { foo(); } } a; }
google
android
pr54499
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/pr54499.C
189
utf_8
3a8f6ee436933eb1c17b19d1645af355
// PR debug/54499 // { dg-do assemble } struct S1 { virtual void f () = 0; }; struct S2 { virtual ~S2 () { } }; struct S3 : public S1, public S2 { void f (); }; void S3::f () { }
google
android
const2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/const2.C
279
utf_8
e70f88144abfc6a69a1241301a9b5e68
/* { dg-do compile { target powerpc_altivec_ok } } */ /* { dg-options "-O -gdwarf-2 -dA -maltivec" } */ /* { dg-final { scan-assembler "DW_AT_const_value" } } */ typedef float FloatVect __attribute__((__vector_size__(16))); const FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0 };
google
android
fesd-none
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/fesd-none.C
7,908
utf_8
2678b035f308ef99812f9d651da706a4
// { dg-do compile } // { dg-options "-gdwarf-2 -dA -femit-struct-debug-detailed=none" } // { dg-final { scan-assembler "timespec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_sec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_nsec.*DW_AT_name" } } // { dg-final { scan-assembler "itimerspec.*DW_AT_na...
google
android
template-params-4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/template-params-4.C
1,083
utf_8
fae2322585f3d77c0085ae48c8ba6b71
// Origin PR debug/30161 // { dg-do compile { target c++11 } } // { dg-options "-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 o...
google
android
rv1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/rv1.C
349
utf_8
2c4eb567006dc5fec6253f66d61d30ce
// { dg-do compile { target c++11 } } // { dg-options "-g -dA -gdwarf-4" } // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_reference_type" 1 } } // { dg-final { scan-assembler-times "DIE\[^\n\r\]*DW_TAG_rvalue_reference_type" 1 } } struct A { A (); ~A (); }; struct B { B (); ~B (); }; void foo () { A v; ...
google
android
localclass1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/localclass1.C
2,312
utf_8
ecafca546b579b33c7a08c83d0f4b355
// 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
android
fesd-reduced
.C
toolchain/gcc/gcc-4.9/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
android
localclass3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/localclass3.C
318
utf_8
338793cfcc7886ff5fd854276b67eb6a
// Test that the A* pointer_type is also within the debug info for f. // Currently GCC emits it immediately before A, which is simple to test for. // { dg-options "-g -dA" } void f() { struct A { int i; } *ap; ap->i = 42; } // { dg-final { scan-assembler "DW_TAG_pointer_type.\[^)\]*. DW_TAG_structure_type" } }
google
android
template-params-3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/template-params-3.C
583
utf_8
71abdee7a5f865e57c9e259c4e28c676
// Origin PR debug/30161 // { dg-options "-g -dA -gno-strict-dwarf -fno-merge-debug-strings" } // { dg-final { scan-assembler "DW_TAG_template_value_param" } } // { dg-final { scan-assembler "f.*DW_AT_name" } } // { dg-final { scan-assembler "DW_AT_location\[^\\r\\n\]*\[\\r\\n\]*\[^\\r\\n\]*DW_OP_addr\[^\\r\\n\]*\[\\r\...
google
android
imported-module-4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-4.C
261
utf_8
f328f5fd374ff3e1abef9c5c385bb657
// 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 f () { int i; { using namespace A; v++; i = v - 1; } return i; }
google
android
pr41063
.C
toolchain/gcc/gcc-4.9/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
android
block
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/block.C
759
utf_8
c61a11660f751722b90002bc95b0011d
// Compiler should not generate too many lexical blocks for this function. // { dg-do compile { target { i?86-*-* x86_64-*-* } } } // { dg-options "-O0 -fno-exceptions -g -dA" } union UElement { void* pointer; int integer; }; struct UColToken { unsigned source; unsigned char **rulesToParseHdl; }; int uhas...
google
android
template-params-7
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/debug/dwarf2/template-params-7.C
504
utf_8
4ff5f27ea9625f98404211b4a97a5f2c
// Origin PR debug/30161 // { dg-do compile { target c++11 } } // { dg-options "-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 "DI...