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 | bitfield7_x | .C | native_client/pnacl-gcc/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 | chromium | vbase10_y | .C | native_client/pnacl-gcc/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 | chromium | bitfield5_main | .C | native_client/pnacl-gcc/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 | chromium | empty6_main | .C | native_client/pnacl-gcc/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 | chromium | empty6_x | .C | native_client/pnacl-gcc/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 | chromium | pass-1_y | .C | native_client/pnacl-gcc/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 | chromium | pass-3_main | .C | native_client/pnacl-gcc/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 | chromium | return-2_main | .C | native_client/pnacl-gcc/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 | chromium | pass-6_main | .C | native_client/pnacl-gcc/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 | chromium | return-5_x | .C | native_client/pnacl-gcc/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 | chromium | return-1_y | .C | native_client/pnacl-gcc/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 | chromium | return-6_main | .C | native_client/pnacl-gcc/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 | chromium | pass-2_x | .C | native_client/pnacl-gcc/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 | chromium | pass-5_main | .C | native_client/pnacl-gcc/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 | chromium | pass-3_x | .C | native_client/pnacl-gcc/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 | chromium | pass-1_x | .C | native_client/pnacl-gcc/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 | chromium | pass-2_main | .C | native_client/pnacl-gcc/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 | chromium | pass-4_y | .C | native_client/pnacl-gcc/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 | chromium | return-3_y | .C | native_client/pnacl-gcc/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 | chromium | pass-4_x | .C | native_client/pnacl-gcc/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 | chromium | pass-4_main | .C | native_client/pnacl-gcc/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 | chromium | return-4_y | .C | native_client/pnacl-gcc/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 | chromium | return-6_y | .C | native_client/pnacl-gcc/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 | chromium | return-4_main | .C | native_client/pnacl-gcc/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 | chromium | return-4_x | .C | native_client/pnacl-gcc/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 | chromium | pass-6_x | .C | native_client/pnacl-gcc/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 | chromium | return-1_main | .C | native_client/pnacl-gcc/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 | chromium | return-6_x | .C | native_client/pnacl-gcc/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 | chromium | pass-5_x | .C | native_client/pnacl-gcc/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 | chromium | return-1_x | .C | native_client/pnacl-gcc/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 | chromium | return-3_main | .C | native_client/pnacl-gcc/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 | chromium | return-5_main | .C | native_client/pnacl-gcc/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 | chromium | pass-6_y | .C | native_client/pnacl-gcc/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 | chromium | pass-3_y | .C | native_client/pnacl-gcc/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 | chromium | return-3_x | .C | native_client/pnacl-gcc/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 | chromium | pass-2_y | .C | native_client/pnacl-gcc/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 | chromium | return-2_y | .C | native_client/pnacl-gcc/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 | chromium | return-2_x | .C | native_client/pnacl-gcc/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 | chromium | pass-1_main | .C | native_client/pnacl-gcc/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 | chromium | return-5_y | .C | native_client/pnacl-gcc/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 | chromium | pass-5_y | .C | native_client/pnacl-gcc/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 | chromium | elide1_y | .C | native_client/pnacl-gcc/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 | chromium | byval1_main | .C | native_client/pnacl-gcc/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 | chromium | dtor1_y | .C | native_client/pnacl-gcc/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 | chromium | array5_y | .C | native_client/pnacl-gcc/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 | chromium | init-ref2_x | .C | native_client/pnacl-gcc/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 | chromium | dtor1_x | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/compat/init/dtor1_x.C | 51 | utf_8 | 6554a846a7f7558e87bc180748c04036 | #include "dtor1.h"
void
dtor1_x (void)
{
A a;
}
|
google | chromium | elide1_main | .C | native_client/pnacl-gcc/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 | chromium | array5_main | .C | native_client/pnacl-gcc/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 | chromium | byval1_x | .C | native_client/pnacl-gcc/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 | chromium | elide1_x | .C | native_client/pnacl-gcc/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 | chromium | byval1_y | .C | native_client/pnacl-gcc/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 | chromium | array5_x | .C | native_client/pnacl-gcc/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 | chromium | dtor1_main | .C | native_client/pnacl-gcc/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 | chromium | init-ref2_main | .C | native_client/pnacl-gcc/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 | chromium | init-ref2_y | .C | native_client/pnacl-gcc/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 | chromium | vbase8-10_main | .C | native_client/pnacl-gcc/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 | chromium | vbase8-10_x | .C | native_client/pnacl-gcc/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 | chromium | bitfield2_x | .C | native_client/pnacl-gcc/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 | chromium | pr38736_main | .C | native_client/pnacl-gcc/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 | chromium | vbase8-21_x | .C | native_client/pnacl-gcc/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 | chromium | vbase8-4_y | .C | native_client/pnacl-gcc/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 | chromium | bitfield2_y | .C | native_client/pnacl-gcc/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 | chromium | bitfield1_x | .C | native_client/pnacl-gcc/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 | chromium | pr38736_y | .C | native_client/pnacl-gcc/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 | chromium | vbase8-22_y | .C | native_client/pnacl-gcc/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 | chromium | vbase8-10_y | .C | native_client/pnacl-gcc/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 | chromium | vbase8-21_main | .C | native_client/pnacl-gcc/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 | chromium | bitfield1_y | .C | native_client/pnacl-gcc/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 | chromium | pr38736_x | .C | native_client/pnacl-gcc/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 | chromium | bitfield2_main | .C | native_client/pnacl-gcc/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 | chromium | vbase8-22_main | .C | native_client/pnacl-gcc/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 | chromium | vbase8-4_main | .C | native_client/pnacl-gcc/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 | chromium | vbase8-21_y | .C | native_client/pnacl-gcc/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 | chromium | bitfield1_main | .C | native_client/pnacl-gcc/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 | chromium | vbase8-4_x | .C | native_client/pnacl-gcc/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 | chromium | vbase8-22_x | .C | native_client/pnacl-gcc/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 | chromium | implicit6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/implicit6.C | 278 | utf_8 | 2fcf3ab7da1216cee3ed98d2f62ac4a4 | // Circular implicit declarations were causing errors
// { dg-options -std=c++0x }
struct Ray;
struct Vector
{
virtual void f(); // make non-trivially-copyable
Vector(const Ray &) ;
};
struct array
{
Vector v;
};
struct Ray
{
array a;
};
extern Ray r1;
Ray r2=r1;
|
google | chromium | constexpr-eh-spec | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-eh-spec.C | 308 | utf_8 | 9ca2368bc74e6a08fa019d5afbe2cf04 | // { dg-options -std=c++0x }
template<class T> class my_limits {
public:
static constexpr T min() throw() { return T(); }
static constexpr T max() noexcept { return T(); }
};
constexpr double var_min = my_limits<double>::min(); // #1 OK
constexpr double var_max = my_limits<double>::max(); // #2 Error
|
google | chromium | pr31437 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/pr31437.C | 285 | utf_8 | 800f2d1658fd05319304c0b8232db969 | // { dg-options "-std=gnu++0x" }
template <typename... T> struct A // { dg-error "candidates|A" }
{
A(T* p) { // { dg-error "parameter packs|T" }
(A<T...>*)(p);
}
};
A<int> a(0); // { dg-error "no matching" }
// { dg-message "candidate" "candidate note" { target *-*-* } 9 }
|
google | chromium | enum4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/enum4.C | 114 | utf_8 | 45c8b141454b816a46c885127e76b903 | // PR c++/40633
// { dg-options "-std=c++0x" }
template< typename T >
struct wrap {
enum class E { val };
};
|
google | chromium | trailing6 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/trailing6.C | 114 | utf_8 | 0026f90fc95de5c545194c541891674a | // PR c++/49003
// { dg-options -std=c++0x }
struct A {
auto a() const -> decltype(this) { return this; }
};
|
google | chromium | initlist33 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/initlist33.C | 174 | utf_8 | a87478f2af2e83c14d785915da966bc5 | // PR c++/44045
// { dg-options "-std=c++0x" }
struct base
{
virtual ~base() { }
};
int main()
{
base ptr_array[1];
ptr_array = { base() }; // { dg-error "assign" }
}
|
google | chromium | rv-cast2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/rv-cast2.C | 554 | utf_8 | 4b8e486f3ca7747517b1f00f2f0b5832 | // Test for const_cast to reference (5.2.11/4).
// { dg-options -std=c++0x }
template <class T> T&& xval();
template <class T> T& lval();
template <class T> T prval();
struct A { };
int main()
{
const_cast<int&>(lval<int>());
const_cast<int&>(xval<int>()); // { dg-error "" }
const_cast<int&>(prval<int>()); ... |
google | chromium | variadic53 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/variadic53.C | 400 | utf_8 | 33933c645056d89aea1f14ed10ee5c2d | // { dg-options "-std=gnu++0x" }
template<typename F, typename... BoundArgs>
class bound_functor
{
public:
typedef typename F::result_type result_type;
template<typename... Args>
typename F::result_type operator()(Args&... args);
};
template<typename F, typename... BoundArgs>
template<typename... Args>
typenam... |
google | chromium | fntmpdefarg1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/fntmpdefarg1.C | 100 | utf_8 | 8a5d5735f0b812bc9599db4a25b80ac5 | // PR c++/37766
// { dg-options -std=c++0x }
int a = 1;
template<int& b = a> void f() {
f<>();
}
|
google | chromium | decltype26 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/decltype26.C | 218 | utf_8 | aca1daad5a43d61df3f6ec87eabd4791 | // { dg-options -std=c++0x }
struct A { };
template <class T>
decltype(f(T())) f(T t) // { dg-error "depth" }
{
return f(t);
}
int main()
{
f(A()); // { dg-error "no match" }
}
// { dg-prune-output "note" }
|
google | chromium | variadic60 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/variadic60.C | 77 | utf_8 | 16501287cf02f4ac077d8e44805d7730 | template<typename... Args> class tuple; // { dg-error "variadic templates" }
|
google | chromium | initlist4 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/initlist4.C | 647 | utf_8 | 6c21352d0299ee0673793ff60fe5bdb4 | // Test for initializer-list 'explicit' rule
// { dg-options "-std=c++0x" }
struct A
{
explicit A(int,int);
operator bool();
};
A f(A)
{
A{1,2};
A a1{1,2};
new A{1,2};
if (A a5{1,2});
A({1,2}); // { dg-error "explicit" }
A a2({1,2}); // { dg-error "explicit" }
A a3 = {1,2}; // { dg-error "exp... |
google | chromium | initlist26 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/initlist26.C | 140 | utf_8 | 018b40d967564077f852fb1b722428f8 | // PR c++/42059
// { dg-do compile }
// { dg-options "-std=gnu++0x" }
void
foo (int i)
{
int a[i];
a = { }; // { dg-error "assign" }
}
|
google | chromium | variadic47 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/variadic47.C | 321 | utf_8 | 46338075309cffd2392a0c1e0e16a25d | // { dg-options "-std=gnu++0x" }
template<typename T> struct wrap { };
template<typename... Args>
int& f(const Args&...);
template<typename... Args>
float& f(const wrap<Args>&...);
int& g(int x, float y, double z)
{
return f(x, y, z);
}
float& h(wrap<int> x, wrap<float> y, wrap<double> z)
{
return f(x, y, z);
}... |
google | chromium | auto26 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/auto26.C | 199 | utf_8 | fe904211ea141c5a103fa1272c63d123 | // PR c++/43321
// { dg-options -std=c++0x }
template <class T>
void f(T t)
{
auto *p = t;
}
template <class T>
void g(const T& tr)
{
auto p = *tr;
}
int main()
{
int b;
f(&b);
g(&b);
}
|
google | chromium | decltype1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/decltype1.C | 695 | utf_8 | 9a435fe049bf19b01def79f8528e61ec | // { dg-do compile }
// { dg-options "-std=gnu++0x" }
template<typename T, typename U>
struct is_same
{
static const bool value = false;
};
template<typename T>
struct is_same<T, T>
{
static const bool value = true;
};
const int& foo();
int i;
struct A { double x; };
const A* a = new A();
static_assert(is_... |
google | chromium | nullptr22 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/nullptr22.C | 645 | utf_8 | daa3c23b4a575fedaa6fffe989bcfa97 | // { dg-do compile }
// { dg-options "-std=c++0x -Wall -Wformat=2 -Wstrict-null-sentinel" }
// Test various warnings
void f1(const char*, ...) __attribute__((format(printf, 1, 2)));
void f2(const char*) __attribute__((nonnull));
void f3(const char*, ...) __attribute__((sentinel));
void f()
{
f1("%p", nullptr);
f... |
google | chromium | temp_default1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/temp_default1.C | 549 | utf_8 | f687cf952bf9b26e3de9a18a861cbc46 | // { dg-options "-std=c++0x" }
template<typename T, typename U>
struct is_same
{
static const bool value = false;
};
template<typename T>
struct is_same<T, T> {
static const bool value = true;
};
template<typename T = int> void f()
{
static_assert(is_same<T, int>::value,
"T can only be instant... |
google | chromium | pr31431-2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/pr31431-2.C | 277 | utf_8 | 40037098f1e1f9e2eed129ea03b912bc | // { dg-options "-std=gnu++0x" }
template<typename, typename..., typename> void foo(); // { dg-message "note" }
void bar()
{
foo<int>(); // { dg-error "no matching function" }
// { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 6 }
}
|
google | chromium | forw_enum2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/forw_enum2.C | 913 | utf_8 | 82af2e0ed27723df783a05105614b3fb | // { dg-do compile }
// { dg-options "-std=c++0x" }
struct S1
{
struct S2
{
// opaque enum declarations
enum class E1;
enum class E2 : int;
enum class E3 : short;
enum E4 : int;
enum E5 : short;
// can be repeated
enum class E1;
enum clas... |
google | chromium | extern_template-1 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/extern_template-1.C | 105 | utf_8 | df498e0efc0a2951008f5bfc084b5d8f | // { dg-options "-std=c++0x -pedantic" }
template <typename> void f() {}
extern template void f<int>();
|
google | chromium | constexpr-defarg2 | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C | 326 | utf_8 | 9b9828a3ee6e65196686c2b4ce5a9253 | // PR c++/46368
// { dg-options "-std=c++0x" }
class A;
class B
{
A foo ();
A bar ();
};
class C
{
};
struct D
{
};
struct A : D
{
A (const C & n) : D (n) {}
};
A baz (const char *, A = C ());
A
B::foo ()
{
try
{
baz ("foo");
}
catch (...)
{
}
}
A
B::bar ()
{
baz ("bar");
} |
google | chromium | long_long | .C | native_client/pnacl-gcc/gcc/testsuite/g++.dg/cpp0x/long_long.C | 77 | utf_8 | 4a0e724ac30f59cb40f4cf66c5eb935c | // { dg-options "-std=c++0x -pedantic" }
void foo()
{
long long x = 17;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.