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 | block-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/block-1.C | 605 | utf_8 | 2d8cf645d79eeb995c487966e938502d | // { dg-do compile }
void foo()
{
bad1: // { dg-error "jump to label" }
#pragma omp parallel
goto bad1; // { dg-error "from here|exits OpenMP" }
goto bad2; // { dg-error "from here" }
#pragma omp parallel
{
bad2: ; // { dg-error "jump to label|enters OpenMP" }
}
#pragma omp paral... |
google | android | for-11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/for-11.C | 224 | utf_8 | 7b60b57825223f2168d68cd5239c7972 | // { dg-do compile }
extern void baz (int);
void foo (int j, int k)
{
#pragma omp for
for (int l = j; l < k; l++)
baz (l);
#pragma omp for
for (int i = 0, m = 0; m < 10; m++) // { dg-error "" }
baz (m);
}
|
google | android | for-15 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/for-15.C | 542 | utf_8 | 7a27fa5ba7a8c085e5f8cecb6a1eb43f | // PR c++/24512
// { dg-do compile }
template<typename T> void foo ()
{
#pragma omp for
for (int i = 0; i < 10; i++);
#pragma omp for
for (int i = 0; i < 10; i++);
#pragma omp for
for (T j = 0; j < 10; j++);
#pragma omp for
for (T j = 0; j < 10; j++);
#pragma omp parallel for
for (int k = 0; k < 10; k++)... |
google | android | udr-6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/udr-6.C | 1,876 | utf_8 | 432e931e22639a849a7183275e9c7582 | // { dg-do compile }
struct A { int a; A () : a (0) {} };
struct B { int b; B () : b (0) {} };
struct C : public A, B { int c; C () : c (0) {} };
struct D { int d; D () : d (0) {} };
struct E { int e; E () : e (0) {} };
struct F : public D, E { int f; F () : f (0) {} };
struct G : public C, F { int g; G () : g (0) {} ... |
google | android | tls-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/tls-1.C | 359 | utf_8 | e413a547924c043723b9ade8080ee072 | // { dg-do compile }
// { dg-require-effective-target tls }
int tp1;
static int tp2;
extern int tp3;
int tp4 = 1;
static int tp5 = 1;
#pragma omp threadprivate (tp1, tp2, tp3, tp4, tp5)
#pragma omp threadprivate (undef) // { dg-error "declared" }
int tp6;
int foo(void) { return tp6; }
#pragma omp threadprivate (t... |
google | android | for-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/for-2.C | 347 | utf_8 | 124228411a0289faecf6d140e979971c | /* { dg-do compile } */
void foo()
{
int i;
#pragma omp for nowait
for (i = 0; i < 10; ++i) ;
#pragma omp for nowait nowait /* { dg-error "too many" } */
for (i = 0; i < 10; ++i) ;
#pragma omp for ordered
for (i = 0; i < 10; ++i) ;
#pragma omp for ordered ordered /* { dg-error "too many" } */
fo... |
google | android | pr29965-9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/pr29965-9.C | 458 | utf_8 | e95b486012b6b3bf86bc7fbb9abc0634 | // PR middle-end/29965
// Test that OpenMP construct bodies which never return don't cause ICEs.
// This is invalid code, but we don't emit diagnostics for it, nevertheless
// we test that we don't ICE on it.
// { dg-do compile }
// { dg-options "-O2 -fopenmp" }
void
foo1 ()
{
#pragma omp single
throw 0;
}
void
foo... |
google | android | tls-wrapper-cse | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/tls-wrapper-cse.C | 465 | utf_8 | eec42e78d72ac0bdcf1d2801224c4f42 | // Test for CSE of the wrapper function: we should only call it once
// for the two references to ir.
// { dg-options "-fopenmp -O -fno-inline" }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler-times "call *_ZTW2ir" 1 { xfail *-*-* } } }
// XFAILed until the back end supports a way to mark a func... |
google | android | pr27337-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/pr27337-1.C | 220 | utf_8 | 094e81232341a12a69aabab2b7f9c0bf | // PR middle-end/27337
// { dg-do compile }
struct S
{
S ();
~S ();
double &operator* () const;
};
S
foo ()
{
int i;
S ret;
#pragma omp parallel for
for (i = 0; i < 2; i++)
*ret += i;
return ret;
}
|
google | android | for-20 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/for-20.C | 216 | utf_8 | 206a717a3136f8c1885ed7bf8f9de921 | // PR c++/60146
// { dg-do compile }
// { dg-options -fopenmp }
int foo() { return 0; }
template<typename T> void bar()
{
#pragma omp parallel for
for (T i = foo(); i < 8; ++i) {}
}
void baz()
{
bar<int>();
}
|
google | android | pr29965-10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/pr29965-10.C | 478 | utf_8 | 5711a0429a614d267b03f59eb88887fe | // PR middle-end/29965
// Test that OpenMP construct bodies which never return don't cause ICEs.
// This is invalid code, but we don't emit diagnostics for it, nevertheless
// we test that we don't ICE on it.
// { dg-do compile }
// { dg-options "-O2 -fopenmp" }
void
foo1 ()
{
int i;
#pragma omp for schedule (static... |
google | android | udr-4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/gomp/udr-4.C | 401 | utf_8 | bba104b126e09b580bef90ec5ca0a65f | // { dg-do compile }
struct S; // { dg-error "forward declaration" }
#pragma omp declare reduction (+:S:omp_out.s += omp_in.s) // { dg-error "invalid use of incomplete type" }
struct S { int s; S () : s (1) {} };
#pragma omp declare reduction (*:S:omp_out.s *= omp_in.s)
void
foo ()
{
S s;
#pragma omp parallel... |
google | android | 44473-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/44473-2.C | 466 | utf_8 | f7911d011adf83fd1a3094b207cc374e | // { dg-do compile }
// Mangling of classes from std::decimal are special-cased.
namespace std {
namespace decimal {
class decimal64 {
public:
typedef float __decfloat64 __attribute__ ((mode (DD)));
explicit decimal64 (int __r):__val (__r) {}
private:
__decfloat64 __val;
};
}
}
int bar (co... |
google | android | 44473-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/44473-1.C | 2,905 | utf_8 | 8fa7fae0969ea145d6ebdf95f4553797 | /* { dg-do assemble } */
/* Minimized from the testcase in PR c++/44473; mangling of decimal types
did not include CV qualifiers. */
namespace std
{
namespace decimal
{
class decimal32
{
public:
typedef float __decfloat32 __attribute__ ((mode (SD)));
explicit decimal32 (float __r):__val... |
google | android | mangle-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/mangle-2.C | 618 | utf_8 | c0592e7184d9390b10cd93d3b6f1f7a0 | // { dg-do compile }
// Mangling of classes from std::decimal are special-cased.
// Derived from g++.dg/abi/mangle15.C.
namespace std {
namespace decimal {
class decimal64 {
public:
typedef float __decfloat64 __attribute__ ((mode (DD)));
explicit decimal64 (float __r):__val (__r) {}
private:
__de... |
google | android | mangle-4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/mangle-4.C | 684 | utf_8 | becc0e6f064af285a504ff10eaffc525 | // { dg-do compile }
// Mangling of classes from std::decimal are special-cased.
// Derived from g++.dg/abi/mangle30.C.
namespace std {
namespace decimal {
class decimal64 {
public:
typedef float __decfloat64 __attribute__ ((mode (DD)));
explicit decimal64 (int __r):__val (__r) {}
private:
__decf... |
google | android | mangle-3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/mangle-3.C | 810 | utf_8 | 97de1869469f8592b096b761b6a2cceb | // { dg-do compile }
// Mangling of classes from std::decimal are special-cased.
// Derived from g++.dg/abi/mangle20-1.C.
namespace std {
namespace decimal {
class decimal64 {
public:
typedef float __decfloat64 __attribute__ ((mode (DD)));
explicit decimal64 (int __r):__val (__r) {}
private:
__de... |
google | android | mangle-5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/mangle-5.C | 573 | utf_8 | 5899dbb591a164000821a0ac993fcd47 | // { dg-do compile }
// Mangling of classes from std::decimal are special-cased.
// Derived from g++.dg/abi/mangle35.C.
namespace std {
namespace decimal {
class decimal128 {
public:
typedef float __decfloat128 __attribute__ ((mode (TD)));
explicit decimal128 (int __r):__val (__r) {}
private:
__d... |
google | android | mangle-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/mangle-1.C | 1,234 | utf_8 | 5f86222754bb4d7342a35eb92499419a | // { dg-do compile }
// Mangling of classes from std::decimal are special-cased.
// Derived from g++.dg/abi/mangle13.C.
namespace std {
namespace decimal {
class decimal64 {
public:
typedef float __decfloat64 __attribute__ ((mode (DD)));
explicit decimal64 (float __r):__val (__r) {}
private:
__de... |
google | android | mangle-mode | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/mangle-mode.C | 854 | utf_8 | 8b4d16a77a1edab85ee4c99fda03eb79 | // { dg-do compile }
// Check that the compiler mangles types defined with decimal float
// modes according to the vendor-neutral C++ ABI.
typedef float _Decimal32 __attribute__((mode(SD)));
typedef float _Decimal64 __attribute__((mode(DD)));
typedef float _Decimal128 __attribute__((mode(TD)));
extern void foo32 (_D... |
google | android | base | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/base.C | 474 | utf_8 | 694614d4f71e398dcda11523059a774e | // PR c++/50207
// { dg-do compile }
namespace std
{
namespace decimal
{
template <class _Fmt> struct _FmtTraits;
class decimal32;
template <> struct _FmtTraits <decimal32>
{
static const long _NumBytes = 4UL;
};
template <class _Tr> class _DecBase
{
unsigned char _Bytes[_Tr... |
google | android | nofields | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/nofields.C | 396 | utf_8 | 3a865b01c504023d0b90b1f055163c6a | // PR c++/46862
// { dg-do compile }
namespace std
{
namespace decimal
{
class decimal32 { }; // { dg-error "does not have any fields" }
class decimal64 { }; // { dg-error "does not have any fields" }
class decimal128 { }; // { dg-error "does not have any fields" }
}
}
void
foo (std::decimal::decima... |
google | android | typeid1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/dfp/typeid1.C | 112 | utf_8 | cd0133a632a541db051ef84d53754ac6 | // PR c++/39131
// { dg-do link }
#include <typeinfo>
const std::type_info &r = typeid(0.dd);
int main() { }
|
google | android | thread_local2g | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local2g.C | 291 | utf_8 | 6c980c168dd76bd2823f2ec310b5f47b | // { dg-do run { target c++11 } }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
extern "C" void abort();
struct A
{
A();
int i;
};
thread_local A a;
A &f()
{
return a;
}
int j;
A::A(): i(j) { }
int main()
{
j = 42;
if (f().i != 42)
abort ();
}
|
google | android | diag-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/diag-1.C | 441 | utf_8 | ee5c01dd5d6ee9acf4d49c9a5a3191d0 | // Valid __thread specifiers.
// { dg-require-effective-target tls }
__thread int g1;
extern __thread int g2;
static __thread int g3;
void foo()
{
extern __thread int l1;
static __thread int l2;
}
struct A {
static __thread int i;
};
__thread int A::i = 42;
template <typename T> struct B {
static __thread ... |
google | android | thread_local-order1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-order1.C | 490 | utf_8 | 205f16ac56fe213b501ed73b2325eb31 | // { dg-do run { target c++11 } }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
// { dg-require-cxa-atexit "" }
extern "C" void abort();
extern "C" int printf (const char *, ...);
#define printf(...)
int c;
struct A {
int i;
A(int i): i(i) { printf ("A(%d)\n", i); if (i != c++) abort ()... |
google | android | thread_local4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local4.C | 832 | utf_8 | f07d12eede7f7a2e48dc44b086156852 | // Test for cleanups with pthread_cancel.
// { dg-do run }
// { dg-require-effective-target c++11 }
// { dg-require-effective-target tls_runtime }
// { dg-require-effective-target pthread }
// { dg-require-effective-target non_bionic }
// { dg-options -pthread }
// { dg-add-options tls }
#include <pthread.h>
#include... |
google | android | init-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/init-2.C | 328 | utf_8 | ec6c7e65d57e2a70cb1a6852131a0f16 | /* Invalid initializations. */
/* { dg-require-effective-target tls } */
extern __thread int i;
__thread int *p = &i; /* { dg-error "dynamic initialization" } */
extern int f();
__thread int j = f(); /* { dg-error "dynamic initialization" } */
struct S
{
S();
};
__thread S s; /* { dg-error "dynamic initializatio... |
google | android | thread_local4g | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local4g.C | 846 | utf_8 | 46dee5a77d5103450aabe9dc96d522f8 | // Test for cleanups with pthread_cancel.
// { dg-do run }
// { dg-require-effective-target c++11 }
// { dg-require-effective-target tls_runtime }
// { dg-require-effective-target pthread }
// { dg-require-effective-target non_bionic }
// { dg-require-cxa-atexit "" }
// { dg-options -pthread }
// { dg-add-options tls ... |
google | android | thread_local6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local6.C | 531 | utf_8 | e04f248f679ce6d55e8262d58b1f76ff | // Test for cleanups in the main thread without -pthread.
// { dg-do run { target c++11 } }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
extern "C" void _exit (int);
int c;
struct A
{
A() { ++c; }
~A() { if (c == 1) _exit(0); }
};
void f()
{
thread_local A a;
}
void *thread_main(v... |
google | android | static2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/static2.C | 257 | utf_8 | 40f776e4d949ac2761cee0de2064d991 | // { dg-final { scan-assembler-not "_ZTHN1A1iE" } }
// { dg-final { scan-assembler-not "_ZTWN1A1iE" } }
// { dg-require-effective-target tls }
struct A
{
static __thread int i;
};
int
test ()
{
if (A::i != 8)
return 1;
A::i = 17;
return 0;
}
|
google | android | thread_local1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local1.C | 464 | utf_8 | 1982556ca5b4d40498b27141da4868ec | // { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// The variable should have a guard.
// { dg-final { scan-assembler "_ZGVZ1fvE1a" } }
// But since it's thread local we don't need to guard against
// simultaneous execution.
// { dg-final { scan-assembler-not "cxa_guard" } }
// The guard sho... |
google | android | thread_local10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local10.C | 361 | utf_8 | 8c04798ad83e68ad71e341845cf0aeea | // PR c++/58624
// { dg-do run { target c++11 } }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
int i;
template <typename> struct A
{
static thread_local int s;
A () { i = s; }
};
int f() { return 42; }
template <typename T> thread_local int A<T>::s = f();
int main () {
A<void> a;... |
google | android | diag-3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/diag-3.C | 386 | utf_8 | f4bf79515fd3464e428da5958531f5d6 | // Report invalid extern and __thread combinations.
// { dg-require-effective-target tls }
extern int j; // { dg-message "previously declared here" }
__thread int j; // { dg-error "follows non-thread-local" }
extern __thread int i; // { dg-message "previously declared here" }
int i; // { dg-error "follows thread-... |
google | android | thread_local3g | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local3g.C | 611 | utf_8 | 7e74fc18fc8da8aa330e0aad0afdff42 | // { dg-do run }
// { dg-require-effective-target c++11 }
// { dg-require-effective-target tls_runtime }
// { dg-require-effective-target pthread }
// { dg-require-cxa-atexit "" }
// { dg-options -pthread }
// { dg-add-options tls }
int c;
int d;
struct A
{
A() { ++c; }
~A() { ++d; }
};
thread_local A a;
void *t... |
google | android | thread_local6g | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local6g.C | 545 | utf_8 | bfa076f6c872b1975947b8413d453899 | // Test for cleanups in the main thread without -pthread.
// { dg-do run { target c++11 } }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
// { dg-require-cxa-atexit "" }
extern "C" void _exit (int);
int c;
struct A
{
A() { ++c; }
~A() { if (c == 1) _exit(0); }
};
thread_local A a;
vo... |
google | android | thread_local-wrap3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-wrap3.C | 350 | utf_8 | e4cfba8fd55d0168821bd21efa0237d8 | // If we can't see the definition at all, we need to assume there might be
// an init function.
// { dg-do compile { target c++11 } }
// { dg-require-alias "" }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler "_ZTW1i" } }
// { dg-final { scan-assembler "_ZTH1i" } }
extern thread_local int i;
in... |
google | android | thread_local7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local7.C | 247 | utf_8 | 276b21ff0a55339a3b1af911f5514ec8 | // { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// The reference temp should be TLS, not normal data.
// { dg-final { scan-assembler-not "\\.data" { target tls_native } } }
void f()
{
thread_local int&& ir = 42;
}
|
google | android | thread_local7g | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local7g.C | 257 | utf_8 | 5cc77d589814bde9b85c3b12c619eb3c | // { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// The reference temp should be TLS, not normal data.
// { dg-final { scan-assembler-not "\\.data" { target tls_native } } }
thread_local int&& ir = 42;
void f()
{
ir = 24;
}
|
google | android | thread_local5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local5.C | 862 | utf_8 | ec3ad9e0fd0d4f963c214bd673cc7099 | // Test for cleanups in the main thread, too.
// { dg-do run }
// { dg-require-effective-target c++11 }
// { dg-require-effective-target tls_runtime }
// { dg-require-effective-target pthread }
// { dg-options -pthread }
// { dg-add-options tls }
#include <pthread.h>
#include <unistd.h>
int c;
int d;
struct A
{
A(... |
google | android | thread_local-ice2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice2.C | 167 | utf_8 | 10e30da85bd8e8972c6a85fbb75f82f1 | // PR c++/58672
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
struct A
{
A(int);
i; // { dg-error "" }
};
thread_local A a(0);
|
google | android | diag-5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/diag-5.C | 194 | utf_8 | 11481d47864021d1e3af511c6b632c29 | // PR c++/30536
// Invalid __thread specifiers.
// { dg-require-effective-target tls }
struct A { __thread register int i; }; // { dg-error "multiple storage classes|storage class specified" }
|
google | android | static-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/static-1.C | 393 | utf_8 | a9720fe58f11ddd0e2a21ab5df5a77bf | // { dg-do run }
// { dg-options "-O2" }
// { dg-require-effective-target tls_runtime }
// { dg-add-options tls }
// { dg-additional-sources "static-1a.cc" }
extern "C" void abort ();
extern int test ();
struct A
{
static __thread int i;
};
__thread int A::i = 8;
int
main ()
{
if (A::i != 8)
abort ();
if... |
google | android | thread_local-wrap4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-wrap4.C | 391 | utf_8 | 99dccd364a36e6a92aff0c835b1005ec | // We don't need to call the wrapper through the PLT; we can use a separate
// copy per shared object.
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// { dg-require-effective-target fpic }
// { dg-options "-fPIC" }
extern thread_local int i;
int main()
{
return i - 42;
} |
google | android | trivial | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/trivial.C | 56 | utf_8 | 7212556766805451a098e554a8ab648e | // { dg-require-effective-target tls }
__thread int i;
|
google | android | diag-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/diag-2.C | 1,140 | utf_8 | fbac13a61bb9f428b5afdc21c3115c55 | /* Invalid __thread specifiers. */
/* { dg-require-effective-target tls } */
__thread extern int g1; /* { dg-error "'__thread' before 'extern'" } */
__thread static int g2; /* { dg-error "'__thread' before 'static'" } */
__thread __thread int g3; /* { dg-error "duplicate '__thread'" } */
typedef __thread int g4; /*... |
google | android | thread_local-order2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-order2.C | 644 | utf_8 | 90afde67d4462528843ba6579eac77a2 | // The standard says that a1 should be destroyed before a0 even though
// that isn't reverse order of construction. We need to move
// __cxa_thread_atexit into glibc to get this right.
// { dg-do run { xfail *-*-* } }
// { dg-require-effective-target c++11 }
// { dg-add-options tls }
// { dg-require-effective-target ... |
google | android | thread_local5g | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local5g.C | 876 | utf_8 | f0bbfb06532e9af552924fe9bed687de | // Test for cleanups in the main thread, too.
// { dg-do run }
// { dg-require-effective-target c++11 }
// { dg-require-effective-target tls_runtime }
// { dg-require-effective-target pthread }
// { dg-require-cxa-atexit "" }
// { dg-options -pthread }
// { dg-add-options tls }
#include <pthread.h>
#include <unistd.h... |
google | android | thread_local-wrap2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-wrap2.C | 405 | utf_8 | 6a3d154a71ce5d0a28e8ab06d3b4f097 | // If we can't see the definition at the use site, but it's in this translation
// unit, we build a wrapper but don't bother with an init function.
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler "_ZTW1i" } }
// { dg-final { scan-assembler-not "_ZTH1i" } }
e... |
google | android | thread_local3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local3.C | 597 | utf_8 | 8961fdb81f19276885d5cbcb01b4aa9f | // { dg-do run }
// { dg-require-effective-target c++11 }
// { dg-require-effective-target tls_runtime }
// { dg-require-effective-target pthread }
// { dg-options -pthread }
// { dg-add-options tls }
int c;
int d;
struct A
{
A() { ++c; }
~A() { ++d; }
};
void f()
{
thread_local A a;
}
void *thread_main(void *... |
google | android | diag-4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/diag-4.C | 322 | utf_8 | 2505cc5d1f500049a4235bb867819fe7 | /* Invalid __thread specifiers. */
/* { dg-require-effective-target tls } */
__thread typedef int g4; /* { dg-error "multiple storage classes" } */
void foo()
{
__thread auto int l2; /* { dg-error "multiple storage classes|data types" } */
__thread register int l4; /* { dg-error "multiple storage classes" } */
... |
google | android | thread_local-ice | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-ice.C | 160 | utf_8 | 21561a347183afd27d1fff5a95f7f901 | // PR c++/55801
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
class C;
thread_local C O, O2 = O; // { dg-error "incomplete" }
|
google | android | init-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/init-1.C | 356 | utf_8 | e425d7fc584cf8535f3eee565f58f091 | /* Valid initializations. */
/* { dg-require-effective-target tls } */
__thread int i = 42;
static int j;
__thread int *p = &j;
/* Note that this is valid in C++ (unlike C) as a run-time initialization. */
int *q = &i;
/* Valid because "const int k" is an integral constant expression in C++. */
__thread const in... |
google | android | thread_local-wrap1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-wrap1.C | 277 | utf_8 | ca282be2e7af69bac998143a70c8e05c | // If we can see the definition at the use site, we don't need to bother
// with a wrapper.
// { dg-do compile { target c++11 } }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler-not "_ZTW1i" } }
thread_local int i = 42;
int main()
{
return i - 42;
}
|
google | android | thread_local2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local2.C | 292 | utf_8 | 24b7dce2c6b463d883c54b5a853ce0ad | // { dg-do run { target c++11 } }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
extern "C" void abort();
struct A
{
A();
int i;
};
A &f()
{
thread_local A a;
return a;
}
int j;
A::A(): i(j) { }
int main()
{
j = 42;
if (f().i != 42)
abort ();
}
|
google | android | thread_local9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local9.C | 340 | utf_8 | 46eb3382c1226c7ec68020221453058a | // PR c++/61343
// { dg-do run { target c++11 } }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
struct Foo {
int value;
Foo() noexcept {
value = 12;
}
};
static thread_local Foo a{};
static __attribute__((noinline)) void UseA() {
if (a.value != 12) __builtin_abort();
}
int m... |
google | android | thread_local-cse | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local-cse.C | 554 | utf_8 | 3d80e7f2f51cc0254362538c214c72e3 | // Test for CSE of the wrapper function: we should only call it once
// for the two references to ir.
// { dg-do run { target c++11 } }
// { dg-options "-O -fno-inline -save-temps" }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
// { dg-final { scan-assembler-times "call *_ZTW2ir" 1 { xfail *... |
google | android | thread_local8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/tls/thread_local8.C | 256 | utf_8 | 9399e18da7889fb7fc5333e641e339e4 | // PR c++/55800
// { dg-do compile { target c++11 } }
// { dg-require-alias "" }
// { dg-require-effective-target tls }
// { dg-final { scan-assembler "_ZTH12foo_instance" { target tls_native } } }
struct foo
{
foo();
};
thread_local foo foo_instance;
|
google | android | id-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/graphite/id-1.C | 1,045 | utf_8 | de81689ffe7845348fd7504b61336c82 | #include <vector>
template <int rank, int dim> class Tensor;
template <int dim>
class Tensor<1,dim>
{
public:
explicit Tensor (const bool initialize = true);
Tensor (const Tensor<1,dim> &);
double values[(dim!=0) ? (dim) : 1];
};
template <int dim>
Tensor<1,dim>::Tensor (const Tensor<1,dim> &p)
{
for (... |
google | android | pr41562 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/graphite/pr41562.C | 582 | utf_8 | e5bf55fca0fdd72d0227e8f96a248045 | /* { dg-do compile } */
/* { dg-options "-O -ftree-loop-distribution -floop-block" } */
typedef struct stSirenEncoder { } *SirenEncoder;
int Siren7_EncodeFrame(SirenEncoder encoder, unsigned char *DataIn, unsigned char *DataOut) {
int number_of_regions;
static int absolute_region_power_index[28] = {0};
stati... |
google | android | pr43026 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/graphite/pr43026.C | 1,172 | utf_8 | 4cf735ba9e5b65e201dbbd4ec916b359 | /* { dg-do compile } */
/* { dg-options "-O2 -fgraphite-identity" } */
template<typename Tp > class vector { };
template <int rank, int dim> class Tensor;
template <int dim> class Tensor<1,dim> {
public:
Tensor (const Tensor<1,dim> &);
private:
double values[(dim != 0) ? (dim) : 1];
};
template <int dim>
#ifdef... |
google | android | pr42930 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/graphite/pr42930.C | 1,264 | utf_8 | 0d9af772788367ff2013140aaacad333 | /* { dg-options "-O1 -floop-block" } */
typedef unsigned char byte;
typedef unsigned int uint;
typedef unsigned char uint8;
namespace Common {
class NonCopyable {
};
template<class In, class Out>
Out copy(In first, In last, Out dst) {
while (first != last)
*dst++ = *first++;
}
template<class T>
class Array {
uint ... |
google | android | pr42130 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/graphite/pr42130.C | 302 | utf_8 | dcecc8a81073a9824c153ff083f81a4a | /* { dg-options "-O2 -fgraphite-identity -fno-tree-ch" } */
#include <vector>
using std::vector;
vector<unsigned> & __attribute__((noinline, noclone)) foo(unsigned n)
{
vector<unsigned> *vv = new vector<unsigned>(n, 0u);
return *vv;
}
int main()
{
foo(0);
return 0;
}
/* { dg-do run } */
|
google | android | pr39447 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/graphite/pr39447.C | 930 | utf_8 | 5c6a1178f4fd620e8792644c534c29f8 | /* { dg-options "-O2 -fgraphite-identity" } */
struct Point
{
int line, col;
Point( int l = -1, int c = 0 ) throw() : line( l ), col( c ) {}
bool operator==( const Point & p ) const throw()
{ return ( line == p.line && col == p.col ); }
bool operator<( const Point & p ) const throw()
{ return ( line < p.l... |
google | android | pr41305 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/graphite/pr41305.C | 8,492 | utf_8 | 8b5bc8519c7a0bd3c7d9c018b0e608ea | // { dg-do compile }
// { dg-options "-O3 -floop-interchange -Wno-conversion-null" }
void __throw_bad_alloc ();
template <typename _Tp> void
swap (_Tp & __a, _Tp __b)
{
__a = __b;
}
template <typename _Category> struct iterator
{
typedef _Category iterator_category;
};
template <typename _Tp> struct allocator
{... |
google | android | pr42681 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/graphite/pr42681.C | 342 | utf_8 | 012194f3f4441fc0dc8fb4ba94a8882b | /* { dg-options "-O1 -fgraphite-identity -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine" } */
typedef __SIZE_TYPE__ size_t;
inline void* operator new(size_t, void* __p) throw() { return __p; }
struct A {
int i, j;
A() : i(0) {}
};
void Init(A *a)
{
for (int i = 0; i < 20; i++) {
new (&a[i]) A;
... |
google | android | using1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/using1.C | 83 | utf_8 | 85ece6c01345af5b8d407b8e19d781f9 | void f();
namespace N {
using ::f;
}
bool b;
void g() {
b = N::f == ::f;
}
|
google | android | ref-conv2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/ref-conv2.C | 164 | utf_8 | 88f1a13d8980d16d9fde1b3b2a39821b | // PR c++/50523
template <class T>
struct A
{
A(const T&);
operator T&() const;
operator const T&() const;
};
int main()
{
A<int> a(1);
A<int> a2(a);
}
|
google | android | ambig2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/ambig2.C | 562 | utf_8 | ea3127f4b42d821f844905a93809eb92 | // Bug: g++ thought that the QChar overload was a viable but ambiguous
// candidate. It isn't viable, because there's no conversion from const
// char * to QChar.
class QChar {
public:
QChar( char c );
QChar( unsigned char c );
};
class QString
{
public:
QString( const char *str ); // dee... |
google | android | template5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/template5.C | 513 | utf_8 | d27489435ea49d237a1e1a1619e9661b | // { dg-do compile }
template<typename T>
int low(T a, T b, T c) { return a + b + c; } // { dg-message "template" }
template<typename T>
int high(T a, T b, T c) { return a + b + c; } // { dg-message "template" }
int test (void)
{
low (5, 6); // { dg-error "no matching function" }
// { dg-message "(candidate|3 ... |
google | android | rvalue2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/rvalue2.C | 227 | utf_8 | 2519d84164494a2d9dbd7eecc54ff623 | // PR c++/49812
// The call should choose the second f because i++ is an int rvalue.
template <class T> void f(const volatile T& t) { t.i; }
template <class T> void f(const T&);
int main()
{
volatile int i = 0;
f(i++);
}
|
google | android | defarg4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/defarg4.C | 375 | utf_8 | fe0dbe1f81b80b364b6cd8c9b5d5967e | // Origin PR c++/39987
// { dg-do compile }
class foo
{
template<typename U>
static bool func(const U& x)
{}
public:
template<typename U>
unsigned int Find(const U& x, bool (*pFunc) (const U&) = func) const
{}
};
class bar {
bool Initialize();
protected:
foo b;
};
bool bar::Initialize()
{
b.Find(b);
} |
google | android | member2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/member2.C | 608 | utf_8 | e5c64067fac4b9dcfc16ca552eabfc2c | // { dg-do run }
// PR 7676. We didn't notice template members were different.
struct foo
{
template<class T>
int bar() {return 1;}
template<int I>
int bar() {return 2;}
};
struct baz : foo
{
using foo::bar;
template<int I>
int bar () {return 3;}
};
int main ()
{
baz b;
foo f;
if (f.bar<1> (... |
google | android | defarg6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/defarg6.C | 116 | utf_8 | 0ed49131967a0758247fa8e7cdb7f814 | class A
{
int i;
A(int i): i(i) {} // { dg-error "private" }
};
void f (A = 1) { } // { dg-error "context" }
|
google | android | builtin2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/builtin2.C | 128 | utf_8 | 3a79826fd499e94593a88f2c06436f3d | namespace __gnu_cxx {
void llabs(long long x);
}
namespace std {
using __gnu_cxx::llabs;
using __gnu_cxx::llabs;
}
|
google | android | error3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/error3.C | 1,095 | utf_8 | 43125e7142193f05f89e39acd6ccf335 | // PR c++/42701
// Test for error-recovery on code that is ill-formed by DR 147.
namespace Glib {
class ustring {
public:
typedef unsigned size_type;
ustring(const char* src, size_type n);
ustring(const char* src);
};
}
namespace Gdk {
class Color {
public:
explicit ... |
google | android | ellipsis1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/ellipsis1.C | 304 | utf_8 | c2637510918df429c7fea49fbd959112 | // PR c++/15142
// Bug: We were aborting after giving a warning about passing a non-POD.
struct B {
B() throw() { }
B(const B&) throw() { }
};
struct X {
B a;
X& operator=(const X&);
};
struct S { S(...); };
void SillyFunc() {
throw S(X()); // { dg-error "copy" }
}
|
google | android | operator-star-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/operator-star-1.C | 470 | utf_8 | 0b2f9fcba5861b39ff227c1cbfa754b7 | // { dg-do compile }
template <class T>
struct S;
template <class T>
void operator* (S<T>, S<T>);
template <class T>
struct S
{
friend void operator*<> (S, S); // { } // okay
void operator* (T) { }
};
template <class T>
void operator* (S<T>, S<T>) { }
int main()
{
S<int> s1, s2;
s1 * s2;... |
google | android | ref1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/ref1.C | 369 | utf_8 | 02856d8d11be85bdeb888d95d224df01 | // Bug 14397: Bogus access error.
struct S {
S (int);
S(S const&);
private:
S(S&);
};
S foo()
{
int result = 0;
S s ((0,S (result)));
return S (result);
} |
google | android | copy1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/copy1.C | 323 | utf_8 | 4a5f6626c507c0ad7805e34f3032e376 | // PR c++/34824
struct A;
struct B
{
B (A const &); // { dg-message "note" }
B (B &); // { dg-message "note" }
};
struct A
{
A (B); // { dg-error "initializing" }
};
B
f (B const& b)
{
return b; // { dg-error "matching" "matching" }
// { dg-message "candidate" "candidate note" { target *-*-* } 19 }... |
google | android | virtual2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/virtual2.C | 346 | utf_8 | f95f2ce9408aae34f003cb20506e3a38 | // PR c++/52746
// { dg-do run }
extern "C" int printf(const char*,...);
extern "C" void abort();
bool db;
struct A
{
virtual ~A() {}
};
struct B : public A
{
virtual ~B() { db = true; }
};
template<int> void test()
{
B * b = new B;
A * a = b;
a->~A();
::operator delete(b);
}
int main()
{
test<0>();
... |
google | android | unknown1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/unknown1.C | 294 | utf_8 | 6f274f2f57ce9c7c4609de79ec797b97 | // { dg-do compile }
void foo(void);
int foo(int);
template <typename T> void bar(T f); // { dg-message "note" }
void baz() {
bar(foo); // { dg-error "<unresolved overloaded function type>" }
// { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 8 }
}
|
google | android | error1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/error1.C | 134 | utf_8 | eb8955b4f4568177f29d90808e350304 | // { dg-do compile }
struct S
{
void f () {} // { dg-error "with" "" }
int f () { return 0; } // { dg-error "overloaded" "" }
};
|
google | android | template2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/template2.C | 228 | utf_8 | 053bc5744de44c3637cdea4e8f67c443 | typedef int PyObject;
typedef PyObject *(*PyCFunction)(PyObject *, PyObject *);
template<class T> int _clear(PyObject* self);
void _typeInfo()
{
reinterpret_cast<PyCFunction>(_clear); // { dg-error "overloaded function" }
}
|
google | android | cond2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/cond2.C | 109 | utf_8 | 5067a4c6731aae0336243d6867599e99 | struct C
{
operator int();
};
struct D
{
operator int();
};
int main()
{
C c; D d;
true ? c : d;
}
|
google | android | template1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/template1.C | 152 | utf_8 | 1e6f1679bedcc11510f7cadcb011cec3 | template<typename T> T Foo (int) {T d;}
void Baz (void (*)(int), int);
int Foo ();
int Baz (int (*)(), float);
void Bar ()
{
Baz (Foo, 1.0f);
}
|
google | android | arg4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/arg4.C | 382 | utf_8 | 494fd275c1d67e2ced55a80500cbedec | // { dg-do compile }
struct A {};
struct B : A
{
B(int);
B(B&);
B(A);
};
struct C
{
operator B () const;
};
void foo(B);
void bar()
{
C c; |
google | android | scope1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/scope1.C | 125 | utf_8 | 1bd540977a3ebf0e74db36e595b11998 | // PR c++/9868
template <typename T> struct D {
void (*p)();
void clear() {
D::p();
}
};
template class D<bool>;
|
google | android | pmf1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/pmf1.C | 516 | utf_8 | e290ad6ee59a5ec0b5557a052568a78d | // { dg-do compile }
int main ()
{
f (aip); // { dg-error "'A' is an inaccessible base of 'B'|conversion" "" }
} |
google | android | volatile1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/volatile1.C | 227 | utf_8 | 61a6a1da046265d7914707aea16d1d6e | // PR c++/48118
// { dg-prune-output "note" }
struct A { };
void f (A); // { dg-error "argument 1" }
void (*g)(A);
int main()
{
volatile A a;
f(a); // { dg-error "no match" }
g(a); // { dg-error "no match" }
}
|
google | android | conv-op1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/conv-op1.C | 240 | utf_8 | 09b00fcc6aab15c0db2a01d10064a093 | // PR c++/47703
typedef void (*pfn)(int &);
struct A
{
operator pfn() { return 0; }
};
void f()
{
const int i = 42;
A()(i); // { dg-message "<conversion>" }
}
// { dg-prune-output "no match" }
// { dg-prune-output "candidate" }
|
google | android | extern-C-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/extern-C-2.C | 131 | utf_8 | 799b32bc675b693f7b09c8e88e1f6ff9 | // PR c++/39742
void f( int, ...);
struct S
{
};
void
g()
{
void f( int, ...);
S t;
f(1, t);
}
void
f( int i, ...)
{
}
|
google | android | template4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/template4.C | 742 | utf_8 | be74c01840f65736064ba4a3405bbb21 | // PR c++/35986
// { dg-do compile }
namespace
{
template <int> void foo (...); // { dg-message "foo" }
template <int> void bar (int, ...); // { dg-message "bar" }
void baz (...); // { dg-message "baz" }
}
template <int> void foo (...); // { dg-message "note" }
template <int> void bar (int, ...); // { dg-mes... |
google | android | reftemp2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/reftemp2.C | 358 | utf_8 | f1afe21410b8c9ff2b405c0ea38c466d | // DR 391 says that we always bind a reference to the base subobject; it is
// incorrect to call the A copy constructor to initialize the parameter of
// f.
int fail;
struct A {
A() { }
A(const A&) { fail = 1; }
};
struct B : public A { };
struct X {
operator B() { return B(); }
};
X x;
void f (const A&) { }
... |
google | android | defarg1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/defarg1.C | 178 | utf_8 | b952933e6f52d065ea331a27b2e7852f | // PR c++/5247
template<typename T>
int foo (T t, int = foo(T())); // { dg-error "recursive" }
struct A { };
int main()
{
foo(A()); // { dg-message "default argument" }
}
|
google | android | defarg2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/defarg2.C | 286 | utf_8 | ce3155531a697acb7fd04a7264aa57b2 | // PR c++/37971
// { dg-do compile }
class C {
private:
static int f(int);
static int f(char);
public:
static void g(int (*)(int) = f);
};
void h() {
/* Although C::f is inaccessible here, it is accessible in the
context of C::g, so there is no error. */
C::g();
}
|
google | android | operator3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/operator3.C | 428 | utf_8 | e28afd768a2d5516c9bb5a7357c72738 | // PR c++/32756
// { dg-do compile }
// bogus overload warning
class QString;
struct QByteArray
{
QByteArray ();
bool operator!= (const QString & s2) const;
};
bool operator!= (const QByteArray & a1, const QByteArray & a2);
struct QString
{
QString ();
QString (const QByteArray & a);
};
QByteArray abbrevi... |
google | android | using2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/using2.C | 2,845 | utf_8 | 41ecc9220c5fc4e81984e698c595e759 | // { dg-do compile }
// based on https://bugzilla.redhat.com/beta/show_bug.cgi?id=149098
// Per the ISO C++ 90 Standard, using declarations before of after a
// declaration of the same function name and prototype should be
// errors (7.3.3/11). However, DR 101's resolution recommends
// accepting such duplicates if th... |
google | android | arg3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/arg3.C | 559 | utf_8 | cdcd898390d816869bc68de3bc9066f6 | // { dg-do compile }
struct A {};
struct B : A
{
B(int); // { dg-message "B::B|no known conversion" "" }
B(B&); // { dg-message "note" "" }
};
void foo(B); // { dg-error "initializing" }
void bar()
{
foo(0); // { dg-error "no matching function" "no matching" }
// { dg-message "candidate" "candidate note" { t... |
google | android | error2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/overload/error2.C | 308 | utf_8 | e4753bb05dc59e57b5bb60b1877f1fc1 | struct A
{
void foo(); // { dg-error "with" "" }
virtual void foo(); // { dg-error "cannot be overloaded" "" }
}; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.