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
fvisibility-override2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override2.C
342
utf_8
da4518aa692947ef4c1cc1de9617e5d0
/* Test that -fvisibility does not override class member specific settings. */ /* { dg-do compile } */ /* { dg-require-visibility "internal" } */ /* { dg-options "-fvisibility=hidden" } */ /* { dg-final { scan-not-hidden "Foo.methodEv" } } */ class Foo { __attribute__ ((visibility ("internal"))) void method(); }; v...
google
chromium
arm1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/arm1.C
749
utf_8
f0845a29f305c3f9de0874e37218ab32
// { dg-do compile { target arm*-*-eabi* arm*-*-symbianelf* } } // { dg-require-dll "" } // { dg-options "-fvisibility=hidden" } // Most class data should be exported. // { dg-final { scan-not-hidden "_ZTV1S" } } // { dg-final { scan-not-hidden "_ZTI1S" } } // { dg-final { scan-not-hidden "_ZTS1S" } } // { dg-final { s...
google
chromium
staticmemfuncts
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/staticmemfuncts.C
293
utf_8
f557224265cdd5e5b63d2ff669e9cabe
/* Test that setting visibility for static class member functions works. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */ class __attribute__ ((visibility ("hidden"))) Foo { static void method(); }; void Foo::method() { }
google
chromium
namespace2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/namespace2.C
390
utf_8
eb42889d7ff5930cf589d7b103805b82
// PR c++/32470 // { dg-require-visibility "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-hidden "_ZN4Test4testEv" } } namespace std __attribute__((__visibility__("default"))) { template<typename _CharT> class basic_streambuf { friend void getline(); }; extern template class basic_str...
google
chromium
local1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/local1.C
458
utf_8
f6ac3f034af2478f3ae3854a6b304cdb
// PR c++/19238 // Test that hidden visibility on an inline function is inherited by static // local variables and local classes. // { dg-require-visibility "" } // { dg-final { scan-hidden "_Z1fv" } } // { dg-final { scan-hidden "_ZZ1fvE1i" } } // { dg-final { scan-hidden "_ZZ1fvEN1A1fEv" } } __attribute ((visibilit...
google
chromium
virtual
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/virtual.C
481
utf_8
73717f63993d617e09ce4b4ee1dc7dcc
/* Test that setting visibility for class affects virtual table, VTT and type_info name and node. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-final { scan-hidden "ZTV3Foo" } } */ /* { dg-final { scan-hidden "ZTT3Foo" } } */ /* { dg-final { scan-hidden "ZTS3Foo" } } */ /* { dg-final { scan-h...
google
chromium
ms-compat-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/ms-compat-1.C
552
utf_8
7fbb869ca12df2407fdf22d0ba22baac
/* { dg-require-visibility "" } */ /* { dg-options "-fvisibility-ms-compat" } */ /* { dg-final { scan-not-hidden "_ZTI1S" } } */ /* { dg-final { scan-hidden "_ZTI1T" } } */ /* { dg-final { scan-not-hidden "_ZTI1U" } } */ /* { dg-final { scan-not-hidden "_ZN1U6hide_4Ev" } } */ class S { virtual void hide_2(); } hide...
google
chromium
typeinfo1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/typeinfo1.C
606
utf_8
90b35e4187c59e0ec19eadda1bd4254b
// PR c++/26984 // lazily generated typeinfos should not be affected by #pragma vis, but // they should be affected by the visibility of the type they describe. // { dg-require-visibility "" } // { dg-options "-fvisibility-inlines-hidden" } // { dg-final { scan-not-hidden "_ZTIPPi" } } // { dg-final { scan-not-hidden ...
google
chromium
anon7
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/anon7.C
404
utf_8
ad8b5022bf6c7f64ed5401d01e61af62
// PR c++/34094 // { dg-do compile } namespace { struct A { static int bar (); static int i; // { dg-error "used, but not defined" "" { xfail *-*-* } } static int j; static int k; static int l; static const int m = 16; static const int n = 17; }; int A::j = 4; int A::k; const int...
google
chromium
visibility-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/visibility-2.C
220
utf_8
e84981f02dd8957761952e315dab0d86
/* Test that visibility attribute on declaration extends to definition. */ /* { dg-require-visibility "" } /* { dg-final { scan-hidden "_Z3foov" } } */ void __attribute__((visibility ("hidden"))) foo(); void foo() { }
google
chromium
anon4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/visibility/anon4.C
283
utf_8
a9ac9686caa2bc8878f0912bbd23359a
// PR c++/31903 // Test for anonymous namespace internal linkage, for typeinfo // { dg-do compile } // { dg-final { scan-assembler-not "globl.*_ZTIN*3fooE" } } #include <typeinfo> namespace { class foo { virtual void bar(); }; } const std::type_info &X = typeid(foo);
google
chromium
arm-fp16-ops-5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-5.C
715
utf_8
55ccc89665481af2e7e6fc67952359f9
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do compile { target arm*-*-* } } */ /* { dg-require-effective-target arm_fp16_ok } */ /* { dg-options "-mfp16-format=ieee" } */ /* { dg-add-options arm_fp16 } */ #include "arm-fp16-ops.h" /* We've specified options for hardware float, in...
google
chromium
arm-fp16-ops-4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-4.C
201
utf_8
573825e33459b64f1c5a7ef17270180a
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do run { target arm*-*-* } } */ /* { dg-options "-mfp16-format=alternative -ffast-math" } */ #include "arm-fp16-ops.h"
google
chromium
arm-fp16-ops-7
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-7.C
607
utf_8
df15bedf7dd28c41919973661d580f91
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do compile { target arm*-*-* } } */ /* { dg-require-effective-target arm_neon_ok } */ /* { dg-options "-mfp16-format=ieee" } */ /* { dg-add-options arm_neon } */ #include "arm-fp16-ops.h" /* We've specified options for hardware float, so...
google
chromium
fp16-return-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/fp16-return-1.C
350
utf_8
f2d2f7aaff26c316dc7544bdd1220698
/* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* Functions cannot return type __fp16. */ extern __fp16 f (void); /* { dg-error "cannot return __fp16" } */ extern __fp16 (*pf) (void); /* { dg-error "cannot return __fp16" } */ /* These should be OK. */ extern __fp16 *g (void);...
google
chromium
fp16-mangle-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/fp16-mangle-1.C
458
utf_8
510487595bff75ac40231b3dab7ef969
/* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* Test mangling */ /* { dg-final { scan-assembler "\t.global\t_Z1fPDh" } } */ void f (__fp16 *x) { } /* { dg-final { scan-assembler "\t.global\t_Z1gPDhS_" } } */ void g (__fp16 *x, __fp16 *y) { } /* { dg-final { scan-assembler "\...
google
chromium
fp16-overload-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/fp16-overload-1.C
439
utf_8
aa12e114942ce574df5e9e8b8591c014
/* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* __fp16 values are autoconverted to float and should therefore be treated * just like float for overloading purposes. */ extern int frobnify (float x); extern int frobnify (double x); int g (void) { return frobnify ((__fp16)1...
google
chromium
arm-fp16-ops-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-2.C
194
utf_8
888dbd717f5ba09e01e62616168dedf1
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do run { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee -ffast-math" } */ #include "arm-fp16-ops.h"
google
chromium
fp16-param-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/fp16-param-1.C
392
utf_8
af13ffd2949b1b68393279b7c1479281
/* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* Functions cannot have parameters of type __fp16. */ extern void f (__fp16); /* { dg-error "parameters cannot have __fp16 type" } */ extern void (*pf) (__fp16); /* { dg-error "parameters cannot have __fp16 type" } */ /* These sh...
google
chromium
arm-fp16-ops-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-1.C
182
utf_8
9ad9eafed83197342bcdbe7afa3a727f
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do run { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ #include "arm-fp16-ops.h"
google
chromium
arm-fp16-ops-8
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-8.C
619
utf_8
e05c10e4692341801a9878158cad27d7
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do compile { target arm*-*-* } } */ /* { dg-require-effective-target arm_neon_ok } */ /* { dg-options "-mfp16-format=ieee -ffast-math" } */ /* { dg-add-options arm_neon } */ #include "arm-fp16-ops.h" /* We've specified options for hardwa...
google
chromium
arm-fp16-ops-6
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-6.C
727
utf_8
7b3de180584180ecc9cfa5543f4cb88c
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do compile { target arm*-*-* } } */ /* { dg-require-effective-target arm_fp16_ok } */ /* { dg-options "-mfp16-format=ieee -ffast-math" } */ /* { dg-add-options arm_fp16 } */ #include "arm-fp16-ops.h" /* We've specified options for hardwa...
google
chromium
arm-fp16-ops-3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-3.C
189
utf_8
663c726f41ed12aa36bc9bd4c21021c7
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do run { target arm*-*-* } } */ /* { dg-options "-mfp16-format=alternative" } */ #include "arm-fp16-ops.h"
google
chromium
debug1
.C
native_client/pnacl-gcc/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
chromium
pr29906
.C
native_client/pnacl-gcc/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
chromium
pr46338
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/pr46338.C
247
utf_8
44c226debd19fcc87da60505f16d70f5
// PR debug/46338 // { dg-do compile } // { 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
chromium
debug3
.C
native_client/pnacl-gcc/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
chromium
anonunion1
.C
native_client/pnacl-gcc/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
chromium
enum-2
.C
native_client/pnacl-gcc/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
chromium
enum-1
.C
native_client/pnacl-gcc/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
chromium
static1
.C
native_client/pnacl-gcc/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
chromium
const2
.C
native_client/pnacl-gcc/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
chromium
dwarf2-1
.C
native_client/pnacl-gcc/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
chromium
pr47283
.C
native_client/pnacl-gcc/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
chromium
pr47209
.C
native_client/pnacl-gcc/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
chromium
debug8
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/debug8.C
35
utf_8
f3e5e740f9e7210ccece705c6d548267
struct t{}; struct g : public t{};
google
chromium
using3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/using3.C
81
utf_8
e3e47848d7edc7d04e996db8969c01c0
// PR debug/31899 namespace NS { int x = 0; int &ref = x; } using NS::ref;
google
chromium
dwarf-eh-personality-1
.C
native_client/pnacl-gcc/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
chromium
vartrack1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/vartrack1.C
1,379
utf_8
9ddce3a837af3a01b33e86ac89b2a282
// This testcase used to hang the compiler in vt_find_locations. // { dg-do compile } // { dg-options "-O2 -g" } struct S { int a; S *b, *c, *d; }; struct T { void f1 (S *x); void f2 (S *x); void f3 (S *x, S *y); S *e; }; void T::f3 (S *x, S *y) { while (x != this->e && (!x || x->a == 1)) { i...
google
chromium
const5
.C
native_client/pnacl-gcc/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
chromium
pr44182
.C
native_client/pnacl-gcc/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
chromium
debug6
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/debug6.C
55
utf_8
aae7d3d75005a60ab912ae1b3feefdd9
// { dg-do compile } void foo() { int i=1, x[i]; }
google
chromium
typedef2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/typedef2.C
116
utf_8
798848d35df1829cb7c468058c887871
// PR c++/17695 template<typename T> struct A { T t; A(); }; struct B { B() { typedef int C; A<C> a; } } b;
google
chromium
minimal1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/minimal1.C
138
utf_8
475a95279bcd0b4ccd6e118ead65e106
// PR debug/6387 // Verify that -g1 works with local class member functions. void foo(); void bar() { struct A { A() { foo(); } } a; }
google
chromium
pr30898
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/pr30898.C
103
utf_8
bf050d057433140d0ed2aeeab122c5be
// { dg-do compile } double foo() { union { int i; double d; }; i = 0; return d; }
google
chromium
pr22514
.C
native_client/pnacl-gcc/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
chromium
const3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/const3.C
140
utf_8
7d21ffa2ab4a579692d45c2c52190a0d
/* { dg-do compile } */ typedef float FloatVect __attribute__((__vector_size__(16))); const FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0 };
google
chromium
using2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/using2.C
173
utf_8
06ba44c6640fe57a83e614bcb293ca4d
// PR c++/22489 namespace N { } struct T { T () { } }; void bar () { struct U : public T { void baz () { using namespace N; } } u; u.baz(); }
google
chromium
pr27657
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/pr27657.C
96
utf_8
a9cf363ccde67638eed4148103577d18
/* { dg-do link } */ const char s[] = ""; const char *const p = s; int main() { return 0; }
google
chromium
pr34895
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/pr34895.C
375
utf_8
1b42af04a1371351292650a3fd822c78
// { dg-do compile } // { dg-options "-O2 -g" } // struct A { A() { } unsigned operator()() { return 1; } }; struct B: public A { typedef const A base; using base::operator(); B() { } }; int main() { B b; }
google
chromium
const1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/const1.C
245
utf_8
e4aee91d21a8cdbd286094f893319c70
// PR c++/6381 // Bug: we were emitting the initializer for bar, which referenced foo, // which was not emitted. // { dg-options "-O" } // { dg-do link } static const int foo[] = { 0 }; static const int * const bar[] = { foo }; int main() {}
google
chromium
dwarf2-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2-2.C
174
utf_8
a11c6bcd4c8cdca98697be5126edd6c1
// PR debug/27057 // { dg-do compile } // { dg-options "-g -feliminate-dwarf2-dups" } namespace N { } struct A { void foo (); }; void A::foo () { using namespace N; }
google
chromium
debug7
.C
native_client/pnacl-gcc/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
chromium
pr44178
.C
native_client/pnacl-gcc/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
chromium
typedef3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/typedef3.C
158
utf_8
de7626032b99ed0b36b4dc7fb3f18f9d
// PR debug/16261 // { dg-do compile } namespace N { struct A {}; typedef A B; } void foo() { struct C { C(N::B) {} }; N::B b; C c(b); }
google
chromium
debug5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/debug5.C
114
utf_8
d8a635e6af7e5d8a716c4330769d87a8
// { dg-do compile } int foo() { int a = 1; int b = 1; int e[a][b]; e[0][0] = 0; return e[a-1][b-1]; }
google
chromium
pr45660
.C
native_client/pnacl-gcc/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
chromium
debug4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/debug4.C
526
utf_8
aaa5bddbbd1e77e4f951cd3e1e37f5f5
/* PR debug/5770 This testcase failed at -O -g because the following constants were optimized away since they were never referenced, but since they are variables with initializers, rtl_for_decl_location run expand_expr on their initializers and returned it. This lead to references to constants which were...
google
chromium
pr46583
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/pr46583.C
566
utf_8
ef8208b32c49dec3ad8e51a83a52564d
// PR debug/46583 // { dg-do compile } // { dg-options "-O -fno-inline -fipa-cp -fipa-cp-clone -fcompare-debug" } template < typename = unsigned long >struct A { unsigned long elems[3]; unsigned long *begin () { return 0; } }; void bar (unsigned long *a1, unsigned long, unsigned long *a3, unsigned const &...
google
chromium
debug9
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/debug9.C
333
utf_8
21cf4d633ed522aaeda6d51af07ab604
/* { dg-do assemble } */ /* This testcase requires entries in the debug_range section in DWARF which refer to a vague linkage function. */ struct s { ~s (); }; bool f1 (); s f2 (s); template<int x> void f3(const s & a) { while (f1 () && f1 ()) { s c = f2(a); } } int main() { f3<0>(s ()); ...
google
chromium
template1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/template1.C
150
utf_8
7e13d86d33b17cfb7cdf61b7b8cca961
// PR c++/5118 template <int Count> class d { public: d() { myInt = Count; } int myInt; virtual ~d() {} }; volatile d<5> instD;
google
chromium
namespace1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/namespace1.C
2,767
utf_8
8d1c97a9b811ba8c9a789baf97c48ce4
/* Test DWARF namespace support. This test case is based on GDB testsuite test case. */ /* { dg-do compile } */ namespace AAA { char c; int i; int A_xyzq (int); char xyzq (char); class inA { public: int xx; int fum (int); }; }; int AAA::inA::fum (int i) { return 10 + i; } namespace BBB {...
google
chromium
pr46241
.C
native_client/pnacl-gcc/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
chromium
pr46123
.C
native_client/pnacl-gcc/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
chromium
pr43010
.C
native_client/pnacl-gcc/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
chromium
trivial
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/trivial.C
52
utf_8
f50cc26d9a41a3cc4afb62032326372f
/* { dg-do run } */ int main(void) { return 0; }
google
chromium
pr16792
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/pr16792.C
117
utf_8
ee0ec04c39cca9bd75fd40da91daaab0
// { dg-do compile } struct S { S(); }; int foo (S b, double j) { }; int main () { int foo (S, double); S v; }
google
chromium
crash1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/crash1.C
164
utf_8
36f088b22dca6ab78668e7d505839fbd
template <typename T> class foo { T t; }; class bar; typedef foo<bar> foobar; class obj { virtual foobar* yeah() = 0; }; class bar : virtual public obj { };
google
chromium
typedef1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/typedef1.C
168
utf_8
863c8434199f0ac4d3a2d8d915bd5d1a
// PR debug/6436 // { dg-do compile } typedef struct { unsigned int a0, a1; } A __attribute__ ((aligned(8))); typedef struct { A a; } B; struct C { B *bp; };
google
chromium
using1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/using1.C
125
utf_8
261cdcb5a7c5cf143b8af9beb8258ebc
// PR c++/19406 // { dg-do compile } struct A { virtual int foo(); double d; }; struct B : public A { A::d; }; B b;
google
chromium
const4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/const4.C
54
utf_8
b196cb4af4d539f545ae961b8905ba24
/* { dg-do compile } */ const __complex__ int x = 2i;
google
chromium
namespace2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/namespace2.C
86
utf_8
98d1fa8a42200722f612a8f915bb9673
// PR debug/36278 // { dg-do compile } namespace N { typedef void T; } using N::T;
google
chromium
pr47106
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/pr47106.C
468
utf_8
53cb11dc2a98772521b5c0f22a8b0e16
// { dg-do compile } // { dg-options "-O -fpartial-inlining -flto -fconserve-stack -fcompare-debug" } // { dg-require-effective-target lto } void end (int, int) __attribute__ ((__noreturn__)); struct S { int i; S *s; }; inline bool f (S *s) { if (!s->s) end (0, 0); return s->s == s; } inline bool baz (S...
google
chromium
debug2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/debug2.C
767
utf_8
cece96666e504d9287aaadf8a4855138
/* Verify that sched re-inserts needed scopes properly. */ /* { dg-do compile } */ /* { dg-options "-mcpu=ev5" { target alpha*-*-* } } */ template <class T> inline void foo() { void (T::*x)() __attribute__ ((__unused__)) = &T::bar; } template <class T> struct D { void bar() { } T i; }; template <class T> st...
google
chromium
nullptr01
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/nullptr01.C
399
utf_8
2506164a529d4c88a46de02326d83bda
// Test that debugging backends don't crash on NULLPTR_TYPE. // { dg-options "-std=c++0x" } 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>) { nullptr_t local; } // { dg-final { scan...
google
chromium
typedef6
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/typedef6.C
905
utf_8
e2ee3e3a1510fb11c77ab16e720d1730
// Origin PR debug/ // { dg-options "-g -dA" } class C { public: C() {} ~C() {} }; typedef struct { C m; } t; typedef t s; s v; /* We want to check that we have a DIE describing the typedef t like this: .uleb128 0xc # (DIE (0xb8) DW_TAG_typedef) .ascii "t\0" # DW_AT_name .byte 0x1 # DW_AT_decl_file (../.....
google
chromium
static-local-var-in-ctor
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/static-local-var-in-ctor.C
546
utf_8
4dd763a2da3747b0fe66e264c50f0b1a
// PR debug/39372 // { dg-do compile } // { dg-options "-O0 -g -dA" } // { dg-final { scan-assembler "DW_OP_addr\[^\n\r\]*\[\n\r\]*\[^\n\r\]*staticvar1" } } // { dg-final { scan-assembler "DW_OP_addr\[^\n\r\]*\[\n\r\]*\[^\n\r\]*staticvar2" } } extern void f (int *); struct A { A(int i); void foo(int i); }; A::A(...
google
chromium
redeclaration-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/redeclaration-1.C
434
utf_8
06458715e6d7ee10720a3d47e66f665a
// Origin: PR debug/43325 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler-times "\[^\n\r\]*\\(DIE \[^\n\r\]*DW_TAG_lexical_block\\)\[\n\r\]{1,2}\[^\n\r\]*DW_AT_low_pc\[\n\r\]{1,2}\[^\n\r\]*DW_AT_high_pc\[\n\r\]{1,2}\[^\n\r\]*\\(DIE \[^\n\r\]*DW_TAG_variable\\)\[\n\r\]{1,2}\[^\n\r\]*DW_AT...
google
chromium
pubnames-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/pubnames-1.C
723
utf_8
6a221e4796f80705722794e4cb854118
// Origin PR debug/39706 // { dg-do compile { target *-*-darwin* } } // { dg-options "-g -dA -fno-merge-debug-strings" } // // There should be one debug_pubnames section generated. // { dg-final { scan-assembler-times "\.section\[\t \]\[^\n\]*debug_pubnames" 1 } } // // Then check of the presence of the names we are in...
google
chromium
rv1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/rv1.C
343
utf_8
0001b4f76e0416ddaf425c57e99c27a9
// { dg-do compile } // { dg-options "-g -dA -gdwarf-4 -std=c++0x" } // { 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; A &a ...
google
chromium
template-params-4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-4.C
1,056
utf_8
7f5b855b231e8bf06e0e9d6912b86b94
// Origin PR debug/30161 // { dg-options "-std=c++0x -g -dA" } // // In theory the compiler instantiates count<int, char, long>, // count<char, long> and count<long>. In practice, only // count<int, char, long> is emitted, thanks to constant folding. // So in theory, each of the 3 instances of count yields a // DW_TAG_...
google
chromium
template-func-params-7
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-7.C
1,885
utf_8
acd0559c489585c071c46707c5a2c9bc
// Origin PR debug/30161 // { dg-options "-g -dA -std=c++0x -fno-merge-debug-strings" } // { dg-do compile } // There must be 5 subprograms generated: // printf(const char*), printf<int, char, int>, // printf<char, int>, printf<int> and foo(). // { dg-final {scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_subprogram"...
google
chromium
template-params-8
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-8.C
609
utf_8
c79d0967066242d9ae131863fb6018f6
// Origin PR debug/46955 // { dg-options "-g -dA" } // { dg-do compile } struct S { int f; }; template<int S::*MP> struct T { }; T<&S::f> v; // For the type of v, we should have this DWARF generated: // .uleb128 0x6 # (DIE (0x57) DW_TAG_template_value_param) // .ascii "MP\0" # DW_AT_name // .long 0x61 # DW_AT_type //...
google
chromium
template-func-params-5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-5.C
428
utf_8
3ead68345c93001478d7be9c2a92aab9
// Origin PR debug/30161 // { dg-options "-g -dA" } // { dg-final { scan-assembler "DW_TAG_template_type_param" } } // { dg-final { scan-assembler "T.*DW_AT_name" } } template <class T> struct vector { int size; vector () : size (0) { } }; template<template <class T> class U> int bar() { U<int> u; retur...
google
chromium
nested-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/nested-2.C
1,409
utf_8
1930794652fd98555f43470c6692167b
/* Origin: PR debug/45024 { dg-options "-g -dA -fno-merge-debug-strings" } { dg-do compile } */ struct S { template<typename Z> struct T { }; }; S::T<int> tval; /* We want to express that the DIE of S::T<int> must be a child of the DIE of S, like in assembly this output: .uleb128 0x2 # (DIE (0x9e) DW_TAG_struc...
google
chromium
template-func-params-3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-3.C
589
utf_8
9afc56c93fe6a83c8648362191033e35
// 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
chromium
const2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/const2.C
279
utf_8
e70f88144abfc6a69a1241301a9b5e68
/* { dg-do compile { target powerpc_altivec_ok } } */ /* { dg-options "-O -gdwarf-2 -dA -maltivec" } */ /* { dg-final { scan-assembler "DW_AT_const_value" } } */ typedef float FloatVect __attribute__((__vector_size__(16))); const FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0 };
google
chromium
template-params-9
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-9.C
500
utf_8
fd5cd173f4da1b0f4add59b0ccf8e356
// Origin PR debug/PR46973 // { dg-options "-g -dA" } // { dg-do compile } struct S { int f; }; template<typename T, int I, int *P, int S::*MP> struct Base { template<typename Z> struct Inner { }; }; int a_global; int main () { Base<long, 47, &a_global, &S::f>::Inner<float> inner; return 0; } // { dg...
google
chromium
template-params-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-params-2.C
433
utf_8
ae7354342cbf06f640854d18495587f3
// origin PR debug/30161 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler "DW_TAG_template_value_param" } } // { dg-final { scan-assembler "i.*DW_AT_name" } } // { dg-final { scan-assembler "3.*DW_AT_const_value" } } template <int i> struct A { int m; A () { m = i; ...
google
chromium
template-func-params-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/template-func-params-2.C
428
utf_8
e7092c2aaf941b7bf325bb2d45c5687d
// origin PR debug/30161 // { dg-options "-g -dA" } // { dg-do compile } // { dg-final { scan-assembler "DW_TAG_template_value_param" } } // { dg-final { scan-assembler "i.*DW_AT_name" } } // { dg-final { scan-assembler "3.*DW_AT_const_value" } } template <int i> int func() { int j = i; return j; } const int fo...
google
chromium
const2b
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/const2b.C
308
utf_8
2d24d844a24f965b21c1790720011113
/* { dg-do compile { target i386*-*-* } } */ /* { dg-options "-O -gdwarf-2 -dA -msse" } */ /* { dg-require-effective-target sse } */ /* { dg-final { scan-assembler "DW_AT_const_value" } } */ typedef float FloatVect __attribute__((__vector_size__(16))); const FloatVect Foo = { 250000000.0, 0.0, 0.0, 0.0 };
google
chromium
imported-module-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/imported-module-2.C
280
utf_8
cd2f8eb018e0f3274a839788f6516dbd
// Origin: PR debug/38390 // { dg-do compile } // { dg-options "-g -dA -gno-strict-dwarf" } // { dg-final { scan-assembler "DW_TAG_imported_module" } } namespace A { int v; } int f () { using namespace A; return v; }
google
chromium
static-data-member1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/static-data-member1.C
367
utf_8
96933c6078c20c140753c3375df5ea03
// { dg-do compile } // { dg-options "-g -dA -fno-merge-debug-strings" } struct A { static int staticdatamember; }; int A::staticdatamember = 6; // { dg-final { scan-assembler "DW_TAG_member\[^\n\r\]*\[\n\r\]*\[^\n\r\]*staticdatamember\[^\n\r\]*DW_AT_name" } } // { dg-final { scan-assembler "DW_TAG_variable\[^\n\r...
google
chromium
inline1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/inline1.C
347
utf_8
b35aef275e8c1cc68e99f8801dc846e4
// This isn't really testing dwarf output, but rather that we can inline f // even though the call precedes the definition. // { dg-options "-gdwarf-2 -dA -O" } // { dg-final { scan-assembler "DW_TAG_inlined_subroutine" } } template <class T> inline T f(T); int main() { f(1); } int i; template <class T> inline T...
google
chromium
integer-typedef
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/integer-typedef.C
508
utf_8
9aebfbb589e586281d6396c66253a204
// Origin: PR debug/49130 // { dg-options "-g -dA -fno-merge-debug-strings" } typedef long unsigned int size_t; static const size_t foo = 2048; template<size_t size> struct S { void f(size_t); }; template<size_t size> inline void S<size>::f(size_t) { size_t i = size; } int main() { S<foo> s1; s1.f(10); } /...
google
chromium
fesd-baseonly
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/fesd-baseonly.C
7,771
utf_8
a26a24dcac8fa1d56d36002c9551d274
// { dg-do compile } // { dg-options "-gdwarf-2 -dA -femit-struct-debug-baseonly" } // { dg-final { scan-assembler "timespec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_sec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_nsec.*DW_AT_name" } } // { dg-final { scan-assembler "itimerspec.*DW_AT_name" }...
google
chromium
imported-module-4
.C
native_client/pnacl-gcc/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
chromium
template-params-3
.C
native_client/pnacl-gcc/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
chromium
global-used-types-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/global-used-types-1.C
519
utf_8
5c68cb2fb55d91716a6c0d8135e694e2
// { dg-options "-g -dA -fno-merge-debug-strings" } // { dg-do compile } // { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumeration_type" 1 } } // { dg-final { scan-assembler-times "DIE \\(0x\[^\n\]*\\) DW_TAG_enumerator" 2 } } // { dg-final { scan-assembler-times "ascii \"a.0\"\[\t \]+\[^\n\]*DW_AT_...
google
chromium
fesd-none
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/debug/dwarf2/fesd-none.C
7,908
utf_8
2678b035f308ef99812f9d651da706a4
// { dg-do compile } // { dg-options "-gdwarf-2 -dA -femit-struct-debug-detailed=none" } // { dg-final { scan-assembler "timespec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_sec.*DW_AT_name" } } // { dg-final { scan-assembler-not "tv_nsec.*DW_AT_name" } } // { dg-final { scan-assembler "itimerspec.*DW_AT_na...