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 | alias3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/alias3.C | 649 | utf_8 | 91fe29b9b1f08a3ca87595896db03497 | // { dg-options "-O2" }
C f1 (C x)
{
return x;
}
void f2 (short)__attribute__ ((noinline));;
short s;
void f2 (short s_)
{
s = s_;
}
C g (C x)__attribute__ ((noinline));
C g (C x)
{
x = f1 (x);
f2 (*x);
return x;
}
int main ()
{
short p[2] = { 0x1234, 0x5678 };
C x (p, 1);
g (x);
return s != p[1];
} |
google | android | longbranch2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/longbranch2.C | 1,712 | utf_8 | e540aa71efce6288790e26442c56b78e | // PR target/11689
// { dg-do compile }
// { dg-options "-O3 -funroll-loops -mtune=k6 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ia32 } } }
// This used to fail to assemble because of an out-of-range 'loop' instructions.
class JKeeper {
public:
unsigned long a0;
};
class EBCOTLut : public JKeeper {
... |
google | android | vt4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/vt4.C | 417 | utf_8 | 95e336e653565b99de2a198e65a6d5c7 | // PR c++/50243
// { dg-do compile }
// { dg-options "-O" }
// { dg-final { scan-assembler-not "_ZTV.A" } }
void foo ();
struct A
{
~A () { }
virtual void a () = 0;
virtual void b () = 0;
virtual void c () = 0;
};
struct B : public A
{
~B () { foo (); }
void a () { foo (); }
void b () { foo (); }
voi... |
google | android | bitfield1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/opt/bitfield1.C | 186 | utf_8 | cd9d658bcc74632f8c5f64180e52c3e8 | // PR c++/26534
// { dg-do run }
// { dg-options "-w -O2" }
struct X
{
unsigned a:4;
};
unsigned i;
int main()
{
struct X x = { 63u };
i = x.a;
if (i != 15)
return 1;
}
|
google | android | pr38736_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/pr38736_main.C | 392 | utf_8 | 3d9b6388219f5a45fa63acac27d1e965 | /* PR target/38736 */
/* { dg-skip-if "attribute ((aligned))" { ! { i?86-*-* x86_64-*-* } } } */
/* { dg-require-effective-target avx } */
/* Test compatibility of attribute ((aligned)) with and without -mavx. */
extern int aligned_x (void);
extern int aligned_y_avx (void);
extern "C" void abort (void);
int
main ()... |
google | android | vbase8-21_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-21_x.C | 863 | utf_8 | 80c0db68946cf4d1286450c5c84ab94c | // { dg-options -w }
#include "vbase8-21.h"
extern void check_C0 (C0&, int);
extern void check_C1 (C1&, int);
extern void check_C2 (C2&, int);
extern void check_C3 (C3&, int);
extern void check_C4 (C4&, int);
extern void check_C5 (C5&, int);
extern void check_C6 (C6&, int);
extern void check_C7 (C7&, int);
extern voi... |
google | android | bitfield1_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/bitfield1_x.C | 218 | utf_8 | ed9a4f7264b3108ca35a2e480c7d2881 | // { dg-options "-w -ansi -pedantic-errors -funsigned-bitfields" }
#include "bitfield1.h"
extern void bitfield1_y (A& a);
void bitfield1_x ()
{
A a;
a.bitS = 1;
a.bitU = 1;
a.bit = 1;
bitfield1_y (a);
}
|
google | android | bitfield2_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/bitfield2_main.C | 325 | utf_8 | 2e149461f2f10c0667d3f95cf3115d61 | // { dg-options "-w -ansi -pedantic-errors -fsigned-bitfields" }
// Split into pieces for binary compatibility testing October 2002
extern void bitfield1_x (void);
int
main ()
{
bitfield1_x ();
} |
google | android | bitfield2_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/bitfield2_x.C | 216 | utf_8 | b34d27b1a6b80a6b42f1ee6a3ed835f4 | // { dg-options "-w -ansi -pedantic-errors -fsigned-bitfields" }
#include "bitfield1.h"
extern void bitfield1_y (A& a);
void bitfield1_x ()
{
A a;
a.bitS = 1;
a.bitU = 1;
a.bit = 1;
bitfield1_y (a);
}
|
google | android | vbase8-4_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-4_main.C | 367 | utf_8 | 3e6b5a438641d0fa418b9b6b59dc9ad5 | // { dg-options -w }
// Bug 3145 case 4. Horribly complicated class hierarchy
extern void vbase8_4_x (void);
int
main ()
{
vbase8_4_x ();
} |
google | android | pr38736_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/pr38736_y.C | 112 | utf_8 | 599c06e1056a46b13703177d9964c3c1 | /* PR target/38736 */
/* { dg-options "-O2 -mavx" } */
#define aligned_x aligned_y_avx
#include "pr38736_x.C"
|
google | android | vbase8-22_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-22_y.C | 726 | utf_8 | 7c22a1df5def02262ccf20d04c785c83 | // { dg-options -w }
extern "C" void abort (void);
#include "vbase8-22.h"
void check_C0 (C0 &x, int i)
{
if (x.i0 != i)
abort ();
}
void check_C1 (C1 &x, int i)
{
if (x.i1 != i)
abort ();
}
void check_C2 (C2 &x, int i)
{
if (x.i2 != i)
abort ();
}
void check_C3 (C3 &x, int i)
{
if (x.i3 != i)
... |
google | android | vbase8-22_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-22_x.C | 863 | utf_8 | 3c1de2c35e58a73451a670866b8e8787 | // { dg-options -w }
#include "vbase8-22.h"
extern void check_C0 (C0&, int);
extern void check_C1 (C1&, int);
extern void check_C2 (C2&, int);
extern void check_C3 (C3&, int);
extern void check_C4 (C4&, int);
extern void check_C5 (C5&, int);
extern void check_C6 (C6&, int);
extern void check_C7 (C7&, int);
extern voi... |
google | android | vbase8-4_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-4_x.C | 861 | utf_8 | 218fc83d35fc2202ce2c23a8d88a2a0e | // { dg-options -w }
#include "vbase8-4.h"
extern void check_C0 (C0&, int);
extern void check_C1 (C1&, int);
extern void check_C2 (C2&, int);
extern void check_C3 (C3&, int);
extern void check_C4 (C4&, int);
extern void check_C5 (C5&, int);
extern void check_C6 (C6&, int);
extern void check_C7 (C7&, int);
extern void... |
google | android | bitfield1_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/bitfield1_main.C | 327 | utf_8 | 21616e05ed3fb5bd1464080bb4c76c90 | // { dg-options "-w -ansi -pedantic-errors -funsigned-bitfields" }
// Split into pieces for binary compatibility testing October 2002
extern void bitfield1_x (void);
int
main ()
{
bitfield1_x ();
} |
google | android | vbase8-10_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-10_x.C | 863 | utf_8 | a60cb5dbd750fbb5c363dec1bc7a0a2b | // { dg-options -w }
#include "vbase8-10.h"
extern void check_C0 (C0&, int);
extern void check_C1 (C1&, int);
extern void check_C2 (C2&, int);
extern void check_C3 (C3&, int);
extern void check_C4 (C4&, int);
extern void check_C5 (C5&, int);
extern void check_C6 (C6&, int);
extern void check_C7 (C7&, int);
extern voi... |
google | android | vbase8-21_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-21_main.C | 370 | utf_8 | 79d45028cc06eaf2ed22f02fc72f53a9 | // { dg-options -w }
// Bug 3145 case 10. Horribly complicated class hierarchy
extern void vbase8_21_x (void);
int
main ()
{
vbase8_21_x ();
} |
google | android | vbase8-22_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-22_main.C | 370 | utf_8 | f21dc1eb54ea34814c912bb958cc243b | // { dg-options -w }
// Bug 3145 case 22. Horribly complicated class hierarchy
extern void vbase8_22_x (void);
int
main ()
{
vbase8_22_x ();
} |
google | android | pr38736_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/pr38736_x.C | 238 | utf_8 | 8f20c43d31513b2af00eae22d51e49ba | /* PR target/38736 */
/* { dg-options "-O2" } */
struct alignment_test_struct
{
char space[4] __attribute__((__aligned__));
};
extern int aligned_x (void);
int
aligned_x (void)
{
return __alignof__(struct alignment_test_struct);
}
|
google | android | vbase8-10_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-10_y.C | 726 | utf_8 | 751c1c56ac31742f865c103dffb811c5 | // { dg-options -w }
extern "C" void abort (void);
#include "vbase8-10.h"
void check_C0 (C0 &x, int i)
{
if (x.i0 != i)
abort ();
}
void check_C1 (C1 &x, int i)
{
if (x.i1 != i)
abort ();
}
void check_C2 (C2 &x, int i)
{
if (x.i2 != i)
abort ();
}
void check_C3 (C3 &x, int i)
{
if (x.i3 != i)
... |
google | android | vbase8-4_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-4_y.C | 725 | utf_8 | ad654d45c988963d6d91e514325cd68c | // { dg-options -w }
extern "C" void abort (void);
#include "vbase8-4.h"
void check_C0 (C0 &x, int i)
{
if (x.i0 != i)
abort ();
}
void check_C1 (C1 &x, int i)
{
if (x.i1 != i)
abort ();
}
void check_C2 (C2 &x, int i)
{
if (x.i2 != i)
abort ();
}
void check_C3 (C3 &x, int i)
{
if (x.i3 != i)
... |
google | android | bitfield1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/bitfield1_y.C | 250 | utf_8 | c1dd69db551a2eeedb2aa7085ec3554d | // { dg-options "-w -ansi -pedantic-errors -funsigned-bitfields" }
extern "C" void abort (void);
#include "bitfield1.h"
void bitfield1_y (A& a)
{
if (a.bitS != -1)
abort ();
if (a.bitU != 1)
abort ();
if (a.bit != 1)
abort ();
}
|
google | android | bitfield2_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/bitfield2_y.C | 249 | utf_8 | ca927b45e57657ab38123c3f1c679b45 | // { dg-options "-w -ansi -pedantic-errors -fsigned-bitfields" }
extern "C" void abort (void);
#include "bitfield1.h"
void bitfield1_y (A& a)
{
if (a.bitS != -1)
abort ();
if (a.bitU != 1)
abort ();
if (a.bit != -1)
abort ();
}
|
google | android | vbase8-10_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-10_main.C | 370 | utf_8 | e8b6009fc697fcc6695a9d76a85e4a1c | // { dg-options -w }
// Bug 3145 case 10. Horribly complicated class hierarchy
extern void vbase8_10_x (void);
int
main ()
{
vbase8_10_x ();
} |
google | android | vbase8-21_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/abi/vbase8-21_y.C | 726 | utf_8 | 09cc1c9672dfefcb488cfae468b3266c | // { dg-options -w }
extern "C" void abort (void);
#include "vbase8-21.h"
void check_C0 (C0 &x, int i)
{
if (x.i0 != i)
abort ();
}
void check_C1 (C1 &x, int i)
{
if (x.i1 != i)
abort ();
}
void check_C2 (C2 &x, int i)
{
if (x.i2 != i)
abort ();
}
void check_C3 (C3 &x, int i)
{
if (x.i3 != i)
... |
google | android | vbase11_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/vbase11_main.C | 265 | utf_8 | c066ba2e23a50eda1497704cad37719c | // Test case from PR 7470, which was fixed in GCC 3.2 and breaks binary
// compatibility with earlier releases.
// Split into pieces for binary compatibility testing October 2002
#include "vbase11.h"
extern void vbase11_x (void);
int
main ()
{
vbase11_x ();
}
|
google | android | empty6_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/empty6_x.C | 106 | utf_8 | a96ff5f09f7c6b413988f5b356a1022c | #include "empty6.h"
extern void empty6_y (B&);
void empty6_x ()
{
B b;
b.i = 7;
empty6_y (b);
}
|
google | android | bitfield7_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/bitfield7_main.C | 331 | utf_8 | 3adf0f3ae7b5d18709b473c700c9b7de | // { dg-options "-w" }
// The size assigned to `U' may not be ABI-compliant and may change in a
// future version of GCC.
// g++.dg/abi/bitfield7.C tests this with -Wabi.
// Split into pieces for binary compatibility testing October 2002
#include "bitfield7.h"
extern void bitfield7_x (void);
int
main ()
{
bitfiel... |
google | android | vbase10_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/vbase10_x.C | 123 | utf_8 | 993931cd04d51720241622319a10d2d3 | #include "vbase10.h"
extern void vbase10_y (C&);
void vbase10_x ()
{
C c;
c.c1 = 1;
c.c2 = 2;
} |
google | android | bitfield5_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/bitfield5_main.C | 300 | utf_8 | a4f5bc9b9eeba848df2b3660451312e5 | // The offset of `B::f2' is not ABI-compliant and may change in a future
// version of GCC.
// g++.dg/abi/bitfield5.C tests this with -Wabi.
// Split into pieces for binary compatibility testing October 2002
#include "bitfield5.h"
extern void bitfield5_x (void);
int
main ()
{
bitfield5_x ();
}
|
google | android | empty6_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/empty6_main.C | 325 | utf_8 | 42f69a37e713bce11a2acf77a8a91860 | // `B::a' contains empty classes which may cause base classes to be
// placed at different locations in a future version of GCC.
// g++.dg/abi/empty6.C tests this with -Wabi.
// Split into pieces for binary compatibility testing October 2002
#include "empty6.h"
extern void empty6_x (void);
int
main ()
{
empty6_x (... |
google | android | vbase10_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/vbase10_y.C | 168 | utf_8 | 45da181e3f9451605e6206aa1f1a4f11 | extern "C" void abort (void);
#include "vbase10.h"
void A::f () {}
B::B() {}
void vbase10_y (C& c)
{
if (c.c1 != 1)
abort ();
if (c.c2 != 2)
abort ();
}
|
google | android | bitfield5_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/bitfield5_y.C | 162 | utf_8 | 2196094f95b60e3fda05e05cb6c118dc | extern "C" void abort (void);
#include "bitfield5.h"
void A::f () {}
void bitfield5_y (B& b)
{
if (b.f3 != 7)
abort ();
if (b.f4 != 3)
abort ();
}
|
google | android | bitfield5_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/bitfield5_x.C | 131 | utf_8 | 34a963a4f73f5fc81a2a3c61cb1410b4 | #include "bitfield5.h"
extern void bitfield5_y (B&);
void bitfield5_x ()
{
B b;
b.f3 = 7;
b.f4 = 3;
bitfield5_y (b);
}
|
google | android | bitfield7_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/bitfield7_x.C | 162 | utf_8 | b1aea07e8ab4fe136683575de4b33baa | // { dg-options "-w" }
#include "bitfield7.h"
extern void bitfield7_y (U*);
void bitfield7_x ()
{
U u[2];
u[0].i = 7;
u[1].i = 8;
bitfield7_y (u);
}
|
google | android | vbase11_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/vbase11_x.C | 207 | utf_8 | cc9fd160c8ac0d554f08ed78757c1ad7 | #include "vbase11.h"
extern void vbase11_y (derived&);
int base::foo() { return 1; }
int derived::foo() { return 2; }
int derived::bar() { return 3; }
void vbase11_x ()
{
derived d;
vbase11_y (d);
}
|
google | android | empty6_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/empty6_y.C | 107 | utf_8 | 9139a94c7c61f08caac60d3e5373225c | extern "C" void abort (void);
#include "empty6.h"
void empty6_y (B& b)
{
if (b.i != 7)
abort ();
}
|
google | android | vbase11_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/vbase11_y.C | 153 | utf_8 | 3af15235a86640de95ef01c264b9a669 | extern "C" void abort (void);
#include "vbase11.h"
void vbase11_y (derived& d)
{
if (d.foo() != 2)
abort ();
if (d.bar() != 3)
abort ();
}
|
google | android | bitfield7_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C | 173 | utf_8 | 4ede7e52302abff4458b036d89c415f5 | // { dg-options "-w" }
extern "C" void abort (void);
#include "bitfield7.h"
void bitfield7_y (U* u)
{
if (u[0].i != 7)
abort ();
if (u[1].i != 8)
abort ();
}
|
google | android | vbase10_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/break/vbase10_main.C | 301 | utf_8 | 1852532669c2a43c5f27b2cec9330074 | // The offset of virtual base `B' is not ABI-compliant and may change in
// a future version of GCC.
// g++.dg/abi/vbase10.C tests this with -Wabi.
// Split into pieces for binary compatibility testing October 2002
#include "vbase10.h"
extern void vbase10_x (void);
int
main ()
{
vbase10_x ();
}
|
google | android | return-4_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-4_main.C | 206 | utf_8 | 0bc0495f590cb937e82c2b73d6f6f3b3 | /* { dg-require-effective-target dfp } */
/* Test function return values for decimal float classes and scalars. */
extern void return_4_x (void);
int fails;
int
main ()
{
return_4_x ();
return 0;
}
|
google | android | return-1_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-1_x.C | 312 | utf_8 | 4d32570016fb308a772614b1fe7459e9 | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "return_x.h"
void
return_1_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
T(d32)
T(d64)
T(d128)
DEBUG_FINI
if (fails != 0)
abort ();
#undef T
}
|
google | android | pass-1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-1_y.C | 163 | utf_8 | 63c726e2524a407354a4fb9c4f79b448 | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "pass_y.h"
|
google | android | pass-5_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-5_x.C | 399 | utf_8 | fb14cc8dffa715de29c90d882974db6c | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "pass_x.h"
void
pass_5_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
#ifndef SKIP_DECIMAL32
T(d32)
#endif
#ifndef SKIP_DECIMAL64
T(d64)
#endif
#ifndef SKIP_... |
google | android | pass-3_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-3_main.C | 186 | utf_8 | 3c812010be10bd7f4215556c16404ef6 | /* { dg-require-effective-target dfp } */
/* Test passing decimal scalars and classes by value. */
extern void pass_3_x (void);
int fails;
int
main ()
{
pass_3_x ();
return 0;
}
|
google | android | return-2_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-2_x.C | 314 | utf_8 | fa0de4eb00993b7c80536b4527f84f4f | #include "decimal-dummy.h"
#define dec32 std::decimal::decimal32
#define dec64 std::decimal::decimal64
#define dec128 std::decimal::decimal128
#include "return_x.h"
void
return_2_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
T(d32)
T(d64)
T(d128)
DEBUG_FINI
if (fails != 0)
abort ();
#undef T
}
|
google | android | pass-5_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-5_y.C | 168 | utf_8 | 910d3d296a1464ace7bfa54ddbcbc416 | #include "decimal-dummy.h"
typedef std::decimal::decimal32 dec32;
typedef std::decimal::decimal64 dec64;
typedef std::decimal::decimal128 dec128;
#include "pass_y.h"
|
google | android | return-2_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-2_main.C | 188 | utf_8 | 3cfa1b8706e775a56f52e99325f9bec4 | /* { dg-require-effective-target dfp } */
/* Test function return values for decimal classes. */
extern void return_2_x (void);
int fails;
int
main ()
{
return_2_x ();
return 0;
}
|
google | android | pass-6_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-6_y.C | 163 | utf_8 | 63c726e2524a407354a4fb9c4f79b448 | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "pass_y.h"
|
google | android | pass-3_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-3_y.C | 165 | utf_8 | ca1bba6a40295ff3128187890d5a16cd | #include "decimal-dummy.h"
#define dec32 std::decimal::decimal32
#define dec64 std::decimal::decimal64
#define dec128 std::decimal::decimal128
#include "pass_y.h"
|
google | android | return-6_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-6_x.C | 317 | utf_8 | e56e43d0532d60c70a011e42043180b7 | #include "decimal-dummy.h"
typedef std::decimal::decimal32 dec32;
typedef std::decimal::decimal64 dec64;
typedef std::decimal::decimal128 dec128;
#include "return_x.h"
void
return_6_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
T(d32)
T(d64)
T(d128)
DEBUG_FINI
if (fails != 0)
abort ();
#undef T
}
|
google | android | pass-2_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-2_main.C | 174 | utf_8 | 42a5831bc77e9e99fbdab7a59a454b09 | /* { dg-require-effective-target dfp } */
/* Test passing decimal classes by value. */
extern void pass_2_x (void);
int fails;
int
main ()
{
pass_2_x ();
return 0;
}
|
google | android | pass-4_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-4_main.C | 186 | utf_8 | e662279b41f7f1dcfb9fabbcb6f8e5c2 | /* { dg-require-effective-target dfp } */
/* Test passing decimal classes and scalars by value. */
extern void pass_4_x (void);
int fails;
int
main ()
{
pass_4_x ();
return 0;
}
|
google | android | return-5_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-5_main.C | 219 | utf_8 | d840e8f4f4b656028a9b33b5134ccd36 | /* { dg-require-effective-target dfp } */
/* Test function return values for decimal float scalars and typedef'd
classes. */
extern void return_5_x (void);
int fails;
int
main ()
{
return_5_x ();
return 0;
}
|
google | android | return-6_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-6_main.C | 219 | utf_8 | ba6c996afa9cb4dc11db2aa825a51b85 | /* { dg-require-effective-target dfp } */
/* Test function return values for typedef'd decimal float classes
and scalars. */
extern void return_6_x (void);
int fails;
int
main ()
{
return_6_x ();
return 0;
}
|
google | android | pass-5_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-5_main.C | 196 | utf_8 | 75550d7eaadf6ba72e07f069911b6480 | /* { dg-require-effective-target dfp } */
/* Test passing decimal scalars and typedef'd classes by value. */
extern void pass_5_x (void);
int fails;
int
main ()
{
pass_5_x ();
return 0;
}
|
google | android | return-2_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-2_y.C | 167 | utf_8 | 8ee49e566731921ff85662f9cf779e47 | #include "decimal-dummy.h"
#define dec32 std::decimal::decimal32
#define dec64 std::decimal::decimal64
#define dec128 std::decimal::decimal128
#include "return_y.h"
|
google | android | pass-2_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-2_x.C | 401 | utf_8 | 6b9b84489333fbd996ec72496d006e73 | #include "decimal-dummy.h"
#define dec32 std::decimal::decimal32
#define dec64 std::decimal::decimal64
#define dec128 std::decimal::decimal128
#include "pass_x.h"
void
pass_2_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
#ifndef SKIP_DECIMAL32
T(d32)
#endif
#ifndef SKIP_DECIMAL64
T(d64)
#endif
#ifndef SKI... |
google | android | return-5_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-5_x.C | 312 | utf_8 | 3461c975d3da10abb009d6ea307ab5ee | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "return_x.h"
void
return_5_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
T(d32)
T(d64)
T(d128)
DEBUG_FINI
if (fails != 0)
abort ();
#undef T
}
|
google | android | pass-4_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-4_x.C | 401 | utf_8 | fd5ef936b5fb3766306280c5f887ad63 | #include "decimal-dummy.h"
#define dec32 std::decimal::decimal32
#define dec64 std::decimal::decimal64
#define dec128 std::decimal::decimal128
#include "pass_x.h"
void
pass_4_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
#ifndef SKIP_DECIMAL32
T(d32)
#endif
#ifndef SKIP_DECIMAL64
T(d64)
#endif
#ifndef SKI... |
google | android | return-5_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-5_y.C | 170 | utf_8 | 3a3ac52e59a125693fe4345a6a532afb | #include "decimal-dummy.h"
typedef std::decimal::decimal32 dec32;
typedef std::decimal::decimal64 dec64;
typedef std::decimal::decimal128 dec128;
#include "return_y.h"
|
google | android | return-3_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-3_y.C | 167 | utf_8 | 8ee49e566731921ff85662f9cf779e47 | #include "decimal-dummy.h"
#define dec32 std::decimal::decimal32
#define dec64 std::decimal::decimal64
#define dec128 std::decimal::decimal128
#include "return_y.h"
|
google | android | return-1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-1_y.C | 165 | utf_8 | 1c4c3a46340bffbeb7448e3944b56af5 | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "return_y.h"
|
google | android | pass-4_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-4_y.C | 163 | utf_8 | 63c726e2524a407354a4fb9c4f79b448 | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "pass_y.h"
|
google | android | return-1_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-1_main.C | 194 | utf_8 | e449b850f29d772e9eec535431f50451 | /* { dg-require-effective-target dfp } */
/* Test function return values for decimal float scalars. */
extern void return_1_x (void);
int fails;
int
main ()
{
return_1_x ();
return 0;
}
|
google | android | return-4_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-4_y.C | 165 | utf_8 | 1c4c3a46340bffbeb7448e3944b56af5 | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "return_y.h"
|
google | android | return-3_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-3_x.C | 312 | utf_8 | 55c4a4ff2d88bfdba5126f3a4c59985a | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "return_x.h"
void
return_3_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
T(d32)
T(d64)
T(d128)
DEBUG_FINI
if (fails != 0)
abort ();
#undef T
}
|
google | android | pass-3_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-3_x.C | 399 | utf_8 | 75ea4dd02335f0bdf65d7168dc6c967d | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "pass_x.h"
void
pass_3_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
#ifndef SKIP_DECIMAL32
T(d32)
#endif
#ifndef SKIP_DECIMAL64
T(d64)
#endif
#ifndef SKIP_... |
google | android | return-6_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-6_y.C | 165 | utf_8 | 1c4c3a46340bffbeb7448e3944b56af5 | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "return_y.h"
|
google | android | pass-2_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-2_y.C | 165 | utf_8 | ca1bba6a40295ff3128187890d5a16cd | #include "decimal-dummy.h"
#define dec32 std::decimal::decimal32
#define dec64 std::decimal::decimal64
#define dec128 std::decimal::decimal128
#include "pass_y.h"
|
google | android | return-3_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-3_main.C | 206 | utf_8 | 18ffbfc4606da5fc4cd0652135f322d2 | /* { dg-require-effective-target dfp } */
/* Test function return values for decimal float scalars and classes. */
extern void return_3_x (void);
int fails;
int
main ()
{
return_3_x ();
return 0;
}
|
google | android | pass-1_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-1_x.C | 399 | utf_8 | c027c4ef6ec797c90cbc98c05266664e | typedef float dec32 __attribute__((mode(SD)));
typedef float dec64 __attribute__((mode(DD)));
typedef float dec128 __attribute__((mode(TD)));
#include "pass_x.h"
void
pass_1_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
#ifndef SKIP_DECIMAL32
T(d32)
#endif
#ifndef SKIP_DECIMAL64
T(d64)
#endif
#ifndef SKIP_... |
google | android | return-4_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/return-4_x.C | 314 | utf_8 | 07248c6cd9c5d6d13f8cf56db11ab164 | #include "decimal-dummy.h"
#define dec32 std::decimal::decimal32
#define dec64 std::decimal::decimal64
#define dec128 std::decimal::decimal128
#include "return_x.h"
void
return_4_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
T(d32)
T(d64)
T(d128)
DEBUG_FINI
if (fails != 0)
abort ();
#undef T
}
|
google | android | pass-1_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-1_main.C | 174 | utf_8 | 3d52f6f9878705d4ff92b2d02c56e07f | /* { dg-require-effective-target dfp } */
/* Test passing decimal scalars by value. */
extern void pass_1_x (void);
int fails;
int
main ()
{
pass_1_x ();
return 0;
}
|
google | android | pass-6_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-6_main.C | 196 | utf_8 | d272b4a10ff39116ab9bc6638979565b | /* { dg-require-effective-target dfp } */
/* Test passing typedef'd decimal classes and scalars by value. */
extern void pass_6_x (void);
int fails;
int
main ()
{
pass_6_x ();
return 0;
}
|
google | android | pass-6_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/decimal/pass-6_x.C | 404 | utf_8 | 2f42ee81c370812b355666b434a83dbc | #include "decimal-dummy.h"
typedef std::decimal::decimal32 dec32;
typedef std::decimal::decimal64 dec64;
typedef std::decimal::decimal128 dec128;
#include "pass_x.h"
void
pass_6_x (void)
{
DEBUG_INIT
#define T(NAME) testit##NAME ();
#ifndef SKIP_DECIMAL32
T(d32)
#endif
#ifndef SKIP_DECIMAL64
T(d64)
#endif
#ifndef ... |
google | android | elide1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/elide1_y.C | 96 | utf_8 | 054cf171ab989488733015cab2b9ad99 | #include "elide1.h"
int d;
A::A () { }
A::A (const A&) { }
A::~A() { ++d; }
void f (A a) { }
|
google | android | dtor1_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/dtor1_x.C | 51 | utf_8 | 6554a846a7f7558e87bc180748c04036 | #include "dtor1.h"
void
dtor1_x (void)
{
A a;
}
|
google | android | init-ref2_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/init-ref2_y.C | 326 | utf_8 | 75bddd0f3c0ceb101b0c3111cedc4fb4 | extern int f (void);
extern int r;
const int *p;
void g ()
{
static const int &i = f();
// Test that i points to the same place in both calls.
if (p && p != &i)
++r;
// Test that if so, it points to static data.
if (i != 42)
++r;
p = &i;
}
void h ()
{
int arr[] = { 1, 1, 1, 1, 1, 1, 1 };
g ... |
google | android | byval1_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/byval1_main.C | 226 | utf_8 | 729947f933d4e3e48124119eddaa5f75 | // PR c++/3948
// Test that the destructor call for a value parameter gets the
// right address.
// Split into pieces for binary compatibility testing October 2002
extern void byval1_x (void);
int
main ()
{
byval1_x ();
}
|
google | android | elide1_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/elide1_x.C | 173 | utf_8 | 0c6cc9a240e46d422e26e53296c10c13 | #include "elide1.h"
extern "C" void abort (void);
extern void f (A);
extern int d;
void
elide1_x (void)
{
int r;
f (A ()), r = d;
if (r >= d || !d)
abort ();
}
|
google | android | array5_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/array5_main.C | 331 | utf_8 | 0d33d626bee66f558cc5c7e31671ecae | // Split into pieces for binary compatibility testing October 2002
// Incorrect construction and destruction of multi-dimensional
// array of class.
extern void array5_x (void);
int
main ()
{
array5_x ();
} |
google | android | array5_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/array5_y.C | 131 | utf_8 | 62b5c86b17cd8e9d808aa71dfe3c0efc | int count;
int num;
struct A
{
A();
~A();
};
A::A()
{
if (count == num)
throw "";
count++;
}
A::~A()
{
count--;
}
|
google | android | dtor1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/dtor1_y.C | 282 | utf_8 | 16efcd901070a916c5d34bb80900fa76 | #include "dtor1.h"
extern "C" void abort ();
int d = 5;
B::B (int i) : x (i) { }
B::~B () { if (d-- != x) abort (); }
C1::C1 (int i) : B (i) {}
C2::C2 (int i) : B (i) {}
D::D (int i) : B (i) {}
E::E (int i) : B (i) {}
A::A () : D (0), E (1), C1 (2), C2 (3), x1(4), x2(5) {}
|
google | android | init-ref2_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/init-ref2_main.C | 248 | utf_8 | 7099b2ccdbe9faffb91a1279b3d9c958 | // Test for proper handling of local static references.
// Split into pieces for binary compatibility testing October 2002
extern void init_ref2_x (void);
int
main ()
{
init_ref2_x ();
} |
google | android | elide1_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/elide1_main.C | 998 | utf_8 | 1702054ca5684a99c58aaf645c7d59b7 | // Test that the destructor for a temporary passed by value isn't run
// until end of full-expression, as per [class.copy]:
// Whenever a temporary class object is copied using a copy constructor,
// and this object and the copy have the same cv-unqualified type, an
// implementation is permitted to treat the ori... |
google | android | byval1_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/byval1_x.C | 164 | utf_8 | 0bf585e29861fc3fd490b24704312db1 | #include "byval1.h"
extern "C" void abort (void);
extern void Foo (C c);
extern int r;
void
byval1_x ()
{
C c;
if (r != 0)
abort ();
} |
google | android | byval1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/byval1_y.C | 150 | utf_8 | 67544c908df32453d96865d138842ed9 | #include "byval1.h"
void *p[2];
int i;
int r;
C::C() { p[i++] = this; }
C::~C() { if (p[--i] != this) r = 1; }
void Foo (C c)
{
p[i++] = &c;
}
|
google | android | array5_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/array5_x.C | 309 | utf_8 | 438279b51e16057a308284319a9f6cf7 | extern "C" void abort (void);
extern int count;
extern int num;
struct A
{
A();
~A();
};
struct Array
{
A array[2][2][2];
};
void
array5_x ()
{
for (num = 0; num <= 8; ++num)
{
count = 0;
try
{
Array A;
}
catch (...)
{
}
if (count != 0)
abort();
}
}
|
google | android | dtor1_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/dtor1_main.C | 127 | utf_8 | 51b886e9aa09271632255b20399a4dba | // Split into pieces for binary compatibility testing October 2002
extern void dtor1_x (void);
int
main ()
{
dtor1_x ();
}
|
google | android | init-ref2_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/init/init-ref2_x.C | 254 | utf_8 | 6599bf4c55d10d3d74d35fd52dc68f6c | extern "C" void abort (void);
extern void g (void);
extern void h (void);
int r;
int c;
int f ()
{
// Test that we only initialize i once.
if (++c > 1)
++r;
return 42;
}
void
init_ref2_x (void)
{
g ();
h ();
if (r != 0)
abort ();
}
|
google | android | ctor2_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/ctor2_main.C | 273 | utf_8 | 7713c99be0210f9b2e363d5de46782ac | // PR c++/4460
// Test that the cleanup for fully-constructed subobjects when a
// constructor throws gets the right address for a virtual base.
// Split into pieces for binary compatibility testing October 2002
extern void ctor2_x (void);
int main ()
{
ctor2_x ();
}
|
google | android | spec3_main | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/spec3_main.C | 218 | utf_8 | 2a11bf025313b31a8e5c6f3a43e6e1cc | // PR c++/4381
// Test that exception-specs work properly for classes with virtual bases.
// Split into pieces for binary compatibility testing October 2002
extern void spec3_x (void);
int
main ()
{
spec3_x ();
}
|
google | android | dtor1_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/dtor1_x.C | 158 | utf_8 | f1c6d9efd6c764f87b1c7f64adfdc065 | extern "C" void exit (int);
extern "C" void abort (void);
#include "dtor1.h"
int r;
void dtor1_x ()
{
{ B b; }
if (r != 0)
abort ();
exit (0);
}
|
google | android | nrv1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/nrv1_y.C | 64 | utf_8 | ae8c6219513721a4472dc1c7400e69e3 | #include "nrv1.h"
A f()
{
A nrv;
throw 42;
return nrv;
}
|
google | android | ctor2_x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/ctor2_x.C | 211 | utf_8 | dc791f03d52ef00f1ce479d2884f1c7a | extern "C" void exit (int);
extern "C" void abort (void);
#include "ctor2.h"
int r;
void ctor2_x () {
try
{
DerivedStream str;
}
catch (...) { }
if (r != 0)
abort ();
exit (0);
}
|
google | android | unexpected1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/unexpected1_y.C | 176 | utf_8 | 90f47340dedf3ae882911092f359c348 | struct One { };
struct Two { };
void
handle_unexpected ()
{
try
{
throw;
}
catch (One &)
{
throw Two ();
}
}
void
doit () throw (Two)
{
throw One ();
}
|
google | android | filter2_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/filter2_y.C | 315 | utf_8 | 66042eba77dd6fd0a616acfa398dac38 | #include <exception>
#include <cstdlib>
struct e1 {};
struct e2 {};
struct a
{
a () { }
~a ()
{
try
{
throw e1();
}
catch (e2 &)
{
}
}
};
void
ex_test ()
{
a aa;
try
{
throw e1 ();
}
catch (e2 &)
{
}
}
void my_terminate ()
{
std::exit (0);
}
|
google | android | filter1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/filter1_y.C | 143 | utf_8 | 59795c3025478139a06e32e485657745 | #include "filter1.h"
struct e1 {};
struct e2 {};
void
ex_test ()
{
a aa;
try
{
throw e1 ();
}
catch (e2 &)
{
}
}
|
google | android | ctor1_y | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/compat/eh/ctor1_y.C | 132 | utf_8 | 8c5d823170add04b31bf51767cad9e69 | extern bool was_f_in_Bar_destroyed;
#include "ctor1.h"
Foo::~Foo()
{
was_f_in_Bar_destroyed=true;
}
Bar::~Bar()
{
throw 1;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.