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 | pragma-pack1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/pragma-pack1.C | 788 | utf_8 | 4a1543932abd77ea1cfba28eecdeeef4 | // PR c++/7046
extern "C" int printf (const char *, ...);
#pragma pack(4)
template <typename X >
struct T
{
char x1; /* Usually 3 padding bytes are added after x1 member. */
int x2;
};
template <class T>
int f()
{
struct A { char i1; int i2; };
return sizeof (A);
}
#pragma pack(1)
template... |
google | android | mangle26 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle26.C | 207 | utf_8 | 39be8be8221e8bfcf3cf9fad019a3ed1 | // Test of std mangling
// { dg-do compile }
// { dg-options "-fno-inline" }
namespace std {
struct A {
A() { }
};
}
std::A a;
// { dg-final { scan-assembler "\n_?_ZNSt1AC\[12\]Ev\[: \t\n\]" } }
|
google | android | key1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/key1.C | 487 | utf_8 | a128b5b94590dd451ff32844c5adb5e7 | // On ARM EABI platforms, key methods may never be inline.
// { dg-do compile { target arm*-*-eabi* arm*-*-symbianelf* } }
// { dg-final { scan-assembler-not _ZTV1S } }
// { dg-final { scan-assembler-not _ZTV1T } }
// { dg-final { scan-assembler _ZTV1U } }
struct S {
virtual void f();
};
inline void S::f() {}
stru... |
google | android | thunk1 | .C | toolchain/gcc/gcc-4.8.3/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 | android | empty10 | .C | toolchain/gcc/gcc-4.8.3/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 | android | enum1 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle41 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle41.C | 294 | utf_8 | e510a04f6741af923e7759aa45e97dc4 | // PR c++/41959
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-options "-mavx -fabi-version=2" }
#include <x86intrin.h>
void f(__m128) { } // { dg-message "previous declaration" }
void f(__m256) { } // { dg-error "conflicts" }
// { dg-message "mangling" "" { target *-*-* } 7 }
|
google | android | vbase1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/vbase1.C | 685 | utf_8 | 6b15aad70c63bb9bebfefe5096394d41 | // { dg-do compile }
// Bug 3986. Another indirect primary base problem.
struct Consts
{
};
struct MathLib :
virtual Consts
{
};
struct Parallel :
virtual Consts
{
};
struct Particles :
virtual MathLib,
virtual Parallel
{
};
struct Ring :
virtual Particles
{
};
struct Injection :
virtual Particles,
virtua... |
google | android | mangle35 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle55 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle55.C | 430 | utf_8 | fb17f4b8177d5c06159c90a3980451c6 | // { dg-options "-std=c++0x" }
struct A { int i; };
// { dg-final { scan-assembler "_Z2f1Ii1AEDTdsfp_fp0_ET0_MS2_T_" } }
template <class T, class U> auto f1 (U u, T U::* p) -> decltype(u.*p) { return u.*p; }
// { dg-final { scan-assembler "_Z2f2Ii1AEDTpmfp_fp0_EPT0_MS2_T_" } }
template <class T, class U> auto f2 (U* u... |
google | android | mangle29 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle29.C | 381 | utf_8 | 2c430e967d278da976c5ea2d63efd9c4 | // Test of std::basic_ostream<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_ostream { basic_ostream(){} };
}
std::basic_ostream<char,std::char_traits<char> > s1;
// { ... |
google | android | thunk3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/thunk3.C | 425 | utf_8 | 64d1aa038d30ffe9d535aa3f5ea90c51 | // { dg-require-weak "" }
// { dg-final { scan-assembler-not ".weak\[\t \]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
// { dg-final { scan-assembler-not ".weak_definition\[\t \]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } } }
struct Base
{
virtual void Foo ();
};
struct Filler
{
virtu... |
google | android | vcall1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/vcall1.C | 379 | utf_8 | c88701df415b47ac9bf5cba84cf379ab | // { dg-do run }
// { dg-options "-w" }
extern "C" void abort ();
struct B;
B* b;
struct A {
virtual void f () {}
};
struct B : virtual public A {
B () {
b = this;
((A*) this)->f ();
}
virtual void f () {
if (this != b)
abort ();
}
};
struct C : public B {
};
struct D : public C, pub... |
google | android | vbase15 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/vbase15.C | 531 | utf_8 | 49b6dc56ea075b441ba7099041f71417 | // { dg-do run }
struct Spec
{
virtual int id () const = 0;
};
class D1_1_Spec : public virtual Spec { };
class D1_2_Spec : public virtual Spec { };
class D1_3_Spec : public virtual Spec { };
class D2_1_Spec : public D1_1_Spec, public D1_2_Spec { };
class D2_Spec : public virtual D2_1_Spec, public virtual D1_3_S... |
google | android | vbase8-4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/vbase8-4.C | 1,113 | utf_8 | 6083c948c9046f70dfbcdfc448a5f784 | // { dg-options -w }
// { dg-do run }
// Bug 3145 case 4. Horribly complicated class hierarchy
class C0
{};
class C1
: virtual public C0
{};
class C2
: public C0
, public C1
{};
class C3
: virtual public C0
, public C1
, public C2
{};
class C4
: public C2
, public C3
, virtual public C1
, virtual pu... |
google | android | thunk2 | .C | toolchain/gcc/gcc-4.8.3/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 | android | arm_va_list2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/arm_va_list2.C | 141 | utf_8 | e1aa0c563084dd7030c3c474c45a09dd | // { dg-do compile }
// { dg-options "-Wpsabi" }
// { dg-require-effective-target arm_eabi }
#include <stdarg.h>
#include "arm_va_list2.h"
|
google | android | thunk4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/thunk4.C | 515 | utf_8 | f0658daee1d193d4845d285a04d20406 | // { dg-require-weak "" }
// { dg-skip-if "Linkonce not weak" { *-*-mingw* *-*-cygwin } { "*" } { "" } }
// { dg-final { scan-assembler ".weak\[ \t\]_?_ZThn._N7Derived3FooEv" { target { ! { *-*-darwin* } } } } }
// { dg-final { scan-assembler ".weak_definition\[ \t\]_?_ZThn._N7Derived3FooEv" { target { *-*-darwin* } } ... |
google | android | rtti2 | .C | toolchain/gcc/gcc-4.8.3/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 | android | layout4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/layout4.C | 258 | utf_8 | bce89527ea384ef57e8233c6ea7e1ed2 | // { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
// { dg-options "-fabi-version=1" }
struct C4
{
int b:30;
C4(){};
};
struct C1: virtual C4
{
int i;
};
int main() {
if (sizeof (C1) != 12)
return 1;
}
|
google | android | macro2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/macro2.C | 120 | utf_8 | 06f0193b05c4ae743af4e38aec8d1122 | // { dg-options "-fabi-version=2" }
#if __GXX_ABI_VERSION != 1002
#error "Incorrect value of __GXX_ABI_VERSION"
#endif
|
google | android | empty9 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle49 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle32 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle56 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle56.C | 393 | utf_8 | ab876e48babd04649a5a955f1a3df61c | // { dg-options "-std=c++0x" }
template <class T> T g(T t1, T t2) { return t2; }
// { dg-final { scan-assembler "_Z2f1IiEDTcl1gfp_ilEEET_" } }
template <class T> auto f1 (T t) -> decltype(g(t,{})) { return g(t,{}); }
// { dg-final { scan-assembler "_Z2f2IiEDTcl1gfp_tlT_EEES0_" } }
template <class T> auto f2 (T t) -> d... |
google | android | empty7 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle16 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle16.C | 457 | utf_8 | d6cfcf12071b19ad5863b84ad45b916e | // { dg-options "-fabi-version=0" }
enum E { e = 3 };
template <int I> struct S {};
template <int I> void f (S<e + 1>) {}
template void f<7>(S<e + 1>);
template <int I> void g (S<e>) {}
template void g<7>(S<e>);
template <int I> void h (S<I + 1>) {}
template void h<7>(S<7 + 1>);
// { dg-final { scan-assembler _Z1... |
google | android | vbase13 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/vbase13.C | 357 | utf_8 | 2c858a9c525d6228c68ebd9b6adc4724 | // { dg-do run }
// { dg-options "-fabi-version=0 -w" }
struct E1 {};
struct E2 : public E1 {};
struct E : public E1, public E2 {};
struct N : public E { virtual void f () {} };
struct X : virtual public N {
};
int main () {
X x;
/* N should not be the primary base of X; it is not nearly empty. */
if ((void*)... |
google | android | empty11 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/empty11.C | 355 | utf_8 | 5ce11bfa25802ab713c346269c112592 | // { dg-do run }
// { dg-options "-w -fabi-version=0" }
struct E {};
struct E2 : public E {};
struct E3 : public E, public E2 {};
struct E4 : public E, public E2, public E3 { };
struct E5 : public E, public E2, public E3, public E4 {};
struct S : public virtual E5 {
E e;
};
S s;
int main () {
if ((char*)(E4*)&s... |
google | android | empty6 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/empty6.C | 548 | utf_8 | 7f05451661fd24772bf5911bafb6ff9e | // { dg-options "-Wabi -fabi-version=1" }
struct A {};
struct B {
A a; // { dg-warning "empty" "" { xfail mmix-*-* } }
virtual void f () {}
} __attribute__((aligned(2 * sizeof (void *))));
/* The preceding attribute is necessary on targets with
BIGGEST_ALIGNMENT <= POINTER_SIZE to trigger the warning, as
ot... |
google | android | mangle42 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle33 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle33.C | 16,396 | utf_8 | c5d5176bf2a0d86ae5769b300e777296 | // Testcase for mangling very long names.
#define N \
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcde... |
google | android | mangle2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle2.C | 270 | utf_8 | 2fe54fcb3681eed20518e8a88f7e3849 | // Test that we handle mangling of statics in inlines properly.
// { dg-options -fno-weak }
// { dg-do run }
inline int f ()
{
static int nested;
nested = 24;
{
static int nested;
nested = 42;
}
return (nested != 24);
}
int main()
{
return f ();
}
|
google | android | mangle25 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle25.C | 658 | utf_8 | ae04b64f75744d4e08d314ffccafb713 | // Test mangling of __float128.
// The C++ ABI document says __float128 is mangled as "g". It
// also says that "long double" is mangled as "e", so these conflict on
// ia64-hpux where "long double" is "e" and __float128 is synonymous with
// "long double".
// { dg-do compile { target ia64-*-* i?86-*-* x86_64-*-* } }
... |
google | android | pr39188-2b | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/pr39188-2b.C | 173 | utf_8 | 0e0d3fd200f3fd63503e40a56053caf0 | #include "pr39188-2.h"
extern "C" void abort ();
extern int x (int);
int
main (void)
{
if (x (1) != 0)
abort ();
if (f<int> (1) != 1)
abort ();
return 0;
}
|
google | android | thunk5 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/thunk5.C | 226 | utf_8 | 0ec5c22fec9ed33618612b880a806f5c | // PR c++/35067
// The thunks should be weak even on targets without one-only support.
// { dg-require-weak "" }
// { dg-final { scan-assembler "weak.*ZTv" } }
struct A
{
virtual ~A() { }
};
struct B: virtual A { };
B b;
|
google | android | mangle10 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle10.C | 243 | utf_8 | e284ef1906cd5f1de0a8f3009ac761ff | // { dg-options "-fabi-version=0" }
template <template <typename> class Q>
void f (typename Q<int>::X) {}
template <typename Q>
struct S {
typedef int X;
};
template void f<S> (int);
// { dg-final { scan-assembler _Z1fI1SEvNT_IiE1XE } }
|
google | android | macro0 | .C | toolchain/gcc/gcc-4.8.3/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 | android | noreturn1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/noreturn1.C | 320 | utf_8 | 6d86ff25fe0e7bc030ff238bd833862a | // Test that attribute noreturn is not part of the mangled name.
// { dg-options -fabi-version=0 }
void baz (const char *fmt, ...);
// { dg-final { scan-assembler "_Z3barPFvPKczE" } }
void bar (void (*baz) (const char *fmt, ...)
__attribute__ ((noreturn, format (printf, 1, 2))));
void
foo ()
{
bar (&baz);
}
|
google | android | noreturn2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/noreturn2.C | 315 | utf_8 | c57345fa3b5ca1a7540c77ee0ce25605 | // Test for buggy mangling of attribute noreturn in abi<=4
// { dg-options -fabi-version=4 }
void baz (const char *fmt, ...);
// { dg-final { scan-assembler "_Z3barPVFvPKczE" } }
void bar (void (*baz) (const char *fmt, ...)
__attribute__ ((noreturn, format (printf, 1, 2))));
void
foo ()
{
bar (&baz);
}
|
google | android | mangle21 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle21.C | 268 | utf_8 | 19d5bab4f182e97a38690a5ff4541700 | // PR c++/14324
// { dg-do assemble }
extern "C" {
void fun1(void)
{
do { static int xyz __attribute__((unused)) = 1; } while (0);
do { static int xyz __attribute__((unused)) = 2; } while (0);
do { static int xyz __attribute__((unused)) = 3; } while (0);
}
}
|
google | android | bitfield11 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/bitfield11.C | 161 | utf_8 | e5e5ef8164ac7b43c7f20df7cfcd9b99 | // { dg-do run }
// { dg-options "-w -fabi-version=0" }
struct S {
char c : 1024;
};
S s;
int main () {
s.c = 1;
if (*(char *)&s != 1)
return 1;
}
|
google | android | mangle52 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle52.C | 822 | utf_8 | d4acd5b6d209e1fd7055dde211cdfd56 | // { dg-options "-fabi-version=0" }
template <unsigned int> struct helper {};
// { dg-final { scan-assembler "_Z6check1IiEvP6helperIXszscT_Li1EEE" } }
template <class T> void check1( helper<sizeof(static_cast<T>(1))> * ) { }
// { dg-final { scan-assembler "_Z6check2IiXadL_Z1iEEEvP6helperIXszccPT_T0_EE" } }
template <c... |
google | android | dcast1 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle14 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle14.C | 284 | utf_8 | a34b61046b432b42bb70d5c1efdb3f68 | // { dg-do compile }
// { dg-options "-Wabi -fabi-version=1" }
// { dg-final { scan-assembler "_Z1g1SIXadsr1ANS0_1fIiEEivEE" } }
struct A {
template <typename T> int f ();
};
typedef int (A::*P)();
template <P> struct S {};
void g (S<&A::f<int> >) {} // { dg-warning "mangle" }
|
google | android | vbase8-10 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle48 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle48.C | 743 | utf_8 | e5d76fa8807ab65c9dd21690cd7519ed | // Testcase for 'this' mangling
// { dg-options -std=c++0x }
struct B
{
template <class U> U f();
};
struct A
{
B b;
// { dg-final { scan-assembler "_ZN1A1fIiEEDTcldtdtdefpT1b1fIT_EEEv" } }
template <class U> auto f() -> decltype (b.f<U>());
// { dg-final { scan-assembler "_ZN1A1gIiEEDTcldtptfpT1b1fIT_EEEv"... |
google | android | pr39188-1a | .C | toolchain/gcc/gcc-4.8.3/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 | android | arm_va_list | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/arm_va_list.C | 572 | utf_8 | 75eaf4809f23fb10dd33b8f862358f9b | // { dg-do compile { target { aarch64*-*-* arm*-*-* } } }
// { dg-options "-Wno-abi" }
// { dg-require-effective-target arm_eabi { target arm*-*-* } }
// AAPCS \S 7.1.4 requires that va_list be a typedef for "struct
// __va_list". The mangling is as if it were "std::__va_list".
// AAPCS64 \S 7.1.4 has the same requir... |
google | android | mangle12 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle12.C | 251 | utf_8 | cbe0f93f9d6465f2cfc06b83795f495a | // { dg-options "-Wabi -fabi-version=1" }
template <template <typename> class Q>
void f (typename Q<int>::X) {} // { dg-warning "mangle" }
template <typename Q>
struct S {
typedef int X;
};
template void f<S> (int); // { dg-message "required" }
|
google | android | mangle19-1 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle47 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle47.C | 185 | utf_8 | 75d7fbcfe35b540781d8b4eaade27b4a | // PR c++/47132
// { dg-options -std=c++0x }
// { dg-final { scan-assembler "_Z1fIiEDToRfp_Li1EET_" } }
template <typename T>
auto f (T t) -> decltype(t |= 1);
int main()
{
f(1);
}
|
google | android | bitfield8 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/bitfield8.C | 307 | utf_8 | 20c8af1b6abeb0a339e5fd9c3edbde57 | // { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-options "-fabi-version=0" }
// { dg-require-effective-target ilp32 }
struct A {
virtual void f() {}
int f1 : 1;
};
struct B : public A {
int f2 : 31;
int f3 : 4;
int f4 : 3;
};
int main ()
{
if (sizeof (B) != 16)
return 1;
}
|
google | android | bitfield3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/bitfield3.C | 1,590 | utf_8 | c099e813ae28a3b2fe5a62d1aa26266a | // Test for oversized bitfield alignment in structs on IA-32
// { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } }
// { dg-options "-O2" }
// Cygwin and mingw default to MASK_ALIGN_DOUBLE. Override to ensure
// 4-byte alignment.
// { dg-additional-options "-mno-align-double" { target i?86-*-cygwin* i?86-*-min... |
google | android | mangle59 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle59.C | 665 | utf_8 | 6aba6a8dbfcadb36b7b73576034e12e5 | // { dg-options "-std=c++0x -fabi-version=0" }
// { dg-final { scan-assembler "_Z1fIiEDTcmdlfp_psfp_EPT_" } }
template <class T> auto f (T* p) -> decltype(delete p, +p) { return p; }
// { dg-final { scan-assembler "_Z1gIiEDTcmgsdlfp_psfp_EPT_" } }
template <class T> auto g (T* p) -> decltype(::delete p, +p) { return p... |
google | android | pr39188-2a | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/pr39188-2a.C | 165 | utf_8 | fe56cd912c0f058bb4436bed7ee10cea | // PR c++/39188
// { dg-do run }
// { dg-options "-O2" }
// { dg-additional-sources "pr39188-2b.C" }
#include "pr39188-2.h"
int
x (int i)
{
return f<int> (i);
}
|
google | android | mangle17 | .C | toolchain/gcc/gcc-4.8.3/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 | android | abi-tag1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/abi-tag1.C | 465 | utf_8 | dadf07953fc49dff2fe36c2a384b6425 | // { dg-options "-Wabi-tag" }
// { dg-final { scan-assembler "_Z1fB3barB3fooi" } }
void f(int) __attribute ((abi_tag ("foo","bar")));
struct __attribute ((abi_tag ("bar"))) A { };
struct B: A { }; // { dg-warning "bar. abi tag" }
struct D { A* ap; }; // { dg-warning "bar. abi tag" }
// { dg-final { scan-assembler... |
google | android | mangle18-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle18-2.C | 654 | utf_8 | ed08764439318b92bcfc00c24907e5eb | // { dg-do compile }
// { dg-options "-fabi-version=1 -Wabi" }
// PR 13241
// mangled template arguments that are external objects incorrectly
extern "C" void Foo ();
namespace NMS
{
extern "C" int V;
}
template <void (*)()> struct S {};
template <int *> struct T {};
void f (S<Foo>){} // { dg-warning "mangled name" ... |
google | android | param1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/param1.C | 405 | utf_8 | a6094bf319c105760bebe41768865b66 | // { dg-do run }
//
// Failed on powerpc64-linux for structure sizes > 64 and with size not a
// multiple of 8 after padding.
struct object
{
int i1;
char s1[60];
int i2;
char s2[64];
};
extern int subr (struct object obj);
int main ()
{
struct object obj;
obj.i1 = 1234;
obj.i2 = 5678;
return subr (... |
google | android | mangle30 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle40 | .C | toolchain/gcc/gcc-4.8.3/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 | android | bitfield12 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/bitfield12.C | 124 | utf_8 | 3fd7e30befde66c7c5adb5b41e25923e | // { dg-options "-Wabi -fabi-version=1" }
struct S { // { dg-warning "ABI" }
char c : 1024; // { dg-warning "width" }
};
|
google | android | empty5 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/empty5.C | 196 | utf_8 | b3ca6b59f60c246ebf1e969e6120765f | // { dg-options "-fabi-version=0" }
struct A {};
struct B {
A a;
virtual void f () {}
};
struct C : public B, public A {};
C c;
int main () {
if ((void*) (A*) &c != &c)
return 1;
}
|
google | android | local2 | .C | toolchain/gcc/gcc-4.8.3/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 | android | dtor2 | .C | toolchain/gcc/gcc-4.8.3/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 | android | bitfield10 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/bitfield10.C | 52 | utf_8 | 9966069a163a3254b4d24ab2f38965c2 | // { dg-options "-w" }
struct S {
int i : 64;
};
|
google | android | vbase10 | .C | toolchain/gcc/gcc-4.8.3/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 | android | vbase14 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/vbase14.C | 257 | utf_8 | 530a9c9d639369e0e074a2ac0f3f8e59 | // { dg-options "-Wabi -fabi-version=1" }
struct E1 {};
struct E2 : public E1 {}; // { dg-warning "layout" }
struct E : public E1, public E2 {}; // { dg-warning "layout|ambiguity" }
struct N : public E { virtual void f () {} }; // { dg-warning "nearly" }
|
google | android | bitfield2 | .C | toolchain/gcc/gcc-4.8.3/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 | android | param2 | .C | toolchain/gcc/gcc-4.8.3/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 | android | covariant4 | .C | toolchain/gcc/gcc-4.8.3/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 | android | forced | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/forced.C | 434 | utf_8 | 6f15172d825edc5509c1d35da3bfb275 | // This test only applies to glibc (NPTL) targets.
// { dg-do run { target *-*-linux* } }
// { dg-options "-pthread" }
#include <pthread.h>
#include <cxxabi.h>
extern "C" int printf (const char *, ...);
int main()
{
try
{
pthread_exit (0);
}
catch (abi::__forced_unwind &)
{
printf ("caught... |
google | android | mangle15 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle15.C | 249 | utf_8 | 8ffaa1b19590f5f7ddf6464b1d009a9c | // { dg-do compile }
// { dg-options "-fabi-version=0" }
struct A {
template <typename T> int f ();
};
typedef int (A::*P)();
template <P> struct S {};
void g (S<&A::f<int> >) {}
// { dg-final { scan-assembler _Z1g1SIXadL_ZN1A1fIiEEivEEE } }
|
google | android | structret1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/structret1.C | 541 | utf_8 | 51349b3acb94d1dc1909aec6ba384dae | // { dg-do run { target ia64-*-* } }
// { dg-options "-fabi-version=0" }
extern "C" void abort ();
struct ConstructedObject {
ConstructedObject() {};
~ConstructedObject() {};
ConstructedObject(const ConstructedObject &from) {};
};
struct FrameworkObject {
ConstructedObject action();
};
ConstructedObject Fra... |
google | android | vbase8-21 | .C | toolchain/gcc/gcc-4.8.3/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 | android | bitfield7 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle61 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/mangle61.C | 461 | utf_8 | 66684a770eb87b4824cb6e758ae0f0ca | // PR c++/56237
// { dg-do compile }
void *p[4];
void
foo ()
{
static union { } u;
p[0] = &u;
{
static union { } u;
p[1] = &u;
{
static union { } u;
p[2] = &u;
}
}
{
static union { } u;
p[3] = &u;
}
}
// { dg-final { scan-assembler "_ZZ3foovE1u\[^_\]" } }
// { dg-fina... |
google | android | local1 | .C | toolchain/gcc/gcc-4.8.3/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 | android | dtor1 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle37 | .C | toolchain/gcc/gcc-4.8.3/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 | android | aarch64_guard1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/abi/aarch64_guard1.C | 524 | utf_8 | 06bddc1566a04d1fb7914b4af1df35f8 | // Check that the initialization guard variable is an 8-byte aligned,
// 8-byte doubleword and that only the least significant bit is used
// for initialization guard variables.
// { dg-do compile { target aarch64*-*-* } }
// { dg-options "-O -fdump-tree-original -fno-section-anchors" }
int bar();
int *foo ()
{
sta... |
google | android | vtt1 | .C | toolchain/gcc/gcc-4.8.3/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 | android | mangle34 | .C | toolchain/gcc/gcc-4.8.3/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 | android | bitfield1 | .C | toolchain/gcc/gcc-4.8.3/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 | android | empty4 | .C | toolchain/gcc/gcc-4.8.3/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 | android | covariant3 | .C | toolchain/gcc/gcc-4.8.3/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 | android | pr37143 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/vect/pr37143.C | 498 | utf_8 | bb02984184613c4e23cd3b598fd11bf4 | /* { dg-do compile } */
void
f(int NumberOfSideSets, int *ssNumDFperSide, float *ssDF)
{
int i;
float *newssDF = __null;
int *newssNumDF = new int [NumberOfSideSets];
int ndf, nextDF, numNewDF = 0;
int ii=0;
for (i=0; i<NumberOfSideSets; i++)
numNewDF += newssNumDF[i];
if (numNewDF > 0)
newss... |
google | android | pr43695 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr43695.C | 245 | utf_8 | 02f3704c0511b2d171c55dbf09c64325 | /* { dg-do compile } */
/* { dg-options "-fipa-cp -fipa-cp-clone" } */
extern void baz(int) __attribute__ ((noreturn));
struct S {
~S();
};
__attribute__ ((noreturn, noinline))
void bar(int i)
{
baz(i);
}
void foo()
{
S s;
bar(0);
}
|
google | android | devirt-10 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-10.C | 1,071 | utf_8 | a38c209b4fc2c2a0b36cf4c89adcf9d8 | /* { dg-do compile } */
/* { dg-options "-O3 -fdump-ipa-inline -fdump-ipa-cp -fno-early-inlining" } */
class wxPaintEvent { };
struct wxDCBase
{
wxDCBase ();
virtual int GetLayoutDirection() const{}
virtual void SetLayoutDirection(int){}
};
struct wxWindowDC : public wxDCBase {};
struct wxBufferedDC : public ... |
google | android | 20090113-1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/20090113-1.C | 224 | utf_8 | 181d03bf17027cab97eb47736f11ff30 | /* { dg-do compile } */
/* { dg-options "-O3" } */
struct S1 {
S1() { }
};
struct S2 {
int n;
S1* p;
void f() {
p = new S1[n = 1];
}
};
struct S3 {
S2 s2;
void g() {
s2.f();
}
};
void h() {
S3().g();
}
|
google | android | iinline-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/iinline-2.C | 1,127 | utf_8 | e237de4e932633797dc4c7de8f8cd59b | /* Verify that simple indirect calls are inlined even without early
inlining.. */
/* { dg-do compile } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining" } */
/* { dg-add-options bind_pic_locally } */
extern void non_existent (const char *, int);
class String
{
private:
const char *data;
public:
... |
google | android | pr44372 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr44372.C | 561 | utf_8 | e4f8dcc7620cbae1961d6880134b1dd5 | /* { dg-do compile } */
/* { dg-options "-O -fipa-cp -fipa-cp-clone" } */
template < typename > class S3;
struct S1
{
struct
{
int i[10];
} s0;
S1 () : s0 ()
{ }
template < typename T > S1 (S3 < T > s3, int)
{
f (s3);
}
};
struct S2
{
template < typename T > S2 s (S3 < T > s3)
{
S1 (s... |
google | android | devirt-d-1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-d-1.C | 895 | utf_8 | 8c656947335d6be6c04696553802a105 | /* Verify that ipa-cp correctly detects the dynamic type of an object
under destruction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline" } */
extern "C" void abort (void);
class A
{
public:
int data;
~A();
virtual int foo (int i);
};
class B : publi... |
google | android | pr45572-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr45572-2.C | 1,083 | utf_8 | 0d4cd7a0dcc526799f7b4db021c2f68d | // { dg-do compile }
// { dg-options "-finline-small-functions -findirect-inlining -finline-function+
typedef struct
{} __mpf_struct;
typedef __mpf_struct mpf_t[1];
typedef const __mpf_struct *mpf_srcptr;
typedef __mpf_struct *mpf_ptr;
extern "C" {
void __gmpf_add (mpf_ptr, mpf_srcptr, mpf_srcptr);
}
class _knumber
{
... |
google | android | ivinline-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/ivinline-2.C | 983 | utf_8 | 2a5a3c49ddada6ae9adfe8f613f0cc06 | /* Verify that simple virtual calls using this pointer are inlined
even without early inlining.. */
/* { dg-do run { target nonpic } } */
/* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */
extern "C" void abort (void);
class A
{
public:
int data;
virtual int foo (int i);
int middl... |
google | android | devirt-c-8 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-c-8.C | 1,324 | utf_8 | 5485b0e4fc00891367fe45707e6b74f1 | /* Verify that ipa-cp correctly detects the dynamic type of an object
under construction when doing devirtualization. */
/* { dg-do run } */
/* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */
extern "C" void abort (void);
class A
{
public:
int data;
A();
virtual ... |
google | android | pr55264 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr55264.C | 181 | utf_8 | 31b6d18c1858b5f5148de832f3fb7915 | /* { dg-do compile } */
/* { dg-options "-O2 -fno-early-inlining -fno-weak" } */
struct S
{
S();
virtual inline void foo ()
{
foo();
}
};
void
B ()
{
S().foo ();
}
|
google | android | pr51929 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr51929.C | 559 | utf_8 | 20fcc05340e0948ba3a032b0f5f2bbe9 | // PR middle-end/51929
// { dg-do compile }
// { dg-options "-O -fno-guess-branch-probability -fipa-cp -fipa-cp-clone --param=max-inline-insns-single=25" }
struct A
{
A (A, unsigned);
A (const char *);
~A () { a1 (a4 ()); }
void a1 (int);
unsigned a2 ();
char *a3 ();
int a4 ();
};
template <typename T>
... |
google | android | pr46287-3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr46287-3.C | 758 | utf_8 | e8c7134cc40956db0ba67738dbd45120 | // Check that indirect calls to thunks do not lead to errors.
// { dg-do run }
// { dg-options "-O -fipa-cp" }
extern "C" void abort ();
class A
{
public:
virtual void foo () {abort();}
};
class B : public A
{
public:
int z;
virtual void foo () {abort();}
};
class C : public A
{
public:
void *a[32];
unsig... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.