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
ssa-store-ccp-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/tree-ssa/ssa-store-ccp-1.C
424
utf_8
0df033cfcc434f5f7c8ae9627c193967
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-optimized" } */ class bar { public: static const int conststaticvariable; }; int f(void) { return bar::conststaticvariable; } /* There should be a reference to conststaticvariable since it may be overriden at link time. */ /* { dg-final { scan-tree-dump-times "conststaticvariable" 1 "optimized"} } */ /* { dg-final { cleanup-tree-dump "optimized" } } */
google
chromium
pr14814
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr14814.C
541
utf_8
78fcf929e1c1fde7a72e4f29b7956fd9
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-forwprop2" } */ class YY { public: YY(const YY &v) { e[0] = v.e[0]; e[1] = v.e[1]; e[2] = v.e[2]; } double &y() { return e[1]; } double e[3]; }; class XX { public: YY direction() const { return v; } YY v; }; int foo(XX& r) { if (r.direction().y() < 0.000001) return 0; return 1; } /* { dg-final { scan-tree-dump-times "&this" 0 "forwprop2" } } */ /* { dg-final { scan-tree-dump-times "&r" 0 "forwprop2" } } */ /* { dg-final { cleanup-tree-dump "forwprop2" } } */
google
chromium
pr42337
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr42337.C
5,301
utf_8
007849af5fbebd55266eebd5fd1bb02a
// PR tree-optimize/42337 // { dg-do compile } // { dg-options "-O2" } template<class _T1, class _T2> struct pair { _T2 second; }; template<typename _Tp> inline const _Tp& max(const _Tp& __a, const _Tp& __b) { } template<typename _ForwardIterator, typename _Tp, typename _Compare> _ForwardIterator lower_bound(_ForwardIterator __first, _ForwardIterator __last, const _Tp& __val, _Compare __comp) { } template<class _CharT> struct char_traits {}; template<typename _Iterator, typename _Container> class __normal_iterator { public: typedef _Iterator iterator_type; __normal_iterator& operator++() { } }; template<typename _IteratorL, typename _IteratorR, typename _Container> inline bool operator!=(const __normal_iterator<_IteratorL, _Container>& __lhs, const __normal_iterator<_IteratorR, _Container>& __rhs) { } template<typename _Tp> class new_allocator { public: typedef _Tp* pointer; typedef const _Tp* const_pointer; }; template<typename _Tp> class allocator: public new_allocator<_Tp> { public: template<typename _Tp1> struct rebind { typedef allocator<_Tp1> other; }; }; template<typename _Arg, typename _Result> struct unary_function { }; template<typename _Arg1, typename _Arg2, typename _Result> struct binary_function { }; template<typename _Tp> struct less : public binary_function<_Tp, _Tp, bool> { }; template<typename _Pair> struct _Select1st : public unary_function<_Pair, typename _Pair::first_type> { }; template<typename _Tp> struct _Rb_tree_iterator { typedef _Tp* pointer; pointer operator->() const { } }; template<typename _Key, typename _Val, typename _KeyOfValue, typename _Compare, typename _Alloc = allocator<_Val> > class _Rb_tree { typedef _Val value_type; public: typedef _Rb_tree_iterator<value_type> iterator; }; template <typename _Key, typename _Tp, typename _Compare = less<_Key>, typename _Alloc = allocator<pair<const _Key, _Tp> > > class map { public: typedef _Key key_type; typedef pair<const _Key, _Tp> value_type; typedef _Compare key_compare; private: typedef typename _Alloc::template rebind<value_type>::other _Pair_alloc_type; typedef _Rb_tree<key_type, value_type, _Select1st<value_type>, key_compare, _Pair_alloc_type> _Rep_type; public: typedef typename _Pair_alloc_type::pointer pointer; typedef typename _Rep_type::iterator iterator; iterator find(const key_type& __x) { } }; template<typename _Tp, typename _Alloc> struct _Vector_base { typedef typename _Alloc::template rebind<_Tp>::other _Tp_alloc_type; }; template<typename _Tp, typename _Alloc = allocator<_Tp> > class vector : protected _Vector_base<_Tp, _Alloc> { typedef _Vector_base<_Tp, _Alloc> _Base; typedef typename _Base::_Tp_alloc_type _Tp_alloc_type; public: typedef typename _Tp_alloc_type::pointer pointer; typedef typename _Tp_alloc_type::const_pointer const_pointer; typedef __normal_iterator<pointer, vector> iterator; typedef __normal_iterator<const_pointer, vector> const_iterator; iterator begin() { } const_iterator begin() const { } const_iterator end() const { } unsigned long size() const { } }; class SSC { public: SSC () {} SSC (const int& cs); }; extern int flag; struct TP { const int cl_; const vector<int> &its_; int max_s_; }; double foo(TP *p); map<int, int> cs_; template <typename T> class vector32 { public: typedef T& reference; typedef T* iterator; typedef const T* const_iterator; iterator begin() { return data_; } iterator end() { return data_ + size_; } long unsigned int size() const { return size_; } T* data_; unsigned size_; }; struct SF : public pair<unsigned long long, double> { }; template<typename KEY, typename VALUE> class SFVT { private: typedef vector32<SF> Container; typedef typename Container::const_iterator CI; mutable Container v_; mutable bool sorted_; struct Cmp : public binary_function<SF, SF, bool> { }; __attribute__((always_inline)) VALUE IS(const SFVT &sfv) const { if (sfv.v_.size() < v_.size()) { return sfv.IS(*this); } else { VALUE sum = 0.0; CI beg = sfv.v_.begin(); CI end = sfv.v_.end(); for (CI i = v_.begin(); i != v_.end(); ++i) { beg = lower_bound(beg, end, *i, Cmp()); if (beg == end) { return sum; } } } } public: explicit SFVT(const int capacity = 0) : sorted_(true) { } long unsigned int size() const { } __attribute__((always_inline)) VALUE DP(const SFVT &sfv) const { return IS(sfv); } }; class SFV : public SFVT<unsigned long long, double> { }; class Edge; extern int flag2; double foo(TP *p) { int nbests_requested = max(p->max_s_, flag); map<int, int>::iterator it = cs_.find(p->cl_); int* c = &it->second; for (vector<int>::const_iterator iter = p->its_.begin(); iter != p->its_.end(); ++iter) { } vector<int*> fb; vector<double> w; int *hg = 0; if (flag2 == 10) { hg = &flag2; } int nr = 0; for (vector<int*>::iterator iter = fb.begin(); (iter != fb.end() && nr < nbests_requested); ++iter) { } if (hg) { SFV s_weights; for (int i = 0; i < w.size(); ++i) { } SFV uw; for (int i = 0, j = 0; i < uw.size() && j < s_weights.size(); ) { } const double tc = uw.DP(s_weights); } }
google
chromium
pr21407
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr21407.C
367
utf_8
7c5af5a290f14644ca5fe31305ee5394
/* { dg-do run } */ /* { dg-options "-O2" } */ extern "C" void abort(void); struct T1 {int a, b; virtual void f(){}}; struct T : T1 { struct T1 w; int b; }; void foo (struct T1 *p) { struct T *q = dynamic_cast<T*>(p); if (q->b != 2) abort (); } /* We shouldn't kill the store to c.b, because foo uses it. */ int main () { struct T c; c.b = 2; foo (&c); return 0; }
google
chromium
pr22404
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr22404.C
217
utf_8
1ea79bad3adcdf5685946133e3c5e95f
/* { dg-do compile } */ /* { dg-options "-O2" } */ /* We were not getting the offset of a in B and a in C::B correct, causing an abort. */ struct A { A(); }; struct B : A { A a; }; struct C : B { }; C c;
google
chromium
copyprop-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/tree-ssa/copyprop-1.C
707
utf_8
ecdf17353c8c33ddb7df3f626a6f05c0
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-dce2" } */ /* Verify that we can eliminate the useless conversions to/from const qualified pointer types this_2 = o_1; D.20003_4 = this_2->data_m; this_5 = D.20003_4; D.20005_6 = this_5->value; copyprop should propagate o_1 and D.20003_4 to the loads of data_m and value. dce removes all traces of this. */ struct Data { int get() const { return value; } int value; }; struct Object { int operator[](int i) const { return data_m->get(); } Data *data_m; }; int foo(Object&o) { return o[0]; } /* { dg-final { scan-tree-dump-not ".* = \[^>;\]*;" "dce2" } } */ /* { dg-final { cleanup-tree-dump "dce2" } } */
google
chromium
pr27549
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr27549.C
1,227
utf_8
138bf4b8fc93ed1de3f26ccb4d22af31
// PR tree-optimization/27549 // { dg-do compile } // { dg-options "-O2" } typedef __SIZE_TYPE__ size_t; struct E { virtual ~E () {} virtual size_t e () const = 0; virtual void f (char *x) const = 0; }; struct F : public E { virtual ~F () {} virtual size_t e () const { return 0; } virtual void f (char *x) const { *x = '\0'; } }; struct S { S () { a = new char[32]; b = 32; c = 0; a[0] = 0; } void s (const char *x, size_t y) { v (c + y + 1); __builtin_memcpy(a + c, x, y); c += y; a[c] = '\0'; } void s (const E *x) { size_t l = x->e(); v (c + l + 1); x->f (a + c); c += l; } const char *t () { return a; } void v (size_t n) { if (b >= n) return; size_t b2 = b; char *a2 = a; for (;;) { b *= 2; if (b >= n) break; } a = new char[b]; if (b2) { __builtin_memcpy(a, a2, c); a2[0] = 0; for (size_t i = 1; i < b2; i++) a2[i] = a2[i - 1]; delete[] a2; } } ~S () { if (b) { a[0] = 0; for (size_t i = 1; i < b; i++) a[i] = a[i - 1]; } delete[] a; } char * a; size_t b, c; }; const char *p; size_t q; const F u; const char * foo () { S s; s.s (p, q); s.s (&u); return s.t (); }
google
chromium
pr24238
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/tree-ssa/pr24238.C
224
utf_8
2c3a0f58b5c4d9910b46c690b81523e9
/* { dg-do compile } */ /* { dg-options "-O2" } */ typedef struct SDL_Rect { unsigned short w, h; }SDL_Rect; SDL_Rect *location(); SDL_Rect inner_location() { SDL_Rect r = *location(); r.w -= 1; return r; }
google
chromium
unexpected1_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/unexpected1_y.C
176
utf_8
90f47340dedf3ae882911092f359c348
struct One { }; struct Two { }; void handle_unexpected () { try { throw; } catch (One &) { throw Two (); } } void doit () throw (Two) { throw One (); }
google
chromium
ctor2_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor2_main.C
273
utf_8
7713c99be0210f9b2e363d5de46782ac
// PR c++/4460 // Test that the cleanup for fully-constructed subobjects when a // constructor throws gets the right address for a virtual base. // Split into pieces for binary compatibility testing October 2002 extern void ctor2_x (void); int main () { ctor2_x (); }
google
chromium
ctor1_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor1_main.C
269
utf_8
74d8ae87a4aa4945c36db0894fcdbc87
// PR 411 // Split into pieces for binary compatibility testing October 2002 extern void ctor1_x (void); int main () { ctor1_x (); }
google
chromium
nrv1_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/nrv1_x.C
244
utf_8
e9b38e15c3e28368fa741de9b55c0651
extern "C" void exit (int); extern "C" void abort (void); #include "nrv1.h" extern A f (void); int c, d; void nrv1_x () { try { A a = f(); } catch (...) { } if (d < c) abort (); exit (0); } A::A() { ++c; } A::~A() { ++d; }
google
chromium
template1_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/template1_main.C
252
utf_8
bcdcff6986bfc8964bcdb7735b5f4204
// Test whether exception specifier dependent on template parameter // is accepted during template decl processing. // Split into pieces for binary compatibility testing October 2002 extern void template1_x (void); int main () { template1_x (); }
google
chromium
spec3_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/spec3_x.C
115
utf_8
cf5c2475c71752fe4fdfa22840b5e2d0
#include "spec3.h" extern void func () throw (B,A); void spec3_x (void) { try { func(); } catch (A& a) { } }
google
chromium
dtor1_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/dtor1_y.C
155
utf_8
387901206dc245414a4deeecde9f8323
extern int r; int ad; #include "dtor1.h" A::~A () { ++ad; } B::~B () try { throw 1; } catch (...) { if (!ad) r = 1; return; }
google
chromium
new1_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/new1_main.C
250
utf_8
38e1dfdb58be8ee752ace0ded7df8d8f
// PR c++/5757 // Test that when a constructor throws in a new-expression, we pass the // right pointer to operator delete. // Split into pieces for binary compatibility testing October 2002 extern void new1_x (void); int main () { new1_x (); }
google
chromium
spec3_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/spec3_y.C
72
utf_8
508954403be93157fb5a4d1acac0da9a
#include "spec3.h" A::A() {} void func() throw (B,A) { throw A(); }
google
chromium
dtor1_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/dtor1_x.C
158
utf_8
f1c6d9efd6c764f87b1c7f64adfdc065
extern "C" void exit (int); extern "C" void abort (void); #include "dtor1.h" int r; void dtor1_x () { { B b; } if (r != 0) abort (); exit (0); }
google
chromium
filter1_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter1_y.C
143
utf_8
59795c3025478139a06e32e485657745
#include "filter1.h" struct e1 {}; struct e2 {}; void ex_test () { a aa; try { throw e1 (); } catch (e2 &) { } }
google
chromium
unexpected1_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/unexpected1_x.C
314
utf_8
44115c4623ba7f70d9a798029cdb996d
#include <exception> struct One { }; struct Two { }; extern "C" void abort (); extern void doit (void) throw (Two); extern void handle_unexpected (void); void unexpected1_x () { std::set_unexpected (handle_unexpected); try { doit (); } catch (Two &) { } catch (...) { abort (); } }
google
chromium
template1_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/template1_x.C
257
utf_8
cc55eca6c7503bffbb9c4c730b4fbc32
extern "C" void exit (int); extern "C" void abort (void); #include "template1.h" void template1_x () { int caught = 0; try { C<int> x; x.f(); } catch (A) { ++caught; } if (caught != 1) abort (); exit (0); }
google
chromium
ctor2_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor2_y.C
191
utf_8
0f35be1d041aff390ee492433aa2d4e2
extern int r; void *p; #include "ctor2.h" VBase::VBase () { p = this; } VBase::~VBase () { if (p != this) r = 1; } Stream::Stream () {} DerivedStream::DerivedStream () { throw 1; }
google
chromium
new1_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/new1_y.C
268
utf_8
92b09e498a208e31dde6df42c466c11a
#include <new> #include <cstddef> extern int ret; void *ptr; void * operator new[] (std::size_t s) throw (std::bad_alloc) { ptr = operator new (s); return ptr; } void operator delete[] (void *p) throw () { if (p == ptr) ret = 0; operator delete (p); }
google
chromium
unexpected1_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/unexpected1_main.C
209
utf_8
63e2df9df15791b47fb2317e1cda976a
// PR 3719 // Test that an unexpected handler can rethrow to categorize. // Split into pieces for binary compatibility testing October 2002 extern void unexpected1_x (); int main () { unexpected1_x (); }
google
chromium
ctor1_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor1_x.C
258
utf_8
5919ecfa4fa000ff8d0708eff1caafd0
extern "C" void abort (void); extern "C" void exit (int); #include "ctor1.h" bool was_f_in_Bar_destroyed=false; void ctor1_x () { try { Bar f; } catch(int i) { if(was_f_in_Bar_destroyed) { exit (0); } } abort (); }
google
chromium
spec3_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/spec3_main.C
218
utf_8
2a11bf025313b31a8e5c6f3a43e6e1cc
// PR c++/4381 // Test that exception-specs work properly for classes with virtual bases. // Split into pieces for binary compatibility testing October 2002 extern void spec3_x (void); int main () { spec3_x (); }
google
chromium
filter2_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter2_main.C
276
utf_8
f858c620725c1fa9e60d5f73d3262345
// Test that terminate gets run when a catch filter fails to match while // running destructors. Original bug depended on a::~a being inlined. // Split into pieces for binary compatibility testing October 2002 extern void filter2_x (void); int main () { filter2_x (); }
google
chromium
dtor1_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/dtor1_main.C
265
utf_8
be684e295c4596152951b27d97ac5230
// PR c++/411 // Test that a fully-constructed base is destroyed before transferring // control to the handler of a function-try-block. // Split into pieces for binary compatibility testing October 2002 extern void dtor1_x (void); int main () { dtor1_x (); }
google
chromium
new1_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/new1_x.C
391
utf_8
776feefd2e68940a9d16fef92f39fbbf
#include <new> #include <cstddef> extern "C" void exit (int); extern "C" void abort (void); extern void * operator new[] (std::size_t s) throw (std::bad_alloc); extern void operator delete[] (void *p) throw (); struct A { A() { throw 1; } ~A() {} }; int ret = 1; void new1_x () { try { A *p = new A[4]; } catch (...) {} if (ret != 0) abort (); exit (0); }
google
chromium
filter1_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter1_main.C
198
utf_8
9c2ea2f2cc5e5b2283f45eeade96358c
// Test that cleanups get run when a catch filter fails to match. // Split into pieces for binary compatibility testing October 2002 extern void filter1_x (void); int main () { filter1_x (); }
google
chromium
nrv1_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/nrv1_y.C
64
utf_8
ae8c6219513721a4472dc1c7400e69e3
#include "nrv1.h" A f() { A nrv; throw 42; return nrv; }
google
chromium
ctor1_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor1_y.C
132
utf_8
8c5d823170add04b31bf51767cad9e69
extern bool was_f_in_Bar_destroyed; #include "ctor1.h" Foo::~Foo() { was_f_in_Bar_destroyed=true; } Bar::~Bar() { throw 1; }
google
chromium
filter2_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter2_x.C
268
utf_8
93ea6392a008bc4ab584a68bd3d08d74
#include <exception> #include <cstdlib> extern "C" void abort (void); extern void my_terminate (void); extern void ex_test (void); void filter2_x () { std::set_terminate (my_terminate); try { ex_test (); } catch (...) { } abort (); }
google
chromium
nrv1_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/nrv1_main.C
214
utf_8
4b1db86bc09112a3c5dcadf8c1f37ed2
// PR c++/5636 // Bug: the named return value optimization interfered with EH cleanups. // Split into pieces for binary compatibility testing October 2002 extern void nrv1_x (void); int main () { nrv1_x (); }
google
chromium
filter2_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter2_y.C
315
utf_8
66042eba77dd6fd0a616acfa398dac38
#include <exception> #include <cstdlib> struct e1 {}; struct e2 {}; struct a { a () { } ~a () { try { throw e1(); } catch (e2 &) { } } }; void ex_test () { a aa; try { throw e1 (); } catch (e2 &) { } } void my_terminate () { std::exit (0); }
google
chromium
filter1_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/filter1_x.C
239
utf_8
790ecc4df54d29594a1afbcd3eb446cc
#include "filter1.h" extern "C" void exit (int); extern "C" void abort (void); extern void ex_test (void); void filter1_x () { try { ex_test (); } catch (...) { } abort (); } a::a() { } a::~a() { exit (0); }
google
chromium
template1_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/template1_y.C
113
utf_8
afd58e33c0f82e6f79a20b57f3d3d543
#include "template1.h" template<class T> void C<T>::f (void) throw (E) { throw E(); } template class C<int>;
google
chromium
ctor2_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/eh/ctor2_x.C
211
utf_8
dc791f03d52ef00f1ce479d2884f1c7a
extern "C" void exit (int); extern "C" void abort (void); #include "ctor2.h" int r; void ctor2_x () { try { DerivedStream str; } catch (...) { } if (r != 0) abort (); exit (0); }
google
chromium
bitfield5_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/bitfield5_x.C
131
utf_8
34a963a4f73f5fc81a2a3c61cb1410b4
#include "bitfield5.h" extern void bitfield5_y (B&); void bitfield5_x () { B b; b.f3 = 7; b.f4 = 3; bitfield5_y (b); }
google
chromium
vbase11_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase11_main.C
265
utf_8
c066ba2e23a50eda1497704cad37719c
// Test case from PR 7470, which was fixed in GCC 3.2 and breaks binary // compatibility with earlier releases. // Split into pieces for binary compatibility testing October 2002 #include "vbase11.h" extern void vbase11_x (void); int main () { vbase11_x (); }
google
chromium
vbase11_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase11_x.C
207
utf_8
cc9fd160c8ac0d554f08ed78757c1ad7
#include "vbase11.h" extern void vbase11_y (derived&); int base::foo() { return 1; } int derived::foo() { return 2; } int derived::bar() { return 3; } void vbase11_x () { derived d; vbase11_y (d); }
google
chromium
bitfield5_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/bitfield5_y.C
162
utf_8
2196094f95b60e3fda05e05cb6c118dc
extern "C" void abort (void); #include "bitfield5.h" void A::f () {} void bitfield5_y (B& b) { if (b.f3 != 7) abort (); if (b.f4 != 3) abort (); }
google
chromium
vbase11_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase11_y.C
153
utf_8
3af15235a86640de95ef01c264b9a669
extern "C" void abort (void); #include "vbase11.h" void vbase11_y (derived& d) { if (d.foo() != 2) abort (); if (d.bar() != 3) abort (); }
google
chromium
bitfield7_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/bitfield7_main.C
331
utf_8
3adf0f3ae7b5d18709b473c700c9b7de
// { dg-options "-w" } // The size assigned to `U' may not be ABI-compliant and may change in a // future version of GCC. // g++.dg/abi/bitfield7.C tests this with -Wabi. // Split into pieces for binary compatibility testing October 2002 #include "bitfield7.h" extern void bitfield7_x (void); int main () { bitfield7_x (); }
google
chromium
empty6_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/empty6_y.C
107
utf_8
9139a94c7c61f08caac60d3e5373225c
extern "C" void abort (void); #include "empty6.h" void empty6_y (B& b) { if (b.i != 7) abort (); }
google
chromium
vbase10_main
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase10_main.C
301
utf_8
1852532669c2a43c5f27b2cec9330074
// The offset of virtual base `B' is not ABI-compliant and may change in // a future version of GCC. // g++.dg/abi/vbase10.C tests this with -Wabi. // Split into pieces for binary compatibility testing October 2002 #include "vbase10.h" extern void vbase10_x (void); int main () { vbase10_x (); }
google
chromium
vbase10_x
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/vbase10_x.C
123
utf_8
993931cd04d51720241622319a10d2d3
#include "vbase10.h" extern void vbase10_y (C&); void vbase10_x () { C c; c.c1 = 1; c.c2 = 2; }
google
chromium
bitfield7_y
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/compat/break/bitfield7_y.C
173
utf_8
4ede7e52302abff4458b036d89c415f5
// { dg-options "-w" } extern "C" void abort (void); #include "bitfield7.h" void bitfield7_y (U* u) { if (u[0].i != 7) abort (); if (u[1].i != 8) abort (); }
google
chromium
bitfield7_x
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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
elide1_y
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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 original and the copy as two // different ways of referring to the same object and not perform a copy // at all, even if the class copy constructor or destructor have side // effects.... In these cases, the // object is destroyed at the later of times when the original and the // copy would have been destroyed without the optimization. // Here, the temporary would be destroyed later than the parm, so either we // must suppress the optimization in this case or destroy value parms in the // caller. // Split into pieces for binary compatibility testing October 2002 extern void elide1_x (void); int main () { elide1_x (); }
google
chromium
array5_main
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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 void check_C8 (C8&, int); extern void check_C9 (C9&, int); void vbase8_10_x (void) { C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; C5 c5; C6 c6; C7 c7; C8 c8; C9 c9; c0.i0 = 0; c1.i1 = 101; c2.i2 = 202; c3.i3 = 303; c4.i4 = 404; c5.i5 = 505; c6.i6 = 606; c7.i7 = 707; c8.i8 = 808; c9.i9 = 909; check_C0 (c0, 0); check_C1 (c1, 101); check_C2 (c2, 202); check_C3 (c3, 303); check_C4 (c4, 404); check_C5 (c5, 505); check_C6 (c6, 606); check_C7 (c7, 707); check_C8 (c8, 808); check_C9 (c9, 909); }
google
chromium
bitfield2_x
.C
native_client/nacl-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/nacl-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 () { if (aligned_x () != aligned_y_avx ()) abort (); return 0; }
google
chromium
vbase8-21_x
.C
native_client/nacl-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 void check_C8 (C8&, int); extern void check_C9 (C9&, int); void vbase8_21_x (void) { C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; C5 c5; C6 c6; C7 c7; C8 c8; C9 c9; c0.i0 = 0; c1.i1 = 101; c2.i2 = 202; c3.i3 = 303; c4.i4 = 404; c5.i5 = 505; c6.i6 = 606; c7.i7 = 707; c8.i8 = 808; c9.i9 = 909; check_C0 (c0, 0); check_C1 (c1, 101); check_C2 (c2, 202); check_C3 (c3, 303); check_C4 (c4, 404); check_C5 (c5, 505); check_C6 (c6, 606); check_C7 (c7, 707); check_C8 (c8, 808); check_C9 (c9, 909); }
google
chromium
vbase8-4_y
.C
native_client/nacl-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) abort (); } void check_C4 (C4 &x, int i) { if (x.i4 != i) abort (); } void check_C5 (C5 &x, int i) { if (x.i5 != i) abort (); } void check_C6 (C6 &x, int i) { if (x.i6 != i) abort (); } void check_C7 (C7 &x, int i) { if (x.i7 != i) abort (); } void check_C8 (C8 &x, int i) { if (x.i8 != i) abort (); } void check_C9 (C9 &x, int i) { if (x.i9 != i) abort (); }
google
chromium
bitfield2_y
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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) abort (); } void check_C4 (C4 &x, int i) { if (x.i4 != i) abort (); } void check_C5 (C5 &x, int i) { if (x.i5 != i) abort (); } void check_C6 (C6 &x, int i) { if (x.i6 != i) abort (); } void check_C7 (C7 &x, int i) { if (x.i7 != i) abort (); } void check_C8 (C8 &x, int i) { if (x.i8 != i) abort (); } void check_C9 (C9 &x, int i) { if (x.i9 != i) abort (); }
google
chromium
vbase8-10_y
.C
native_client/nacl-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) abort (); } void check_C4 (C4 &x, int i) { if (x.i4 != i) abort (); } void check_C5 (C5 &x, int i) { if (x.i5 != i) abort (); } void check_C6 (C6 &x, int i) { if (x.i6 != i) abort (); } void check_C7 (C7 &x, int i) { if (x.i7 != i) abort (); } void check_C8 (C8 &x, int i) { if (x.i8 != i) abort (); } void check_C9 (C9 &x, int i) { if (x.i9 != i) abort (); }
google
chromium
vbase8-21_main
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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) abort (); } void check_C4 (C4 &x, int i) { if (x.i4 != i) abort (); } void check_C5 (C5 &x, int i) { if (x.i5 != i) abort (); } void check_C6 (C6 &x, int i) { if (x.i6 != i) abort (); } void check_C7 (C7 &x, int i) { if (x.i7 != i) abort (); } void check_C8 (C8 &x, int i) { if (x.i8 != i) abort (); } void check_C9 (C9 &x, int i) { if (x.i9 != i) abort (); }
google
chromium
bitfield1_main
.C
native_client/nacl-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/nacl-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 check_C8 (C8&, int); extern void check_C9 (C9&, int); void vbase8_4_x (void) { C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; C5 c5; C6 c6; C7 c7; C8 c8; C9 c9; c0.i0 = 0; c1.i1 = 101; c2.i2 = 202; c3.i3 = 303; c4.i4 = 404; c5.i5 = 505; c6.i6 = 606; c7.i7 = 707; c8.i8 = 808; c9.i9 = 909; check_C0 (c0, 0); check_C1 (c1, 101); check_C2 (c2, 202); check_C3 (c3, 303); check_C4 (c4, 404); check_C5 (c5, 505); check_C6 (c6, 606); check_C7 (c7, 707); check_C8 (c8, 808); check_C9 (c9, 909); }
google
chromium
vbase8-22_x
.C
native_client/nacl-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 void check_C8 (C8&, int); extern void check_C9 (C9&, int); void vbase8_22_x (void) { C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; C5 c5; C6 c6; C7 c7; C8 c8; C9 c9; c0.i0 = 0; c1.i1 = 101; c2.i2 = 202; c3.i3 = 303; c4.i4 = 404; c5.i5 = 505; c6.i6 = 606; c7.i7 = 707; c8.i8 = 808; c9.i9 = 909; check_C0 (c0, 0); check_C1 (c1, 101); check_C2 (c2, 202); check_C3 (c3, 303); check_C4 (c4, 404); check_C5 (c5, 505); check_C6 (c6, 606); check_C7 (c7, 707); check_C8 (c8, 808); check_C9 (c9, 909); }
google
chromium
pr31437
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/cpp0x/pr31437.C
219
utf_8
bbe77135b23cc817a99c122314b3009a
// { 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" }
google
chromium
enum4
.C
native_client/nacl-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
variadic53
.C
native_client/nacl-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> typename F::result_type bound_functor<F, BoundArgs...>::operator()(Args&... args) { }
google
chromium
fntmpdefarg1
.C
native_client/nacl-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
variadic60
.C
native_client/nacl-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/nacl-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 "explicit" } new A({1,2}); // { dg-error "explicit" } f({1,2}); // { dg-error "explicit" } a1 = {1,2}; // { dg-error "explicit" } if (A a4 = {1,2}); // { dg-error "explicit" } return {1,2}; // { dg-error "explicit" } } struct B { A a; B(): a{1,2} {} B(const B&): a({1,2}) {} // { dg-error "explicit" } };
google
chromium
initlist26
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/cpp0x/initlist26.C
156
utf_8
e6ae5a0447762ea6cf21de070d7028bc
// PR c++/42059 // { dg-do compile } // { dg-options "-std=gnu++0x" } void foo (int i) { int a[i]; a = { }; // { dg-error "may not be initialized" } }
google
chromium
variadic47
.C
native_client/nacl-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
decltype1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/cpp0x/decltype1.C
697
utf_8
efbba0a91471acb4d5e7746ec12f312c
// { 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_same<decltype(foo()), const int&>::value, "type should be const int&"); static_assert(is_same<decltype(i), int>::value, "type should be int"); static_assert(is_same<decltype(a->x), double>::value, "type should be double"); static_assert(is_same<decltype((a->x)), const double&>::value, "type should be const double&");
google
chromium
temp_default1
.C
native_client/nacl-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 instantiated with an int"); } template<typename T = int, typename U> void f(U) { static_assert(is_same<T, int>::value, "T can only be instantiated with an int"); } void g() { float pi = 3.14159; f(); f(pi); }
google
chromium
pr31431-2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/cpp0x/pr31431-2.C
156
utf_8
4b7b15a8e47bad61dec453995963456d
// { dg-options "-std=gnu++0x" } template<typename, typename..., typename> void foo(); void bar() { foo<int>(); // { dg-error "no matching function" } }