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
covariant4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/covariant4.C
950
utf_8
a65da95a628d80d93aad25db51b4e19c
// { dg-do run } // Bug 19891: Incorrect covariant vtables struct Model { bool full_tree; virtual Model* clone() const =0; virtual const char *name() const =0; virtual ~Model() {} }; struct R: virtual public Model { virtual R* clone() const =0; }; struct A: virtual public Model { virtual A* clone() const=0...
google
chromium
layout2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/layout2.C
548
utf_8
629ced02f7a4d9d57a9b120d8c7bbbde
// Red Hat bugzilla 65210 // { dg-do run } struct A { int a; }; struct B : public virtual A {}; struct C { long double c; }; struct D : public virtual C { int d; }; struct E : public B, public D { int e; }; E e; /* The layout of E should begin with the B-in-E vtable pointer, followed by the D-in...
google
chromium
dcast1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/dcast1.C
729
utf_8
ae8183ac34cf252335be257cff5018dc
// { dg-do compile } // PR 9433. segfault at runtime. struct A { virtual void f() {} }; struct B {int b;}; struct C : A, B { virtual void f() {} int c;}; struct D : C {int d;}; struct E : C {int e;}; struct F : protected D, E {int f;}; struct H : virtual F {int h;}; struct I : H {int i;}; struct J...
google
chromium
thunk4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/thunk4.C
639
utf_8
396158a5660412b65aabe968f4c3640f
// { dg-require-weak "" } // { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } } // { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* alpha*-dec-osf* } } } } } // { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ...
google
chromium
mangle32
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle32.C
749
utf_8
8bf93cca7c7bd51279e91a1c960eae21
// Testcase for mangling of unnamed types. // namespace-scope unnamed types have no linkage, so we only test that they // are distinct. // { dg-options -std=c++0x } typedef struct { } *A; typedef struct { } *B; void f(A) { } void f(B) { } struct C { typedef struct { }* D; typedef enum { }* E; }; // { dg-final...
google
chromium
regparm1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/regparm1.C
1,042
utf_8
1ed81d7e7edebea54ec04f2234fe6cec
// PR c++/29911 (9381) // { dg-options -std=c++0x } // { dg-do run { target i?86-*-* x86_64-*-* } } extern "C" int printf(const char *, ...); void *save_this; int *save_addr1, *save_addr2; int fail; struct Base { __attribute((regparm(3))) void set(int *addr1, int *addr2) { if (this != save_this) { ...
google
chromium
empty4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/empty4.C
1,449
utf_8
47c3d191ca7e599a86988d8cfdf3dfce
// { dg-do run } // padding. Which clobbers whatever they overlay. struct Empty {}; struct Inter : Empty {}; long now = 0; struct NonPod { long m; NonPod () {m = 0x12345678;} NonPod (long m_) {m = m_;} NonPod &operator= (NonPod const &src) {now = m; m = src.m; return *this;} NonPod (NonPod const &src) {m = sr...
google
chromium
mangle13
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle13.C
864
utf_8
bcf6566eabf2af39caacb3af143f90c8
// { dg-options "-fabi-version=0" } struct A { template <typename T> int f (); int operator+(); operator int (); template <typename T> int operator-(); }; typedef int (A::*P)(); template <P> struct S {}; template <typename T> void g (S<&T::template f<int> >) {} template <typename T> void g (S<&T::operato...
google
chromium
mangle50
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle50.C
500
utf_8
fd72df561a46f72c12edeea3df85493f
// DR 342, PR c++/48582 // { dg-options -std=c++0x } struct A; template < void * = nullptr > void f() { } template < void (A::*)() = nullptr > void g() { } template < int A::* = nullptr > void h() { } int main() { // { dg-final { scan-assembler "_Z1fILPv0EEvv" } } f(); f<nullptr>(); // { dg-final { scan-asse...
google
chromium
mangle17
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle17.C
390
utf_8
83b5ebd99e20868835255121d263d791
// { dg-options "-Wabi -fabi-version=1" } enum E { e = 3 }; template <int I> struct S {}; template <int I> void f (S<I + e + int (3.7)>) {} // { dg-warning "mangle" } template void f<7>(S<7 + e + int (3.7)>); // { dg-message "required" } template <int I> void g (S<I + e + int (3.7)>) {} // { dg-warning "mangle" } t...
google
chromium
covariant3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/covariant3.C
1,292
utf_8
836325701db2acafab5dfd4a8eea9e11
// { dg-do run } // PR c++/13118. Missing covariant thunk. struct c0 {}; struct c1 : virtual c0 { virtual c0* f6(); }; struct c5 { virtual void foo(); }; struct c10 : virtual c1 { virtual void foo(); }; struct c1a : c1 {}; // disambiguation struct c11 : virtual c10, c1a { int i; virtual c1* f6 () = 0; }; ...
google
chromium
mangle34
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle34.C
932
utf_8
2754e6c53882e50f3a22554550067ef1
// Origin PR c++/40808 // { dg-do compile } // This tests the mangling of empty template argument list in a template // id. // { dg-final { scan-assembler "_ZNK5DummyclI3GenEENT_3SigIE10ResultTypeERKS2_" } } struct Void {}; template <class R> struct FunType { typedef R ResultType; }; struct WrongNumberOfSigArgs {}; t...
google
chromium
arm_rtti1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/arm_rtti1.C
375
utf_8
1f9e050ee7f8c952e5a9e739fdf898c6
// { dg-do compile { target arm*-*-eabi* arm*-*-symbianelf* } } // { dg-options "-O2" } // Check that, even when optimizing, we emit an out-of-line call to // the type-info comparison function. // { dg-final { scan-assembler _ZNKSt9type_infoeqERKS_ } } #include <typeinfo> extern const std::type_info& t1; extern cons...
google
chromium
bitfield1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/bitfield1.C
618
utf_8
dfa3e514ddbfea694774f9c287f40215
// { dg-do run } // { dg-options "-ansi -pedantic-errors -funsigned-bitfields" } typedef int Int; typedef signed int SInt; typedef unsigned int UInt; struct A { SInt bitS : 1; // signed UInt bitU : 1; // unsigned Int bit : 1; // signedness by -f{signed,unsigned}-bitfields }; int main () { A a; a.bitS = 1; //...
google
chromium
pr39188-1a
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/pr39188-1a.C
160
utf_8
0b334e68ad96b9b585797769690bad26
// PR c++/39188 // { dg-do run } // { dg-options "-O2" } // { dg-additional-sources "pr39188-1b.C" } #include "pr39188-1.h" int x (int i) { return f (i); }
google
chromium
dtor1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/dtor1.C
380
utf_8
9b5fe1eda32f4e6ddea3106ea8d9f1da
// { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0" } struct A { virtual void a (); }; struct B { virtual ~B (); }; struct C : public A, public B { virtual void c (); }; struct D : virtual public C { virtual void d (); }; void D::d ...
google
chromium
guard3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/guard3.C
117
utf_8
aeaf70ac2113165664ca8c8208320777
// PR c++/45603 extern "C" int __cxa_guard_acquire(); struct A { ~A(); }; A* f() { static A a; return &a; }
google
chromium
vbase8-21
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/vbase8-21.C
1,136
utf_8
4e52fadd0c4d30bc4065944636aef4b2
// { dg-options -w } // { dg-do run } // Bug 3145 case 10. Horribly complicated class hierarchy class C0 {}; class C1 : virtual public C0 {}; class C2 : virtual public C1 , virtual public C0 {}; class C3 : virtual public C2 , virtual public C1 {}; class C4 : virtual public C2 , public C0 , public C1 {};...
google
chromium
pr39188-3a
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/pr39188-3a.C
160
utf_8
afd0ff2e30705970415e4aa6ca6e1468
// PR c++/39188 // { dg-do run } // { dg-options "-O2" } // { dg-additional-sources "pr39188-3b.C" } #include "pr39188-3.h" int x (int i) { return f (i); }
google
chromium
empty10
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/empty10.C
368
utf_8
9d59f34907d1d9588084fc4da7772c02
// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0 -w" } struct E {}; struct E2 : public E {}; struct A { int i; }; struct B { int j; }; struct C : public E, public A, public E2, virtual public B { }; C c; int main () { if (((...
google
chromium
mangle30
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle30.C
363
utf_8
8e5a5b931b1491b101190dc53cb5bf77
// Test for mangling of template args in a typename type. struct A { template <class T> struct B { typedef T myT; }; }; struct C {}; template <class T> void f (T t, typename T::template B<C>::myT u, typename T::template B<int>::myT v); int main() { f (A(), C(), 1); } // { dg-final { scan-assembler "_...
google
chromium
mangle37
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle37.C
906
utf_8
f776d746a89da9401cd9590fb3489c32
// Testcase for mangling of expressions involving operator names. // { dg-options -std=c++0x } // { dg-final { scan-assembler "_Z1fI1AEDTclonplfp_fp_EET_" } } // { dg-final { scan-assembler "_Z1gI1AEDTclonplIT_Efp_fp_EES1_" } } // { dg-final { scan-assembler "_Z1hI1AEDTcldtfp_miEET_" } } // { dg-final { scan-assembler ...
google
chromium
dtor2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/dtor2.C
216
utf_8
a52edd14facd7ba603f78fb8bad62852
// { dg-do compile } // { dg-options "-Wabi -fabi-version=1" } struct A { virtual void a (); }; struct B { virtual ~B (); }; struct C : public A, public B { // { dg-warning "virtual" } virtual void c (); };
google
chromium
pr39188-1b
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/pr39188-1b.C
168
utf_8
c96cb62975d4855a114a03ac254e17ce
#include "pr39188-1.h" extern "C" void abort (); extern int x (int); int main (void) { if (x (1) != 0) abort (); if (f (1) != 1) abort (); return 0; }
google
chromium
mangle31
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle31.C
297
utf_8
13633dcf96cb50988a92cf548dff31cb
// PR c++/39095 // { dg-do compile } struct B { int b; }; struct A { B *operator->(); A (); B b; }; A::A () { } B * A::operator->() { return &b; } A a; int foo () { return a->b; } // { dg-final { scan-assembler "_ZN1AptEv" } } // { dg-final { scan-assembler-not "_ZN1AdtEv" } }
google
chromium
mangle22
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle22.C
201
utf_8
f27a51ea9de5c032fc80016778dbe5ec
// PR c++/16240 // { dg-options "-fabi-version=3" } void foo(char); template<void (&)(char)> struct CB {}; void g(CB<foo> i) {} // { dg-final { scan-assembler "\n_?_Z1g2CBIL_Z3foocEE\[: \t\n\]" } }
google
chromium
mangle41
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle41.C
242
utf_8
76e610360ba5d13f678f5045f35ee364
// PR c++/41959 // { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-options "-mavx -fabi-version=2" } #include <x86intrin.h> void f(__m128) { } // { dg-error "previous" } void f(__m256) { } // { dg-message "declaration|mangling" }
google
chromium
bitfield7
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/bitfield7.C
145
utf_8
52af9e2f39dba23a45c367738de05a69
// { dg-do compile } // { dg-options "-Wabi -fabi-version=1" } union U { // { dg-warning "ABI" } int i: 4096; // { dg-warning "exceeds" } };
google
chromium
mangle40
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle40.C
712
utf_8
ba3545edb15394ce16cb1f6851cb5c46
// PR c++/12909 // { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-require-weak "" } // { dg-require-alias "" } // { dg-options "-mavx -Wabi -fabi-version=2" } // { dg-final { scan-assembler "(weak|glob)\[^\n\]*_Z1fIDv4_fEvT_" } } // { dg-final { scan-assembler "(weak|glob)\[^\n\]*_Z1fIU8__vectorfEvT_" } } // ...
google
chromium
cookie1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/cookie1.C
205
utf_8
b587f170bbc6f95ef287e408bcafe1e3
// { dg-options "-fabi-version=0" } void *operator new[](__SIZE_TYPE__, void *); struct A { ~A(){} }; int main() { A * a = (A*) new char[20]; A * b = new(a) A[3]; if (a != b) return 1; }
google
chromium
mangle1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle1.C
1,057
utf_8
2e043f4f1db73efd7ba04afe8375a72e
// Test for mangling of simple testcase involving construction vtables. // { dg-do compile } // { dg-options "-fno-inline" } struct A { virtual void f () { } }; struct B: public virtual A { }; struct C: public B { }; C c; // { dg-final { scan-assembler "\n_?_ZN1A1fEv\[: \t\n\]" } } // { dg-final { scan-assembler...
google
chromium
mangle35
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle35.C
215
utf_8
00e7a5d7cfaf0421ab0ccb4f4764c0be
// PR c++/38600 // { dg-final { scan-assembler "_Z3barIiE1AIX3fooIT_EEEv" } } template<void (*)()> struct A {}; template<typename> void foo(); template<typename T> A<foo<T> > bar(); void baz() { bar<int>(); }
google
chromium
mangle49
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle49.C
442
utf_8
415a893cc47f416132772c3586be0bcc
// PR c++/49932 // { dg-options "-std=c++0x -fabi-version=0" } template < typename T > auto f1( T x ) // ICE on here -> typename decltype( x )::type {} template < typename T > typename decltype( T() )::type f2( T x ) {} // ICE on here struct S { typedef void type; }; void g() { f1( S() ); f2( S() ); } // { d...
google
chromium
rtti1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/rtti1.C
226
utf_8
d90943e976dded1f4182aeb500d1f2c7
// Test that we don't emit the type_info for a polymorphic class other than // with the vtable. struct A { virtual ~A(); }; void f () { throw A(); } // { dg-final { scan-assembler-dem-not {\ntypeinfo for A[: \t\n]} } }
google
chromium
thunk1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/thunk1.C
399
utf_8
0a188cd301551f22c8ddc09030b2eb28
// { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-require-effective-target ilp32 } struct A { virtual void f (); }; struct B : public virtual A { virtual void f (); }; struct C { virtual void g (); }; struct D : public C, public B { virtual void f (); }; void D::f () {} // { dg-final { scan-ass...
google
chromium
param2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/param2.C
287
utf_8
dc8d04461395fe21c8df3c3ddc0eaefb
// PR target/20795 // Test passing aligned empty aggregate // { dg-do compile } // { dg-options "-Wno-psabi" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } struct S { union {} a; } __attribute__((aligned)); S foo (S arg) { return arg; } void bar (void) { S arg; foo (arg); }
google
chromium
mangle27
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle27.C
385
utf_8
044232763276597f7d67befd1bd50a9d
// Test of std::basic_iostream<char, std::char_traits<char> > mangling // { dg-do compile } // { dg-options "-fno-inline" } namespace std { template<typename> struct char_traits; template<typename, typename> struct basic_iostream { basic_iostream(){} }; } std::basic_iostream<char,std::char_traits<char> > s1; /...
google
chromium
mangle24
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle24.C
645
utf_8
af8a23e436afd93b61c9bc9551fac99b
// Test mangling of __float80. // The C++ ABI document says __float80 is mangled as "e". It // also says that "long double" is mangled as "e", so these conflict on // ia64-hpux where "long double" is "e" and __float80 is "u9__float80". // { dg-do compile { target i?86-*-* x86_64-*-* ia64-*-* } } // { dg-options "" } /...
google
chromium
mangle43
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle43.C
1,123
utf_8
87d68b4c27a09a6b273d53fd1ac67be2
// { dg-do compile { target int128 } } // { dg-options "" } struct S { S(void) { m_i128 = 0; m_u128 = 0; } ~S(void) { } __int128 get1 (void) { return m_i128; } unsigned __int128 get2 (void) { return m_u128; } void set1 (__int128 i) { m_i128 = i; } void set2 (unsigned int i) { m_u128 = 1; } __int128 m_i12...
google
chromium
covariant2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/covariant2.C
478
utf_8
dad843e79ded2bf5c0fd0c65f41b64f8
// { dg-do compile } // PR c++/12881. ICE in thunk generation struct c1 {}; struct c3 : virtual c1 { virtual c1* f6() {} int i; }; struct c6 : virtual c3 { }; struct c7 : c3 { virtual c3* f6() {} }; struct c24 : virtual c7 { virtual c6* f6(); }; c6* c24::f6() { return 0; } struct c31 : c24 {};
google
chromium
bitfield6
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/bitfield6.C
207
utf_8
9c87e70c80da00c75493118cabefc7f7
// { dg-do run } // { dg-options "-w -fabi-version=0" } #include <limits> union U { int i: 4096; }; int main () { if (sizeof (U) * std::numeric_limits<unsigned char>::digits != 4096) return 1; }
google
chromium
local2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/local2.C
197
utf_8
34ecb36205a7c22314ddda92d332a23d
// PR c++/42010 // { dg-final { scan-assembler "ZZN1A1fEvE1s" } } struct A { static int f() { static struct { int i; } s; return s.i; } }; int main() { return A::f(); }
google
chromium
macro0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/macro0.C
122
utf_8
47b1f29300530040f4c65e1acb36904a
// { dg-options "-fabi-version=0" } #if __GXX_ABI_VERSION != 999999 #error "Incorrect value of __GXX_ABI_VERSION" #endif
google
chromium
mangle46
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle46.C
349
utf_8
e2fc150d746b05b2efcbaf25872d2c83
// PR c++/48008 // { dg-options -fabi-version=5 } // Test that we retain function-cv-quals in template argument mangling. template <class T> struct A { }; typedef void cfn(int) const; typedef void fn(int); // { dg-final { scan-assembler "_Z1f1AIFviEE" } } void f(A<fn>) { } // { dg-final { scan-assembler "_Z1f1AIKF...
google
chromium
bitfield2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/bitfield2.C
647
utf_8
5e02907f2e56c04ec78ba7b8ce16b583
// { dg-do run } // { dg-options "-ansi -pedantic-errors -fsigned-bitfields" } typedef int Int; typedef signed int SInt; typedef unsigned int UInt; struct A { SInt bitS : 1; // signed UInt bitU : 1; // unsigned Int bit : 1; // signedness by -f{signed,unsigned}-bitfields }; int main () { A a; a.bitS = 1; // {...
google
chromium
arm_cxa_vec2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/arm_cxa_vec2.C
920
utf_8
cb4ad686f7564a8666256212398d911d
// Check that ARM vector delete functions accept NULL pointers as // inputs. // { dg-do run { target arm*-*-* } } #ifdef __ARM_EABI__ #include <cxxabi.h> typedef void *(dtor_type)(void *); extern "C" { void abort(); void *__aeabi_vec_dtor_cookie(void *, dtor_type); void __aeabi_vec_delete(void *, dtor_type); ...
google
chromium
mangle-neon
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle-neon.C
1,909
utf_8
44d57b897a74d13309a44df2ea14e326
// Test that ARM NEON vector types have their names mangled correctly. // { dg-do compile } // { dg-require-effective-target arm_neon_ok } // { dg-add-options arm_neon } #include <arm_neon.h> void f0 (int8x8_t a) {} void f1 (int16x4_t a) {} void f2 (int32x2_t a) {} void f3 (uint8x8_t a) {} void f4 (uint16x4_t a) {}...
google
chromium
mangle20-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle20-2.C
593
utf_8
23877e65bd741b7e4f2597ba8403293d
// { dg-do compile } // { dg-options "-fabi-version=1 -Wabi" } // PR 9043 // mangled array types in templates template <int I> void f(int (*)[2]) {} // { dg-warning "mangled name" } template <int I> void g(int (*)[I+2]) {} template void f<1>(int (*)[2]); // { dg-message "required" } // { dg-final { scan-assembler "\n...
google
chromium
vtt1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/vtt1.C
119
utf_8
59cdef1c2f5ac26231205b723cb9ea52
// { dg-do compile } struct A { }; struct B : virtual public A { }; B b; // { dg-final { scan-assembler _ZTT1B } }
google
chromium
empty9
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/empty9.C
326
utf_8
bbab6b1f77eed09d3a2c4f07991cdb40
// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-require-effective-target ilp32 } // { dg-options "-w -fabi-version=0" } struct E1 {}; struct E2 : public E1 { virtual void f (); }; struct E3 : virtual public E1 { }; struct S : public E2, virtual public E3 { }; int main () { if (sizeof (S) != 12) return...
google
chromium
enum1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/enum1.C
225
utf_8
7cbe4b1023b73117f1fca798569bc98d
// { dg-do run } #include <cstdlib> enum foo { foo1 = 0, foo2 = 0xffffffffffffffffULL, foo3 = 0xf0fffffffffffffeULL }; int main () { if (sizeof (enum foo) != sizeof (unsigned long long)) std::abort (); }
google
chromium
empty8
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/empty8.C
225
utf_8
c5566cc05c36a22382128eb694f66bc5
// { dg-do run } // { dg-options "-fabi-version=0" } struct E1 {}; struct E2 : public E1 {}; struct S1 { int i; }; struct S2 : public S1, E2 {}; S2 s2; int main () { if ((char *)(E2*) &s2 != (char *)&s2) return 1; }
google
chromium
thunk2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/thunk2.C
498
utf_8
8c08a43b9a6c3a1ec099f45dedd4965e
// { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-require-effective-target ilp32 } // { dg-options -w } struct A { virtual void f2 (); virtual void f3 (); }; struct B : virtual public A { virtual void f3 (); }; struct C : public A, public B { virtual void f4 (); }; struct D : virtual public B, vir...
google
chromium
vbase8-10
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/vbase8-10.C
1,112
utf_8
5f1a733d38a5e3069cd4160135f2f94e
// { dg-options -w } // { dg-do run } // Bug 3145 case 10. Horribly complicated class hierarchy class C0 {}; class C1 : public C0 {}; class C2 : public C1 , virtual public C0 {}; class C3 : public C1 , public C2 , virtual public C0 {}; class C4 : virtual public C1 , virtual public C0 , virtual public ...
google
chromium
local1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/local1.C
268
utf_8
4ab5160617737559c38e1ffb650b797e
// { dg-do run } // { dg-additional-sources "local1-a.cc" } #include <typeinfo> struct B { virtual void b() {} }; static B* f() { struct D : public B { }; return new D; } extern B* g(); int main () { if (typeid (*f()) == typeid (*g())) return 1; }
google
chromium
empty7
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/empty7.C
495
utf_8
d3abb8f9307b552b4063b456bfe2f213
// { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-require-effective-target ilp32 } // { dg-options "-fabi-version=0" } struct S1 {}; struct S2 { virtual void f () {} S1 s1[4]; }; struct S3 : virtual public S2 {}; struct S4 : virtual public S2 { int i; }; struct S5 : public S3, virtual public S4 {}; struct S6 { S...
google
chromium
vbase8-22
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/vbase8-22.C
1,222
utf_8
cf73a61c2f7a372a6e32d4bbc343cd44
// { dg-options -w } // { dg-do run } // Bug 3145 case 22. Horribly complicated class hierarchy class C0 {}; class C1 : public C0 {}; class C2 : public C1 , virtual public C0 {}; class C3 : virtual public C0 , virtual public C2 , virtual public C1 {}; class C4 : virtual public C2 , public C1 , virtual...
google
chromium
mangle8
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle8.C
338
utf_8
cc6afae4c242d6e5a9083cec1a9a9907
// Red Hat bugzilla 65035 // Bug: We were encoding the name of the instantiation as 'operator int' // rather than 'operator T'. // { dg-do compile } struct C { template <class T> operator T (); }; template <class T> C::operator T () { return 0; } template C::operator int (); // { dg-final { scan-assembler _...
google
chromium
mangle42
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle42.C
462
utf_8
a5b781ae74209f4ef543228c9af88faf
// Origin: PR c++/43375 // { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-options "-msse2 -std=gnu++0x" } // { dg-require-effective-target sse2 } typedef float __v4sf __attribute__ ((__vector_size__ (16))); typedef int __v4si __attribute__ ((__vector_size__ (16))); __v4sf my_asin(__v4sf x) { static const _...
google
chromium
mangle19-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/mangle19-1.C
399
utf_8
2f6aceab8b04167147a7bd3802735ee1
// { dg-do compile } // { dg-options "-fabi-version=2 -Wno-abi" } // PR 13242 // mangled template arguments that are external objects incorrectly extern int N; template <int &> struct S {}; void n (S<N>) {} // { dg-final { scan-assembler "\n_?_Z1n1SILZ1NEE\[: \t\n\]" } }
google
chromium
align1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/align1.C
417
utf_8
c7c251f16058a4d4f1db8e0df28385ff
// This was failuring on powerpc-darwin and powerpc-aix as // we were taking the embeded type as the first field decl. // This was PR target/18761. // { dg-do run } union A { double d; }; union B { enum E { e }; double d; }; struct AlignA { char c; A a; }; struct AlignB { char c; B b; }; extern "C" vo...
google
chromium
guard2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/guard2.C
267
utf_8
3eec2b181cfb238503543d9d81b99eb2
// PR c++/41611 // Test that the guard gets its own COMDAT group. // { dg-final { scan-assembler "_ZGVZN1A1fEvE1i,comdat" { target *-*-linux* } } } struct A { static int f() { static int &i = *new int(); return i; } }; int main() { return A::f(); }
google
chromium
rtti2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/rtti2.C
285
utf_8
8deae0db66776c34c77f2551c9679b7c
// { dg-do run } #include <cxxabi.h> #include <typeinfo> int main () { const std::type_info& ti = typeid (const int (*)[3]); const abi::__pointer_type_info& pti = static_cast<const abi::__pointer_type_info&>(ti); if ((pti.__flags & pti.__const_mask) == 0) return 1; }
google
chromium
vbase10
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/abi/vbase10.C
703
utf_8
e36a8fd36846ca34b500150cfaf2d8fa
// { dg-do compile } // -fpack-struct is necessary because the code below assumes the initial // packing is larger than 1, which cannot ge guaranteed for all targets. // { dg-options "-Wabi -fabi-version=1 -fpack-struct=8" } // On ARM processors, the alignment of B will be 4 even though it // contains only a single "ch...
google
chromium
pr42450
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr42450.C
3,345
utf_8
375f3e5695d27b3a597504372a44228d
/* { dg-do compile } */ template < typename > class basic_stringstream; struct basic_string { basic_string(); }; struct ios_base { virtual ~ios_base(); }; class ostream:ios_base {}; class istream:virtual ios_base {}; template < typename > struct basic_iostream:public istream, ostream { ~basic_iostream () {} ...
google
chromium
pr44813
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr44813.C
1,776
utf_8
d014fa87d832e14e180ee69b18e48f61
typedef unsigned int PRUint32; typedef int PRInt32; typedef unsigned long PRUint64; typedef int PRIntn; typedef PRIntn PRBool; struct nsRect { nsRect(const nsRect& aRect) { } }; enum nsCompatibility { eCompatibility_NavQuirks = 3 }; class gfxContext; typedef PRUint64 nsFrameState; class nsPresContext { public: ...
google
chromium
pr40492
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr40492.C
719
utf_8
38eb20fb2c768d3f2d8258601e427a27
typedef unsigned short ushort; class QChar { public: QChar( const QChar& c ); ushort ucs; }; inline QChar::QChar( const QChar& c ) : ucs( c.ucs ) { }; class QString { }; class KoAutoFormat { public: struct TypographicQuotes { QChar begin, end; }; TypographicQuotes getConfigTypographicDoubleQuotes() ...
google
chromium
pr47714
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr47714.C
292
utf_8
70a176c24f3b9e0ed32161bafd163296
struct A { virtual ~A () {} }; struct B { virtual ~B () {} }; struct C { virtual const A *foo (int) const = 0; }; struct E : public B, public A { }; struct F : public C { virtual const E *foo (int) const; }; void bar (int &); const E * F::foo (int x) const { bar (x); return __null; }
google
chromium
pr33887-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr33887-2.C
301
utf_8
ac9b9ea255f72e7339eeaf103a832da5
/* { dg-do run } */ extern "C" void abort() __attribute__ ((noreturn)); struct s { unsigned long long f1 : 40; unsigned int f2 : 24; } sv; int main() { int f2; sv.f2 = (1 << 24) - 1; __asm__ volatile ("" : : : "memory"); ++sv.f2; f2 = sv.f2; if (f2 != 0) abort(); return 0; }
google
chromium
pr42890
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr42890.C
309
utf_8
7ed9e7f486e83f1d5786530f3058eef7
// PR tree-optimization/42890 // { dg-do compile } extern "C" int puts (const char *) throw (); struct S { const char *a; const char **b; S (const char *s) { a = s; b = &a; } ~S () { puts (a); } }; void foo (int (*fn) (const char *)) { S a ("foo"); fn ("bar"); } int main () { foo (puts); }
google
chromium
pr44357
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr44357.C
5,981
utf_8
7063a1d0e2e7d10ebad128af0ec171f1
/* { dg-do compile } */ extern "C" { typedef long unsigned int size_t; } namespace llvm { namespace dont_use { template < typename T > double is_class_helper (...); } template < typename T > struct is_class { public:enum { value = sizeof (char) == sizeof (dont_use::is_class_helper < T > (0)) }; ...
google
chromium
20100825
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/20100825.C
292
utf_8
525821efab8625fd7aaf799d1e7ba186
// { dg-do run } typedef enum { zero = 0, one = 1, two = 2, ENUM_MAX = 3 } my_enum; my_enum e; extern "C" void abort (void); int __attribute__((noinline)) foo() { return 10; } int main() { int r; r = foo(); if ((r < 0) || (r >= ENUM_MAX)) return 0; e = (my_enum)r; abort (); }
google
chromium
pr31081-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr31081-1.C
314
utf_8
ff110b3c564473b839e08fc2d962f439
/* { dg-do compile } */ static int get_record (void); void f(void); int g(void); static int get_record (void) { int result; try { result = g(); f(); } catch (const int &) { } return result; } int NAV_get_record ( ) { int result; for (;;) if (get_record ()) return 1; }
google
chromium
pr44148
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr44148.C
1,083
utf_8
e5fc7e96fce391069c98fe8b6a6e48eb
// PR c++/44148 // { dg-do compile } // { dg-options "" } // { dg-options "-fpic" { target fpic } } template <typename T> struct S2 { typedef const T &t2; t2 operator* () const {} }; template <typename T> struct S3 { typedef S2 <T> t5; }; template <typename T1, typename T2> T2 foo1 (T1 x, T2 y) { y (*x); } templ...
google
chromium
pr34235
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr34235.C
203
utf_8
a236f1d6b976dcdc6d96e37d197d8bba
/* { dg-do run } */ extern "C" void abort (void); int main() { short x = -1; unsigned int c = ((unsigned int)x) >> 1; if (c != 0x7fffffff) abort(); return 0; }
google
chromium
pr44535
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr44535.C
404
utf_8
a33cbb24fc74fe5e413c5ca21e00db9d
/* { dg-do run } */ namespace FOO { template <typename T> class A { public: void Enum(); virtual void OnProv() = 0; virtual ~A() { } }; typedef A<char> B; template<typename T> void A<T>::Enum () { OnProv (); } } // namespace FOO class C {}; class D: public C, public FOO::B { public: void OnProv...
google
chromium
pr33572
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr33572.C
258
utf_8
fef6e4af1918b51b514676a2dc0186ab
// { dg-do run } #include <vector> #include <memory> struct Foo { virtual void f() {} }; int main(int argc, char**) { std::auto_ptr<Foo> foo; if (argc >= 0) { foo.reset(new Foo()); } else { std::vector<int> v; } Foo* p = foo.release(); p->f(); }
google
chromium
pr38747
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr38747.C
299
utf_8
45aef0fb4191dc0ae2c98c11807df53f
/* { dg-do run } */ extern "C" void abort (void); inline void *operator new (__SIZE_TYPE__, void *__p) throw () { return __p; } int __attribute__((noinline)) foo(void) { float f = 0; int *i = new (&f) int (1); return *(int *)&f; } int main() { if (foo() != 1) abort (); return 0; }
google
chromium
pr45580
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr45580.C
1,327
utf_8
28c59a9000661e55c1d825c6c3e4cea7
// { dg-do compile } namespace std { typedef __SIZE_TYPE__ size_t; } inline void* operator new(std::size_t, void* __p) throw() { return __p; } class Noncopyable { }; struct CollectorCell { }; template<typename T> class PassRefPtr { public: T* releaseRef() const { } }; template <typename T> class NonNullPa...
google
chromium
pr42183
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr42183.C
1,586
utf_8
2a7843fc7360185d8c597e00ef02ddcb
// { dg-do compile } class IntSize { public: IntSize(int width, int height) : m_width(width), m_height(height) { } int m_width, m_height; }; class IntPoint { public: IntPoint(int x, int y) : m_x(x), m_y(y) { } int m_x, m_y; }; class IntRect { public: IntRect(int x, int y, int width, int height) ...
google
chromium
pr34241
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr34241.C
267
utf_8
2f2bca9639982242f96213d55143fc90
/* { dg-do compile } */ inline void *operator new (__SIZE_TYPE__, void *__p) throw () { return __p; } struct A { A(int, double); inline explicit A (int pattern, bool cs) { new (this) A (pattern, double(cs)); } }; A test () { const A a (42, true); }
google
chromium
pr40335
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr40335.C
238
utf_8
a7f9b10c8589802dfa8f02f013c7ac2e
/* { dg-do run } */ extern "C" void abort (void); int main (void) { int i = -1; switch ((signed char) i) { case 255: /* { dg-bogus "exceeds maximum value" "" { xfail *-*-* } } */ abort (); default: break; } }
google
chromium
pr44206
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr44206.C
258
utf_8
21914f1786b649768c65385d18cbda0c
// { dg-do compile } template<int> struct A { void foo(void(*)(A)); void bar(void(*f)(A)) { foo(f); foo(f); } }; template<int N> inline void FOO(A<N> a) { a.foo(0); } extern template void FOO(A<0>); void BAR() { A<0> a; FOO(a); a.bar(FOO); }
google
chromium
pr36960
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr36960.C
429
utf_8
c6a3b37eb5619ce18630ad425b920a56
// { dg-do run } struct Lower { const int& ref; Lower(const int& ref) : ref(ref) { } }; struct Middle : public virtual Lower { Middle(const int& ref) : Lower(ref) { } }; struct Upper : public Middle { Upper(const int& ref) : Lower(ref), Middle(ref) { } int get() { return ref; } }; extern "C" void a...
google
chromium
pr43611
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr43611.C
313
utf_8
aa78ba484148219421767f1d48d903dd
// { dg-do compile } // { dg-options "-fkeep-inline-functions" } template < typename > struct A { void init (int); A () { this->init (0); } }; template < typename > struct B : A < int > { A < int > a; B () {} }; extern template struct A < int >; extern template struct B < int >; B < int > b;
google
chromium
pr42773
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr42773.C
1,182
utf_8
eb50f7b8b6b7679ccdd519260c76e1ce
// { dg-do compile } // { dg-options "-fno-exceptions" } typedef unsigned int uint; struct QShared { bool deref() { return !--count; } uint count; }; template <class T> class QValueListNode { public: QValueListNode<T>* next; QValueListNode<T>* prev; }; template <class T> class QValueListPrivate : ...
google
chromium
pr34850
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr34850.C
2,006
utf_8
e20e38c706b4d9d576e09046609260de
/* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ typedef unsigned char uint8_t; typedef unsigned int uint32_t; typedef uint8_t byte; typedef uint32_t u32bit; __extension__ typedef __SIZE_TYPE__ size_t; extern "C" { extern void __warn_memset_zero_len (void) __attribute__((__warning__ (""))...
google
chromium
20090329-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/20090329-1.C
2,215
utf_8
20692bddd18b7647f22a6248b9d7ec73
/* { dg-do compile } */ struct input_iterator_tag { }; template<typename _Category, typename _Tp, typename _Distance = long, typename _Pointer = _Tp*, typename _Reference = _Tp&> struct iterator { typedef _Category iterator_category; }; template<typename _Iterator> struct iterator_traits { typedef typename _It...
google
chromium
pr35526
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr35526.C
475
utf_8
e33eadcaed926d8254fad85a797b2dde
/* { dg-do compile } */ // { dg-options "-fpermissive" } // { dg-prune-output "narrowing" } extern void *memcpy (void *__dest, __const void *__src, __SIZE_TYPE__ __n); char internal_crash_read_ip[] = { 0xb8 }; struct u_internal_crash_read_t { char ip[sizeof (internal_crash_read_ip)]; } u_internal_crash_read; voi...
google
chromium
pr37345
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr37345.C
2,211
utf_8
812d6862a7c6ee4d0b3f6e68a439d3af
/* { dg-do compile } */ class EbmlElement { virtual EbmlElement * Clone() const; ...
google
chromium
pr41273
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr41273.C
348
utf_8
9f12519b907a84c635fb7ea8fb8fa7ba
/* { dg-do compile } */ /* { dg-options "-g" } */ long *H2_ipX_ener_sort; double H2_old_populations[2]; double H2_total; void H2_LevelPops() { double sum_pop = 0.; long nEner = 0; while( nEner < 3 && sum_pop/H2_total < 0.99999 ) { long ip = H2_ipX_ener_sort[nEner]; sum_pop += H2_old_populations[...
google
chromium
pr31081-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr31081-2.C
818
utf_8
9fd72fc7657b473f879f5e1dc5b4f59f
/* { dg-do compile } */ class CString { public: CString(); ~CString() { operator delete(_rep); } operator const char*() const { return _rep; } private: CString(char* cstr); char* _rep; }; class String { public: String(); String(const char* str); ~String(); CString getCString() con...
google
chromium
pr46154
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr46154.C
193
utf_8
5291edcd81854b99025f2cc89d71cd8d
/* { dg-do compile } */ /* { dg-options "-fipa-cp-clone" } */ struct S { virtual int foo () { return foo () == 0; } virtual void baz (); }; void A () { S s; s.foo (); }
google
chromium
pr43784
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr43784.C
406
utf_8
a10bc7d2d87e38cc8e88038e0261fc91
/* { dg-do run } */ /* { dg-options "-fno-tree-sra" } */ struct S {int x, y, makemelarge[5];}; S __attribute__((noinline)) f (S &s) { S r; r.x = s.y; r.y = s.x; return r; } int __attribute__((noinline)) glob (int a, int b) { S local = { a, b }; local = f (local); return local.y; } extern "C" void...
google
chromium
pr37456
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr37456.C
181
utf_8
ddcb713d149db91f8154d95a295da33d
/* { dg-do compile } */ int zot(int); struct bar { ~bar() { } }; int x; void doit(int a, int b, int c) { bar pn; int b1 = zot(a) * c; int b2 = zot(b) * c; x = b1 + b2; }
google
chromium
pr49938
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr49938.C
1,200
utf_8
54ddb94a512d7930a48a4b9d5a95550e
#include <vector> #include <cstdlib> typedef unsigned short uint16; namespace base { class StringPiece { public: typedef std::size_t size_type; size_type size() const { return length_; } size_type length_; }; } namespace net { class DNSSECKeySet { bool CheckSignature (const base::Str...
google
chromium
predcom-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/predcom-1.C
422
utf_8
9832be91178ec7c78651fc4d49380a93
/* Test for ICE in predictive commoning with empty loop header block on arm-none-linux-gnueabi. */ struct Foo { double *ptr; Foo (double *ptr_) : ptr (ptr_) { } Foo PostInc () { return Foo (ptr++); } }; bool Baz (Foo first, double *last) { Foo prev (first.ptr); first.ptr++; w...
google
chromium
pr42883
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr42883.C
2,096
utf_8
7c1f383ab4432a06607142b166406844
// { dg-do compile } typedef __SIZE_TYPE__ size_t; namespace __gnu_cxx __attribute__ ((__visibility__ ("default"))) { template<typename _Tp> class new_allocator { public: typedef size_t size_type; typedef _Tp* pointer; typedef _Tp& reference; void deallocate(pointer __p, size_type) { ...
google
chromium
pr43879-1_0
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr43879-1_0.C
95
utf_8
a9183140f924e2b97b58b04769243a15
struct A { int *i; A(); ~A(); }; static int x = 0; A::A() : i(&x) {} A::~A() {}
google
chromium
pr42704
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/torture/pr42704.C
1,304
utf_8
8ae9715087d7da846f7a2004a5305eef
/* { dg-do compile } */ typedef int PRInt32; class nsTreeRows { class Subtree { }; enum { kMaxDepth = 32 }; struct Link { Subtree* mParent; PRInt32 mChildIndex; Link& operator=(const Link& aLink) { mParent = aLink.mParent; mChildIndex = aLink.mChildIn...