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
for-3
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/for-3.C
6,164
utf_8
ea264f143b0032900269cff3dd21e0cc
// { dg-do run } #include <vector> #include <cstdlib> template <typename T> class J { public: typedef typename std::vector<T>::const_iterator const_iterator; J(const const_iterator &x, const const_iterator &y) : b (x), e (y) {} const const_iterator &begin (); const const_iterator &end (); private: const_ite...
google
chromium
shared-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/shared-1.C
822
utf_8
860ab4774cd57bc33c45802cc8ba5ad1
#include <omp.h> extern "C" void abort (void); struct Y { int l[5][10]; }; struct X { struct Y y; float b[10]; }; void parallel (int a, int b) { int i, j; struct X A[10][5]; a = b = 3; for (i = 0; i < 10; i++) for (j = 0; j < 5; j++) A[i][j].y.l[3][3] = -10; #pragma omp parallel shared (...
google
chromium
task-6
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/task-6.C
1,464
utf_8
f3fc31477cdff517af07a5eaed3977b4
extern "C" void abort (); int a = 18; template <typename T> void f1 (T i, T j, T k) { T l = 6, m = 7, n = 8; #pragma omp task private(j, m) shared(k, n) { j = 6; m = 5; if (++a != 19 || ++i != 9 || j != 6 || ++l != 7 || m != 5 || ++n != 9) #pragma omp atomic k++; } #pragma omp taskwait if (...
google
chromium
ctor-7
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-7.C
795
utf_8
46280f072d47ab513989684a0c34bbbd
// { dg-do run } #include <omp.h> #include <assert.h> #define N 10 struct B { static int icount; static int dcount; static int xcount; B(); B(const B &); ~B(); B& operator=(const B &); void doit(); }; int B::icount; int B::dcount; int B::xcount; B::B() { #pragma omp atomic icount++; } B::~...
google
chromium
task-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/task-1.C
1,388
utf_8
4755f8276f35f740d59135af4e5242f0
extern "C" void abort (); int a = 18; void f1 (int i, int j, int k) { int l = 6, m = 7, n = 8; #pragma omp task private(j, m) shared(k, n) { j = 6; m = 5; if (++a != 19 || ++i != 9 || j != 6 || ++l != 7 || m != 5 || ++n != 9) #pragma omp atomic k++; } #pragma omp taskwait if (a != 19 || i !...
google
chromium
ctor-9
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-9.C
990
utf_8
0bd7fe39119bfc0574561c1e381edc5b
// { dg-do run } // { dg-require-effective-target tls_runtime } #include <omp.h> #include <assert.h> #define N 10 #define THR 4 struct B { B& operator=(const B &); }; static B *base; static B *threadbase; static int singlethread; #pragma omp threadprivate(threadbase) static unsigned cmask[THR]; B& B::operator= ...
google
chromium
nested-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/nested-1.C
353
utf_8
1af322f02a0df2cf1f3c2c01d328da07
// { dg-do run } extern "C" void abort(void); #define N 1000 int foo() { int i = 0, j; #pragma omp parallel for num_threads(2) shared (i) for (j = 0; j < N; ++j) { #pragma omp parallel num_threads(1) shared (i) { #pragma omp atomic i++; } } return i; } int main() { if (foo() !...
google
chromium
master-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/master-1.C
237
utf_8
f228bd69972ac57d7838e7a77158e192
// PR c++/24734 // { dg-do run } extern "C" void abort (); int i; template<int> void foo () { #pragma omp parallel { #pragma omp master i++; } } int main () { foo<0> (); if (i != 1) abort (); return 0; }
google
chromium
ctor-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-1.C
767
utf_8
dd14bc7576437b98c5c00026c7f5d61f
// { dg-do run } #include <omp.h> #include <assert.h> struct B { static int icount; static int dcount; static int xcount; B(); B(const B &); ~B(); B& operator=(const B &); void doit(); }; int B::icount; int B::dcount; int B::xcount; B::B() { #pragma omp atomic icount++; } B::~B() { #pragm...
google
chromium
atomic-4
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/atomic-4.C
2,746
utf_8
f944acede3f9beeaf281ef9282c0ff44
// { dg-do run } extern "C" void abort (void); template <typename T, typename T2> int foo (void) { extern T x; extern T2 y; T v; T2 f; #pragma omp atomic read v = x; if (v != 6) abort (); #pragma omp atomic write x = 17; #pragma omp atomic read v = x; if (v != 17) abort (); #pragm...
google
chromium
pr26691
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr26691.C
201
utf_8
ebbf9a13ba035141ba01b3281fd27fea
// PR c++/26691 struct A { int n; A (int i = 3) : n (i) {} }; int main () { A a; int err = 0; #pragma omp parallel private (a) reduction (+:err) if (a.n != 3) err++; return err; }
google
chromium
atomic-9
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/atomic-9.C
2,682
utf_8
f25833e3fd46b52ba86a77e5fe12fd99
// { dg-do run } extern "C" void abort (); int cnt; int foo () { return cnt++; } template <typename T> void bar () { extern T x; T v, *p; #pragma omp atomic update x = x + 7; #pragma omp atomic x = x + 7 + 6; #pragma omp atomic update x = x + 2 * 3; #pragma omp atomic x = x * (2 - 1); ...
google
chromium
single-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/single-1.C
183
utf_8
989f18f6eb61c820627dc227d206e00d
extern "C" void abort (void); main() { int i = 0; #pragma omp parallel shared (i) { #pragma omp single { i++; } } if (i != 1) abort (); return 0; }
google
chromium
loop-7
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-7.C
276
utf_8
dfcc405ebd10d6186baef55d22ddcf08
// PR c++/24502 // { dg-do run } extern "C" void abort (); template <typename T> T foo (T r) { T i; #pragma omp for for (i = 0; i < 10; i++) r += i; return r; } int main () { if (foo (0) != 10 * 9 / 2 || foo (2L) != 10L * 9 / 2 + 2) abort (); return 0; }
google
chromium
atomic-6
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/atomic-6.C
847
utf_8
b033e9045b45805b9c4de42aa8f1eb17
// { dg-do run } extern "C" void abort (void); long long l, m; int i, j; void foo (void) { #pragma omp atomic read i = l; #pragma omp atomic read m = j; if (i != 77 || m != 88) abort (); #pragma omp atomic write l = 1 + i + 6 * 1; #pragma omp atomic write j = 170 - 170 + m + 1 * 7; #pr...
google
chromium
for-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/for-1.C
8,472
utf_8
e1ee4867ce68141a641f925070e14fdc
// { dg-do run } typedef __PTRDIFF_TYPE__ ptrdiff_t; extern "C" void abort (); template <typename T> class I { public: typedef ptrdiff_t difference_type; I (); ~I (); I (T *); I (const I &); T &operator * (); T *operator -> (); T &operator [] (const difference_type &) const; I &operator = (const I &...
google
chromium
loop-9
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-9.C
9,594
utf_8
f4c9230a7d51f0d2f7b5f5a32fdaf7ba
// { dg-do run } #include <omp.h> extern "C" void abort (); #define LLONG_MAX __LONG_LONG_MAX__ #define ULLONG_MAX (LLONG_MAX * 2ULL + 1) #define INT_MAX __INT_MAX__ int arr[6 * 5]; void set (int loopidx, int idx) { #pragma omp atomic arr[loopidx * 5 + idx]++; } #define check(var, val, loopidx, idx) \ if (var...
google
chromium
atomic-7
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/atomic-7.C
934
utf_8
7c7e2695a56575284cb08fd139d305e3
// { dg-do run } extern "C" void abort (void); template <typename S, typename T> void foo (void) { extern S l, m; extern T i, j; #pragma omp atomic read i = l; #pragma omp atomic read m = j; if (i != 77 || m != 88) abort (); #pragma omp atomic write l = 1 + i + 6 * 1; #pragma omp atomic...
google
chromium
reduction-2
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/reduction-2.C
849
utf_8
6a724210e4cb30df7ade4ef7ee0aa83e
#include <omp.h> #include <stdlib.h> int main (void) { int i = 0, j = 0, k = ~0, l; double d = 1.0; #pragma omp parallel num_threads(4) { #pragma omp single { i = 16; k ^= (1 << 16); d += 32.0; } #pragma omp for reduction(+:i) reduction(*:d) reduction(&:k) for (l = 0; l < 4; l++) ...
google
chromium
pr35185
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr35185.C
339
utf_8
f288ebef02de5e114b5c8526bad9dc19
// PR middle-end/35185 // { dg-do run } extern "C" void abort (); struct S { S () : s (6) {} ~S () {} int s; }; __attribute__((noinline)) bool bar (S s) { return s.s != 6; } int main () { S s; int err = 0; #pragma omp parallel shared (s) { if (bar (s)) #pragma omp atomic err++; } if (er...
google
chromium
pr39573
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr39573.C
1,255
utf_8
32eed8fe7a118de6fa22a9b1ffec6c53
// PR middle-end/39573 // { dg-do run } int z; void __attribute__((noinline)) bar (int *x) { #pragma omp atomic z += x[2]; x[2] += x[3]; } int main () { int i; #pragma omp parallel for for (i = 0; i < 65536; i++) { int x[] = { 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 1, 0...
google
chromium
pr48869
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr48869.C
1,023
utf_8
6bc7a2a67f411f00aa39c8b72e8a287d
// PR c++/48869 // { dg-do run } // { dg-options "-std=gnu++0x" } template <const int N> struct A { A () {} A (const A&) = delete; void foo () {} ~A () {} }; template <const int N> struct B { B () {} B (const B&) {} void foo () {} ~B () {} }; void __attribute__((used)) foo (B<6> b6) { #pragma omp t...
google
chromium
for-5
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/for-5.C
8,856
utf_8
575bf3b3886e4be78de211d7420de600
// { dg-do run } typedef __PTRDIFF_TYPE__ ptrdiff_t; extern "C" void abort (); template <typename T> class I { public: typedef ptrdiff_t difference_type; I (); ~I (); I (T *); I (const I &); T &operator * (); T *operator -> (); T &operator [] (const difference_type &) const; I &operator = (const I &...
google
chromium
loop-12
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-12.C
9,594
utf_8
2b91a43b8cbf2e2039ddc01ebeadd690
// { dg-do run } #include <omp.h> extern "C" void abort (); #define LLONG_MAX __LONG_LONG_MAX__ #define ULLONG_MAX (LLONG_MAX * 2ULL + 1) #define INT_MAX __INT_MAX__ int arr[6 * 5]; void set (int loopidx, int idx) { #pragma omp atomic arr[loopidx * 5 + idx]++; } #define check(var, val, loopidx, idx) \ if (var...
google
chromium
pr24455
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr24455.C
354
utf_8
e63a9f9ef258daf36921a6e22cd28821
// { dg-do run } // { dg-additional-sources pr24455-1.C } // { dg-require-effective-target tls_runtime } extern "C" void abort (void); extern int i; #pragma omp threadprivate(i) int main() { i = 0; #pragma omp parallel default(none) num_threads(10) copyin(i) { i++; #pragma omp barrier if (i != 1) ...
google
chromium
pr43893
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr43893.C
2,303
utf_8
467dc8995782492f741eb1d9548a272b
// PR c/43893 // { dg-do run } extern "C" void abort (); template <typename T, T M, T N> void f1 () { int c; T i; c = 0; #pragma omp parallel for reduction(+:c) for (i = M; i < N; i++) c++; if (c != 1) abort (); } template <typename T, T M, T N> void f2 () { int c; T i; c = 0; #pragma omp par...
google
chromium
loop-11
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-11.C
7,937
utf_8
7d8d309be88fba3f64b8a8a60b8ed182
#include <omp.h> #include <stdlib.h> #include <string.h> int test1 () { short int buf[64], *p; int i; memset (buf, '\0', sizeof (buf)); #pragma omp parallel for for (p = &buf[10]; &buf[54] > p; p++) *p = 5; for (i = 0; i < 64; i++) if (buf[i] != 5 * (i >= 10 && i < 54)) abort (); memset (buf,...
google
chromium
loop-2
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-2.C
353
utf_8
7d422e9589fd31ce814a2465d8342053
#include <omp.h> /* Orphaned work sharing. */ extern "C" void abort (void); #define N 10 void parloop (int *a) { int i; #pragma omp for for (i = 0; i < N; i++) a[i] = i + 3; } main() { int i, a[N]; #pragma omp parallel shared(a) { parloop (a); } for (i = 0; i < N; i++) if (a[i] != i + 3...
google
chromium
single-2
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/single-2.C
409
utf_8
fa90d4613f21c2fc2203f662585b40a3
extern "C" void abort (void); struct X { int a; char b; int c; }; main() { int i = 0; struct X x; int bad = 0; #pragma omp parallel private (i, x) shared (bad) { i = 5; #pragma omp single copyprivate (i, x) { i++; x.a = 23; x.b = 42; x.c = 26; } if (i != 6 || x.a !...
google
chromium
sections-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/sections-1.C
1,592
utf_8
563f8ced1bddfb533121dc40dc3d8a33
/****************************************************************************** * FILE: omp_workshare2.c * DESCRIPTION: * OpenMP Example - Sections Work-sharing - C/C++ Version * In this example, the OpenMP SECTION directive is used to assign * different array operations to threads that execute a SECTION. Each *...
google
chromium
parallel-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/parallel-1.C
541
utf_8
b48459c2120edb3479414c307d6516ce
#include <omp.h> extern "C" void abort (void); int foo (void) { return 10; } main () { int A = 0; #pragma omp parallel if (foo () > 10) shared (A) { A = omp_get_num_threads (); } if (A != 1) abort (); #pragma omp parallel if (foo () == 10) num_threads (3) shared (A) { A = omp...
google
chromium
task-3
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/task-3.C
973
utf_8
27531bc2a807e1107292fe33e894f8a0
// { dg-do run } extern "C" void abort (); struct A { A (); ~A (); A (const A &); unsigned long l; }; int e; A::A () { l = 17; } A::~A () { if (l > 30) #pragma omp atomic e++; } A::A (const A &r) { l = r.l; } void check (int i, A &a, int j, A &b) { if (i != 6 || a.l != 21 || j != 0 || b...
google
chromium
ctor-10
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-10.C
1,128
utf_8
75be4b24ec5c938326f469fafe3fb919
// { dg-do run } // { dg-require-effective-target tls_runtime } #include <omp.h> #include <assert.h> #define N 10 #define THR 4 struct B { B(); B(const B &); ~B(); B& operator=(const B &); void doit(); static B *base; static B *threadbase; #pragma omp threadprivate(threadbase) }; B *B::base; B *B::thr...
google
chromium
task-8
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/task-8.C
792
utf_8
c2392e28255d8ad9d2a56b86eddef4b4
// { dg-do run } #include <omp.h> #include <cstdlib> int errval; int main () { int e; #pragma omp parallel shared(errval) { if (omp_in_final ()) #pragma omp atomic write errval = 1; #pragma omp task if (0) shared(errval) { if (omp_in_final ()) #pragma omp atomic write errval = 1; #...
google
chromium
ctor-4
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-4.C
1,163
utf_8
35977f0d2ad0a90d819510aebcbf6e04
// { dg-do run } #include <omp.h> #include <assert.h> struct B { static int ccount; static int dcount; static int ecount; static B *e_inner; static B *e_outer; B(); B(int); B(const B &); ~B(); B& operator=(const B &); void doit(); }; int B::ccount; int B::dcount; int B::ecount; B * B::e_inner;...
google
chromium
ctor-8
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-8.C
1,086
utf_8
cf8630c02b905d98e08a439066bb9815
// { dg-do run } // { dg-require-effective-target tls_runtime } #include <omp.h> #include <assert.h> #define N 10 #define THR 4 struct B { B(); B(const B &); ~B(); B& operator=(const B &); void doit(); }; static B *base; static B *threadbase; static unsigned cmask[THR]; static unsigned dmask[THR]; #pragm...
google
chromium
loop-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-1.C
2,206
utf_8
b2840419f7f70553698eb41dcd3bd6c6
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <omp.h> #define MAX 1000 void main1() { int i, N1, N2, step; int a[MAX], b[MAX]; N1 = rand () % 13; N2 = rand () % (MAX - 51) + 50; step = rand () % 7 + 1; printf ("N1 = %d\nN2 = %d\nstep = %d\n", N1, N2, step); for (i = N1; i <= N2;...
google
chromium
shared-2
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/shared-2.C
662
utf_8
7805db616bcb6a1c8b84054f686fa607
extern "C" void abort (void); void parallel (int a, int b) { int bad, LASTPRIV, LASTPRIV_SEC; int i; a = b = 3; bad = 0; #pragma omp parallel firstprivate (a,b) shared (bad) num_threads (5) { if (a != 3 || b != 3) bad = 1; #pragma omp for lastprivate (LASTPRIV) for (i = 0; i < 10; ...
google
chromium
for-2
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/for-2.C
3,058
utf_8
b64542faf55a399e300d1e45dd199dea
// { dg-do run } extern "C" void abort (); template <typename T> class J { public: J(T x, T y) : b (x), e (y) {} T begin (); T end (); private: T b, e; }; template <typename T> T J<T>::begin () { return b; } template <typename T> T J<T>::end () { return e; } int results[2000]; void baz (int i) { if (i < ...
google
chromium
task-4
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/task-4.C
615
utf_8
0d8cf66e014b36ac1b99ff0ada601105
#include <omp.h> extern "C" void *memset (void *, int, __SIZE_TYPE__); extern "C" void abort (void); int e; void baz (int i, int *p, int j, int *q) { if (p[0] != 1 || p[i] != 3 || q[0] != 2 || q[j] != 4) #pragma omp atomic e++; } void foo (int i, int j) { int p[i + 1]; int q[j + 1]; memset (p, 0, s...
google
chromium
for-6
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/for-6.C
1,333
utf_8
ecf732e204a30d14c98745b74707a00c
// PR c++/38348 // { dg-do run } extern "C" void abort (); int cnt; template <typename T> void f0 (T, int) { abort (); } template <> void f0<int> (int, int type) { if (type != 0) abort (); #pragma omp atomic cnt++; } template <> void f0<const char *> (const char *, int type) { if (type != 1) abort (...
google
chromium
atomic-5
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/atomic-5.C
1,216
utf_8
deb63d2160d43f3e708a4363b1e0afaa
// { dg-do run } extern "C" void abort (void); template <typename T> void foo () { extern T v, x1, x2, x3, x4, x5, x6; #pragma omp atomic capture v = ++x1; if (!v) abort (); #pragma omp atomic capture v = x2++; if (v) abort (); #pragma omp atomic read v = x3; if (!v) abort (); #pragm...
google
chromium
copyin-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/copyin-1.C
515
utf_8
f1e175a4d49888d51652b27c0e3c8c01
// { dg-do run } // { dg-require-effective-target tls_runtime } #include <omp.h> extern "C" void abort (void); int thr = 32; #pragma omp threadprivate (thr) int main (void) { int l = 0; omp_set_dynamic (0); omp_set_num_threads (6); #pragma omp parallel copyin (thr) reduction (||:l) { l = thr != 32; ...
google
chromium
single-3
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/single-3.C
242
utf_8
7d0f24f8edab30e9e5aa2d3f5133e9f4
extern "C" void abort (void); void single (int a, int b) { #pragma omp single copyprivate(a) copyprivate(b) { a = b = 5; } if (a != b) abort (); } int main() { #pragma omp parallel single (1, 2); return 0; }
google
chromium
loop-5
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-5.C
320
utf_8
415849793602a06b6efea7e3cfc289f6
extern "C" void abort (); int check; int f1() { check |= 1; return 1; } int f2() { check |= 2; return 11; } int f3() { check |= 4; return 2; } int a[12]; int main() { #pragma omp for for (int i = f1(); i <= f2(); i += f3()) a[i] = 1; for (int i = 0; i < 12; ++i) if (a[i] != (i & 1)) abort (); }
google
chromium
atomic-8
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/atomic-8.C
2,609
utf_8
d9f74ad4b5095a67f1961e49e03171fb
// { dg-do run } extern "C" void abort (); int x = 6, cnt; int foo () { return cnt++; } int main () { int v, *p; #pragma omp atomic update x = x + 7; #pragma omp atomic x = x + 7 + 6; #pragma omp atomic update x = x + 2 * 3; #pragma omp atomic x = x * (2 - 1); #pragma omp atomic read ...
google
chromium
collapse-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/collapse-1.C
584
utf_8
3cf387e0409514607d2a5bfe5450a908
// { dg-do run } #include <string.h> #include <stdlib.h> int main () { int i, j, k, l = 0; int a[3][3][3]; memset (a, '\0', sizeof (a)); #pragma omp parallel for collapse(4 - 1) schedule(static, 4) for (i = 0; i < 2; i++) for (j = 0; j < 2; j++) for (k = 0; k < 2; k++) a[i][j][k] = i + j * 4 + ...
google
chromium
pr38650
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr38650.C
833
utf_8
d65773670d221b74aa6b327a1de57dff
// PR c++/38650 // { dg-do run } #include <cstdlib> int e; int main () { volatile int i, j = 10; e = 0; #pragma omp parallel for reduction(+:e) for (i = 0; i < j; i += 1) e++; if (e != 10) std::abort (); e = 0; #pragma omp parallel for reduction(+:e) for (i = 0; i < j; ++i) e++; if (e != 10...
google
chromium
ctor-3
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-3.C
1,111
utf_8
30fe7293fbfe4d3917ee957be0df04b8
// { dg-do run } #include <omp.h> #include <assert.h> struct B { static int icount; static int dcount; static int ccount; static B *e_inner; static B *e_outer; B(); B(int); B(const B &); ~B(); B& operator=(const B &); void doit(); }; int B::icount; int B::dcount; int B::ccount; B * B::e_inner;...
google
chromium
pr30703
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr30703.C
819
utf_8
e31d9cc17430983d0904112f3275e13c
// PR c++/30703 // { dg-do run } #include <omp.h> extern "C" void abort (); int ctor, cctor, dtor; struct A { A(); A(const A &); ~A(); int i; }; A::A() { #pragma omp atomic ctor++; } A::A(const A &r) { i = r.i; #pragma omp atomic cctor++; } A::~A() { #pragma omp atomic dtor++; } void foo (A a, A...
google
chromium
pr49043
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr49043.C
292
utf_8
d566c37edb50b4aac9c2b4fa4d381670
// PR c++/49043 // { dg-options "-std=c++0x" } // { dg-do run } extern "C" void abort (); int main () { int r = 0; #pragma omp parallel for reduction (+:r) for (int a = 0; a < 10; ++a) { auto func = [=] () { return a; }; r += func (); } if (r != 45) abort (); }
google
chromium
loop-4
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-4.C
347
utf_8
59398898638181cfa7e418afc26a6c23
extern "C" void abort (void); main() { int i, a; a = 30; #pragma omp parallel for firstprivate (a) lastprivate (a) \ num_threads (2) schedule(static) for (i = 0; i < 10; i++) a = a + i; /* The thread that owns the last iteration will have computed 30 + 5 + 6 + 7 + 8 + 9 = 65. */ if (a != 65) ...
google
chromium
task-5
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/task-5.C
977
utf_8
6cc1ae8058007b8afab8f6686080f1dc
// { dg-do run } extern "C" void abort (); struct A { A (); ~A (); A (const A &); unsigned long l; }; int e; A::A () { l = 17; } A::~A () { if (l > 130) #pragma omp atomic e++; } A::A (const A &r) { l = r.l + 64; } void check (int i, A &a, int j, A &b) { if (i != 6 || a.l != 21 + 64 || ...
google
chromium
pr26943
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/pr26943.C
651
utf_8
f22ddc230a1c3c9064a657fa7fa843e6
// PR c++/26943 // { dg-do run } #include <assert.h> #include <unistd.h> struct S { public: int x; S () : x(-1) { } S (const S &); S& operator= (const S &); void test (); }; static volatile int hold; S::S (const S &s) { #pragma omp master sleep (1); assert (s.x == -1); x = 0; } S& ...
google
chromium
ctor-2
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-2.C
923
utf_8
77ef1f3b35655957d8c63625800cc252
// { dg-do run } #include <omp.h> #include <assert.h> struct B { static int ccount; static int dcount; static int xcount; static B *expected; B(); B(int); B(const B &); ~B(); B& operator=(const B &); void doit(); }; int B::ccount; int B::dcount; int B::xcount; B * B::expected; B::B(int) { exp...
google
chromium
ctor-11
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/ctor-11.C
1,360
utf_8
b812dfb76303fb741edad434356f3e35
// PR c++/36308 // { dg-do run } #include <omp.h> #include <assert.h> #define N 10 struct B { static int icount; static int ccount; static int dcount; static int xcount; B (); B (const B &); virtual ~B (); B& operator= (const B &); void doit (); static void clear () { icount = ccount = dcount = ...
google
chromium
task-2
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/task-2.C
1,003
utf_8
5532f36e28daf97021228ebf72885697
// { dg-do run } #include <omp.h> extern "C" void abort (); int l = 5; int foo (int i) { int j = 7; const int k = 8; #pragma omp task firstprivate (i) shared (j, l) { #pragma omp critical { j += i; l += k; } } i++; #pragma omp task firstprivate (i) shared (j, l) { #pragma omp cr...
google
chromium
atomic-3
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/atomic-3.C
1,097
utf_8
ed304e6a8199d4a60a7bb4acd1a4f4fc
// { dg-do run } extern "C" void abort (void); bool v, x1, x2, x3, x4, x5, x6; void foo () { #pragma omp atomic capture v = ++x1; if (!v) abort (); #pragma omp atomic capture v = x2++; if (v) abort (); #pragma omp atomic read v = x3; if (!v) abort (); #pragma omp atomic read v = x4; ...
google
chromium
for-7
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/for-7.C
1,356
utf_8
7bc5327e132f991e5161670033919a4f
// PR c++/ // { dg-do run } // { dg-options "-std=c++0x -fopenmp" } extern "C" void abort (); int cnt; template <typename T> void f0 (T, int) { abort (); } template <> void f0<int> (int, int type) { if (type != 0) abort (); #pragma omp atomic cnt++; } template <> void f0<const char *> (const char *, int t...
google
chromium
for-4
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/for-4.C
5,639
utf_8
a255ea680f411888de34b07ee4819455
// { dg-do run } #include <string> #include <cstdlib> template <typename T> class J { public: typedef typename std::basic_string<T>::iterator iterator; J(const iterator &x, const iterator &y) : b (x), e (y) {} const iterator &begin (); const iterator &end (); private: iterator b, e; }; template <typename T...
google
chromium
atomic-1
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/atomic-1.C
766
utf_8
ba5ed16a48b3a78511b4913cdd4d7617
// PR c++/33894 // { dg-do run } // { dg-options "-O2" } extern "C" void abort (); int check; template<typename T> void foo () { #pragma omp atomic check |= sizeof (T); } template<typename T> void bar (T *x, T y) { #pragma omp atomic *x += y; } template<typename T> void baz () { #pragma omp atomic chec...
google
chromium
for-8
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/for-8.C
8,472
utf_8
880af38017f64c833eb1331938f980cd
// { dg-do run } typedef __PTRDIFF_TYPE__ ptrdiff_t; extern "C" void abort (); template <typename T> class I { public: typedef ptrdiff_t difference_type; I (); ~I (); I (T *); I (const I &); T &operator * (); T *operator -> (); T &operator [] (const difference_type &) const; I &operator = (const I &...
google
chromium
collapse-2
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/collapse-2.C
11,762
utf_8
95b1d349c03cc5d01483df22751c0183
// { dg-do run } #include <omp.h> typedef __PTRDIFF_TYPE__ ptrdiff_t; extern "C" void abort (); template <typename T> class I { public: typedef ptrdiff_t difference_type; I (); ~I (); I (T *); I (const I &); T &operator * (); T *operator -> (); T &operator [] (const difference_type &) const; I &oper...
google
chromium
loop-6
.C
native_client/pnacl-gcc/libgomp/testsuite/libgomp.c++/loop-6.C
303
utf_8
a143bccd15fda6acb915e48bf51be423
// { dg-do run } extern "C" void abort (void); volatile int count; static int test(void) { return ++count > 0; } int i; int main() { #pragma omp for lastprivate (i) for (i = 0; i < 10; ++i) { if (test()) continue; abort (); } if (i != count) abort (); return 0; }
google
chromium
pr45112
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr45112.C
252
utf_8
5f87750ba61c9001cac317e0f478021f
/* { dg-do compile } */ struct JSString { unsigned char mLength; static JSString unitStringTable[]; }; JSString JSString::unitStringTable[] __attribute__ ((aligned (8))) = { 1 }; int bug [__alignof__ (JSString::unitStringTable) >= 8 ? 1 : -1];
google
chromium
pr45310
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr45310.C
300
utf_8
39f7b22081ae13a868ee3c73cf7311bc
/* { dg-do compile } */ /* { dg-options "-O1 -fnon-call-exceptions" } */ static inline const int & max (const int &a, const int &b) { return a ? a : b; } static inline int baz () { return max (0, 0); } struct S { ~S () { baz (); } }; void bar (); void foo () { S s; bar (); }
google
chromium
uninit-pred-2_a
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/uninit-pred-2_a.C
855
utf_8
f0a1fb92cf38358bf8b5f06449cca963
/* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2" } */ typedef long long int64; void incr (); bool is_valid (int); int get_time (); class A { public: A (); ~A () { if (I) delete I; } private: int* I; }; bool get_url (A *); class M { public: __attribute__ ((always_inline)) bool GetC (in...
google
chromium
func-args-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/func-args-1.C
1,810
utf_8
165f4d1a12237b9ed8273a7db5e4299e
/* { dg-do compile } */ /* { dg-options "" } */ void f0(void); /* { dg-message "note: declared here" } */ void f1(int); /* { dg-message "note: declared here" } */ void f1v(int, ...); /* { dg-message "note: declared here" } */ void f2(int, int); /* { dg-message "note: declared here" } */ void f2v(int, int, ...); /* { dg...
google
chromium
pr44328
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr44328.C
796
utf_8
32b2fbda29ffd2ac2181c43c971f3a7d
/* { dg-do compile } */ /* { dg-options "-c -O2 -Wextra" } */ #define O_RDONLY (1<<0) #define O_WRONLY (1<<1) #define O_RDWR (O_RDONLY|O_WRONLY) #define O_CREAT (1<<3) #define O_TRUNC (1<<6) typedef enum { OM_READ = 0, OM_WRITE, OM_READWRITE_NOCREATE, OM_READWRITE_CREATE } OpenM...
google
chromium
uninit-pred-1_b
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/uninit-pred-1_b.C
925
utf_8
6b26b973249421d830f2fec8a5610837
/* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2" } */ typedef long long int64; void incr (); bool is_valid (int); int get_time (); class A { public: A (); ~A () { if (I) delete I; } private: int* I; }; bool get_url (A *); class M { public: __attribute__ ((always_inline)) int GetC (int...
google
chromium
pubtypes
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pubtypes.C
1,239
utf_8
ff03ae43e2f7b271b014ab72b2a538fd
/* Radar 4535968 */ /* { dg-do compile { target *-*-darwin* } } */ /* { dg-options "-O0 -gdwarf-2 -dA -fno-eliminate-unused-debug-types" } */ struct A { virtual ~A (); int a1; }; A::~A() { a1 = 800; } struct B : public A { virtual ~B (); int b1; int b2; }; B::~B() { a1 = 900; b1 = 901; b2 = 902; } // ...
google
chromium
prof-robust-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/prof-robust-1.C
318
utf_8
46dfed9235a1b2047de97216124fc419
/* { dg-options "-O2 -fno-weak" } */ #include <stdio.h> namespace { namespace { class MyClass { public: void foo() const; ~MyClass() { foo(); } }; void MyClass::foo() const { printf("Goodbye World\n"); } } static MyClass variable; } int main() { return 0; }
google
chromium
constexpr-null1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/constexpr-null1.C
340
utf_8
3e1ff7dfa116cf8bba94cc9b62873cdb
// PR c++/46670 // { dg-options -std=c++0x } extern unsigned char __TBB_ReverseByte(unsigned char src); extern unsigned char *reversed; template<typename T> T __TBB_ReverseBits(T src) { unsigned char *original = (unsigned char *) &src; for( int i = sizeof(T)-1; i--; ) reversed[i] = __TBB_ReverseByte( original[...
google
chromium
pr44486
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr44486.C
295
utf_8
e43b4ea2d038b181b57782d5d56d22ba
// PR c++/44486 missing space in __PRETTY_FUNCTION__ expansion in anonymous namespace // { dg-do compile } // { dg-options "" } struct S { }; namespace { S f() { const char * s = __PRETTY_FUNCTION__; return S(); } } int main() { f(); } // { dg-final { scan-assembler "S \{anonymous\}::f" } }
google
chromium
pr48484
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr48484.C
1,716
utf_8
d29c2329b28c23ae3cb258a8026b53cd
/* { dg-do compile } */ /* { dg-options "-O -finline-functions -finline-small-functions -Wuninitialized" } */ struct SQObjectPtr { int _type; SQObjectPtr operator = (long); }; struct SQObjectPtrVec { SQObjectPtr fff (unsigned); SQObjectPtr *_vals; }; struct SQInstruction { int _arg1; unsigned op; unsi...
google
chromium
pr46852
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr46852.C
79
utf_8
f8a176d1fc5d47b59c3be174c032504f
// PR c++/46852 // { dg-do compile } template < class { // { dg-error "" }
google
chromium
uninit-pred-3_a
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/uninit-pred-3_a.C
1,149
utf_8
5786bf78cee1b70c9836b60ec34f42ba
/* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2" } */ /* Multiple initialization paths. */ typedef long long int64; void incr (); bool is_valid (int); int get_time (); class A { public: A (); ~A () { if (I) delete I; } private: int* I; }; bool get_url (A *); bool get_url2 (A *); class M...
google
chromium
pr46890
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr46890.C
103
utf_8
3946927cb1dd0a7ac3d8009e703d00c4
// PR c++/46890 // { dg-do compile } struct MdatResource { const char *mdatAlloc; } const *_resource;
google
chromium
pr45330
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr45330.C
640
utf_8
824966c44b18cb22cd6c60db87f93578
// { dg-do compile } // Search std, __cxxabiv1, and global namespaces, plus one more. // { dg-options "--param cxx-max-namespaces-for-diagnostic-help=4" } #define NSPACE(NAME) namespace NAME { int foo; } namespace A { int foo; // { dg-message "A::foo" "suggested alternative" } } namespace B { int foo; } names...
google
chromium
pr45049-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr45049-2.C
110
utf_8
bb2d7657d437d9771120e409a911eaab
/* { dg-do compile } */ void foo() { void bar(int); void baz(int); void baz(void); void bar(void); }
google
chromium
pr48633
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr48633.C
529
utf_8
e384db5ab7dd22da4d2f37d7651bb107
/* { dg-do compile} */ /* { dg-options "-O2 -fira-region=all -fnon-call-exceptions" } */ extern long double getme (void); extern void useme (long double); struct Frame { long double tmp; }; void bugme (int n, long double ld1, long double ld2, long double ld3, long double ld4, long double ld5) { Frame ...
google
chromium
pr37742
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr37742.C
238
utf_8
2ac64817a39fe1a5c2dc328f4233cda1
/* { dg-do compile } */ __extension__ typedef __SIZE_TYPE__ size_t; void* __valarray_get_memory(size_t __n); int*__restrict__ __valarray_get_storage(size_t __n) { return static_cast<int* __restrict__>(__valarray_get_memory(__n)); }
google
chromium
20090121-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/20090121-1.C
315
utf_8
e530347ad81371c3d469f2a1d1245735
// { dg-do compile } // { dg-require-effective-target lto } // { dg-options "-flto -Wuninitialized -O2" } class A { private: int y; public: A () { int x; y = x + 1; } /* { dg-warning "'x' is used uninitialized in this function" } */ int get_y () { return y; } }; int foo() { A a; return a.get_y (); }
google
chromium
pr46868
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr46868.C
89
utf_8
7affa7ae7d35122d45703a6d24ae54f9
// PR c++/46868 // { dg-do compile } template < int > struct S { S < // { dg-error "" }
google
chromium
uninit-pred-2_b
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/uninit-pred-2_b.C
906
utf_8
c299a2e8f2fcb74286fbc4d6d1cf115d
/* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2" } */ typedef long long int64; void incr (); bool is_valid (int); int get_time (); class A { public: A (); ~A () { if (I) delete I; } private: int* I; }; bool get_url (A *); class M { public: __attribute__ ((always_inline)) bool GetC (in...
google
chromium
pr45056
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr45056.C
1,152
utf_8
df445dd466c64ca9de2502714fd94669
/* { dg-do compile } */ /* { dg-options "-O -fschedule-insns2 -fschedule-insns -g" } */ /* { dg-require-effective-target scheduling } */ template < class _T1, class _T2 > struct pair { _T1 first; _T2 second; pair (_T1 & __a, _T2 & __b) :first (__a), second (__b) { } } ; template < typename _Tp > ...
google
chromium
20090107-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/20090107-1.C
364
utf_8
58dc5a5cf5db074f93f28ff8913eed25
/* { dg-do compile } */ /* { dg-require-effective-target lto } */ /* { dg-options "-flto -Wuninitialized -O1" } */ template <typename T> struct Q1 { typedef int x; }; template <typename T> struct Q2 { typename Q1<T>::x f() { int k; return k; /* { dg-warning "'k' is used uninitialized in this function" } */...
google
chromium
pr47053
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr47053.C
211
utf_8
9c1057b2baef3c7b14a3990a7dab5c62
/* { dg-do compile } */ /* { dg-options "-O2 -fnon-call-exceptions" } */ struct A { int i; virtual ~A () {} }; struct B : virtual A {}; struct C : public B { C (); ~C (){} }; void foo () { C c; }
google
chromium
cdce3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/cdce3.C
7,813
utf_8
2ee63acaeadace55f4280f6c2de62438
/* { dg-do run } */ /* { dg-require-effective-target c99_runtime } */ /* { dg-skip-if "exp2* missing despite C99 runtime" { alpha*-dec-osf5* } } */ /* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -DGNU_EXTENSION -DLARGE_LONG_DOUBLE -lm" { target { pow10 && large_long_double } } } */ /* { dg-options "-O2 -fm...
google
chromium
uninit-pred-3_b
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/uninit-pred-3_b.C
1,294
utf_8
e7062d8b8ae34f0a4f8b5b407e180316
/* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2" } */ /* Multiple initialization paths. */ typedef long long int64; void incr (); bool is_valid (int); int get_time (); class A { public: A (); ~A () { if (I) delete I; } private: int* I; }; bool get_url (A *); bool get_url2 (A *); bool get...
google
chromium
pr47589
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr47589.C
249
utf_8
7d415c3f086a787fac9c43c2198e69a2
// PR c++/47589 // { dg-do compile } struct F { typedef void(*Cb)(); F(Cb); }; struct C { template<class D> static void f(); }; template<class D> struct TF : F { TF() : F(C::f<D>) { } }; struct DTC : TF<DTC> { DTC() { } };
google
chromium
pr45038
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr45038.C
183
utf_8
72214a3aa3e03b049b631f8d07e65aa9
// PR preprocessor/45038 // { dg-do compile } // { dg-options "-Werror -Wold-style-cast" } double f(void) { // We used to produce old-style casts for this. return __DBL_MIN__; }
google
chromium
pr45049-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr45049-1.C
185
utf_8
de6e2f19bd82039476dbac4742f1fa43
/* { dg-do compile } */ namespace n1 { void modf (); } namespace n2 { void trunc (); void modf (); } void max () { using n1::modf; using n2::trunc; using n2::modf; }
google
chromium
pr46065
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr46065.C
91
utf_8
4e1d8a1af98ff692467fa16f5a8da67f
// PR c++/46065 // { dg-do compile } void bar (); void foo () { using ::bar; label:; }
google
chromium
pr45788
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr45788.C
3,042
utf_8
0f2ee0c5baf4aad3f066c6e5b6757464
// { dg-do compile { target x86_64-*-* } } // { dg-options "-O3 -fwhole-program -msse2" } typedef long unsigned int __darwin_size_t; typedef __darwin_size_t size_t; typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); typedef float __v4sf __attribute__ ((__vector_size__ (16))); extern inline __m1...
google
chromium
uninit-pred-1_a
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/uninit-pred-1_a.C
907
utf_8
bc857364cab52e462e2e718cd7fefaa8
/* { dg-do compile } */ /* { dg-options "-Wuninitialized -O2" } */ typedef long long int64; void incr (); bool is_valid (int); int get_time (); class A { public: A (); ~A () { if (I) delete I; } private: int* I; }; bool get_url (A *); class M { public: __attribute__ ((always_inline)) int GetC (int...
google
chromium
pr48772
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/pr48772.C
332
utf_8
eb8473dadb424bb65d0d3d0b5588e217
// { dg-do compile } // { dg-options "-O -fnon-call-exceptions -fno-tree-ccp -fno-tree-dce" } extern "C" void abort (); struct A { void foo () { this->bar (); } virtual void bar () { abort (); } ~A () { } }; struct B:A { virtual void bar () { } }; int main () { B b; b.foo (); r...
google
chromium
pr46053
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr46053.C
422
utf_8
3b13da9b176812433b85dc81c337079d
/* { dg-do run } */ /* { dg-options "-O -fipa-cp -fno-early-inlining" } */ extern "C" void abort (); struct A { virtual void foo () = 0; }; struct B : A { virtual void foo () = 0; }; struct C : A { }; struct D : C, B { int i; D () : i(0xaaaa) {} virtual void foo () { if (i != 0xaaaa) abort()...
google
chromium
devirt-4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/devirt-4.C
1,197
utf_8
d2da990ad34e9459150b3aa94be920a9
/* Verify that ipa-co can convert virtual calls to direct ones even when a typecast to an ancestor is involved along the way. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */ extern "C" void abort (void); class A { public: int data; virtual...
google
chromium
pr45572-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/ipa/pr45572-1.C
1,629
utf_8
fbe7a722c61f265b03ff0a5ed5ada369
// { dg-do compile } // { dg-options "-finline-small-functions -findirect-inlining -finline-functions -O" } extern "C" { typedef long unsigned int size_t; typedef long int __ssize_t; typedef struct _IO_FILE FILE; typedef struct { } __mbstate_t; extern __inline __attribute__ ((__gnu_inline__)) int fgetc_unlocked (FILE ...