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
default7
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/default7.C
353
utf_8
81914af5da2aba583c08c504b718391e
/* { dg-do assemble } */ /* { dg-options "-O1" }*/ // This was PR C++/31165 // We used to copy the whole decl when we just wantted to // unshare some expressions for the default argument. class string { char *ptr; int len; int sz; }; class cset { } _cset_init; string an_empty_string; void f(string& = an_empty_st...
google
chromium
mmintrin
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/mmintrin.C
102
utf_8
688ada87fb447bcc4f314e612d65b84b
// { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-options "-msse" } #include <xmmintrin.h>
google
chromium
error11
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error11.C
161
utf_8
3c4bc8f8209191a16ce6898de421c3a9
/* { dg-options "-O1" } */ struct A { ERROR; /* { dg-error "ERROR" } */ ~A(); }; struct B { virtual ~B(); }; struct C : B, A {}; struct D : C {}; D d;
google
chromium
ptrmem7
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/ptrmem7.C
89
utf_8
c7156668bb679049e5e609b54bbffecb
// PR c++/27447 // { dg-do compile } void (A::* p)(); // { dg-error "declared|token" }
google
chromium
switch1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/switch1.C
308
utf_8
6312bd4cf43fd17e803778af8b1f2031
// { dg-do compile } // Contributed by: Nick Savoiu <savoiu at ics dot uci dot edu> // PR c++/14250: Incomplete type in switch statement template <typename T> struct A { operator int(); }; struct C1 { static A<void> t1; void fun() { switch(t1) { default: break; } } };
google
chromium
incomplete1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/incomplete1.C
208
utf_8
cc1ca2bf9b477d018fa43d900031841d
// PR c++/23089 // ICE on incomplete type // { dg-do compile } // { dg-options "-O" } void foo(struct A) {} // { dg-error "incomplete type|forward declaration" }
google
chromium
crash-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/crash-1.C
69
utf_8
e7de4fdd2efa00c9e16713dbef6623d4
void f() { return 0; } // { dg-error "return-statement" }
google
chromium
cxa-atexit1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/cxa-atexit1.C
386
utf_8
5276b8901edfb83acb63fdaaaaa072fe
// { dg-do compile } // { dg-options "-O2 -fuse-cxa-atexit" } # 1 "cxa-atexit1.C" struct A { struct B { B (); ~B (); }; }; static A::B b; # 1 "cxa-atexit1.h" 1 #pragma interface template <class T> struct C { ~C (void); }; struct D : public C<bool> { D (void) : C<bool> () { } }; # 55 "cxa-atexit1.C" 2...
google
chromium
nontype-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/nontype-1.C
196
utf_8
36156b7bb0f0bbac69e3b368b3b7bb86
template <class Op> bool asfun(Op f, Op::first_argument_type a, // { dg-error "not a type" } Op::second_argument_type b) // { dg-error "not a type" } { return Op(a, b); }
google
chromium
pr33601
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr33601.C
111
utf_8
47c3e5b8844cd1d867dcffd6b821201f
struct A { int membervar; }; typedef const A type; int type::* getmemberptr() { return &type::membervar; }
google
chromium
error21
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error21.C
99
utf_8
a2be38215425d44d563961ccb735829a
// PR c++/34273 struct A {}; struct B : A { B() : A()... {} // { dg-error "cannot expand" } };
google
chromium
unreachable1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/unreachable1.C
207
utf_8
5c2adc76f21ce8f7182fe1930db8db73
// PR middle-end/17827 // { dg-do compile } void foo() { if (false) if (int i=0) int j=i; }
google
chromium
var_copy-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/var_copy-1.C
183
utf_8
48e6c51fcf67034346e0b186aada3bc1
// { dg-options "-std=c++0x" } // { dg-do compile } // Test to allow for va_copy with C++0x standard. #include <cstdarg> va_list x; va_list y; int main () { va_copy (y, x); }
google
chromium
offsetof4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/offsetof4.C
380
utf_8
a23d17ae20fd87361daea5c89ea2bf18
/* { dg-do compile } */ /* { dg-options "-Wno-invalid-offsetof" } */ struct X { X() : x(3), y(4) { } int x, y; }; typedef X* pX; typedef __SIZE_TYPE__ size_t; size_t yoff = size_t(&(pX(0)->y));
google
chromium
typedef2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/typedef2.C
88
utf_8
2ae83dd33030d45c71b8674e327b61aa
typedef void fn() const; fn* fp; // { dg-error "pointer.*qualified function type" }
google
chromium
linkage1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/linkage1.C
312
utf_8
b00a3ef2f2c7c47e551480d60abbc84f
// { dg-do compile } // PR 51 // This example snippet is from the ISO C++ standard, sect 7.5 para 4: extern "C" typedef void FUNC_c(); class C { public: static FUNC_c* q; };
google
chromium
error16
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error16.C
214
utf_8
a3f17494f8e1b20ef3cdd8667b5a3fbc
// PR c++/17763 template <typename U> struct Outer { struct Inner {}; Inner foo(); }; typedef int X; typedef Outer<X> XOuter; int main() { Outer<int> ab; ab.foo() == 1; // { dg-error "ab.Outer" } }
google
chromium
PR23205
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/PR23205.C
401
utf_8
3b11ebb7da314a22bc402f4feb6a5f05
/* { dg-do compile } */ /* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks } { "*" } { "" } } */ /* { dg-options "-gstabs+ -fno-eliminate-unused-debug-types" } */ const int foobar = 4; int foo () { return foobar + 1; } int main() { int i; i = foo(); ...
google
chromium
const3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/const3.C
529
utf_8
0f31e772471912bf15f7b8f02c2177e6
// PR middle-end/44101 // { dg-do compile } extern bool equal (int[], int[], const int[]); extern bool equal (wchar_t[], wchar_t[], const wchar_t[]); void foo(void) { const int A1[] = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3}; const int N1 = sizeof(A1) / sizeof(int); int i1[N1]; if (equal(i1, i1 + N1, A1)) return; ...
google
chromium
access1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/access1.C
418
utf_8
1952aeb9951f8c72a9b8ee8487e2991b
// { dg-do compile } // PR c++/5659. Failed to notice default accessed changed class Foo; struct Foo { static int m; }; class Outer { private: class Inner; Inner *i; public: void pub(); }; struct Outer::Inner { Inner(int i); }; void Outer::pub() { i = new Inner(Foo::m); }
google
chromium
pr22358
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr22358.C
88
utf_8
57901344b69ec7b216bf1128cc5a7242
/* { dg-do compile } */ struct a { virtual ~a(); }; struct b : virtual a { }; b a11;
google
chromium
operator2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/operator2.C
150
utf_8
971cefc8317fd5a29f53da37b1dbb6d6
// PR c++/28852 // { do-do compile } struct A { operator int&(int); // { dg-error "void" } }; A a; int& i = a; // { dg-error "initialization" }
google
chromium
crash-5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/crash-5.C
279
utf_8
56e3643ee857c666d2b01a4499a8c7d4
// Origin: PR c++/42758 // { dg-do compile } template<class T> struct less {}; template<class T, typename U = less<T> > struct set {}; struct int_less_than {}; void assert_fail (const char*); int f(const set<int, int_less_than>&) { assert_fail (__PRETTY_FUNCTION__); }
google
chromium
virtual1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/virtual1.C
103
utf_8
a6a9e2f5bcb753435ad581ee25ed4d6b
// PR c++/26070 // { dg-do compile } struct A { virtual static int i; // { dg-error "virtual" } };
google
chromium
pr38706
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr38706.C
231
utf_8
e7318945c51d3bbaf1fa1d922b1661f3
// PR target/38706 // { dg-do compile } // { dg-options "-O2" } class ios_base { public: virtual ~ios_base (); }; class istrstream:virtual public ios_base { public: virtual ~istrstream (); }; istrstream::~istrstream () {}
google
chromium
copy1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/copy1.C
877
utf_8
05e8006d99bfbd53319ecd928c0724ca
// { dg-do run } // PR 87 int assign = 0; int ctor = 0; int assignC = 0; struct A { int i; template<class T> void operator=(const T&) const { assign = 1; } A () : i (0) {} template <typename T> A (const T &) { ctor = 1; } }; struct B : A { }; struct C { int i; C (int i_) :i (i_) {} ...
google
chromium
complex1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/complex1.C
404
utf_8
b0eb29945f04721ade114ff6651768e8
// PR middle-end/18882 // { dg-do run } // { dg-options "" } extern "C" void abort (); struct C { __complex__ long double c; }; void foo() { C x = {2+2i}; int n = 1; if (__imag__ y.c != 2) abort (); } int main(void) { foo (); return 0; }
google
chromium
stdarg2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/stdarg2.C
211
utf_8
6678e40619d5043af4bec1849f7634ae
// PR c++/11929 // Bug: We were complaining about the call to va_start because o is of // non-POD type. struct s { s(int); }; void test(s o, ...) { __builtin_va_list varg; __builtin_va_start(varg, o); }
google
chromium
default5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/default5.C
1,345
utf_8
23e4a50d8284cac3914a1d063bc08c82
// PR c++/28274 // { dg-do compile } void f1(int, int, int, int, int = 0); void f1(int, int, int, int = 0, int); void f1(int, int, int = 0, int, int); void f1(int = 0, int, int, int, int); // { dg-error "default" } void f2(int, int, int, int, int = 0) {} void f2(int, int, int, int = 0, int); void f2(int, int, int ...
google
chromium
nested-extern-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/nested-extern-2.C
254
utf_8
2d4374350b7c46b467d19f44539be761
/* { dg-do run } */ // { dg-additional-sources "nested-extern.cc" } /* PR 31775 */ extern "C" void abort(); static int i; int *p = &i; int main() { int i; { extern int i; i = 1; *p = 2; if (i == 2) abort (); } return 0; }
google
chromium
error27
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error27.C
613
utf_8
147fa7e0ee5ec6d7d66166f8e2b74c62
// PR c++/35332 // { dg-do compile } // { dg-options "-fno-finite-math-only" { target sh*-*-* } } void foo (double x, double y) { __builtin_isgreater(x, y)(); // { dg-error "cannot be used as a function" } __builtin_isless(x, y)(); // { dg-error "cannot be used as a function" } __builtin_isgreaterequal(x, y)()...
google
chromium
error22
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error22.C
143
utf_8
c9a1c84378c02c61b6ede3fb15773426
// PR c++/34394 // { dg-do compile } extern "C" double fabs (double); void foo (double x) { fabs (x) (); // { dg-error "__builtin_abs" } }
google
chromium
crash-8
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/crash-8.C
2,585
utf_8
c55f3be4a11adddcecaeeaf7d0aa26c7
// Origin: PR c++/42797 // { dg-options "-g -O2 -std=c++0x" } template<typename _Tp, _Tp __v> struct integral_constant { static const _Tp value = __v; }; template<typename _Tp> _Tp declval(); template<typename _Tp, typename... _Args> class __is_constructible_helper { }; template<typename _Tp, typen...
google
chromium
i386-4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/i386-4.C
939
utf_8
a4ad4c2cb3c1448496351241a77aedb7
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O1 -msse2" } */ #include <xmmintrin.h> void ConvertFloatSSE (void *inBuff, void *outBuff, int len) { unsigned char *inByteBuffer = reinterpret_cast < unsigned char *>(inBuff); float *outFloatBuffer = reinterpret_cast < float *>(outBuff); ...
google
chromium
ptrmem4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/ptrmem4.C
296
utf_8
76b8bc4328319b30e522cbc6e57ff4ed
// Bug: This checks that the pointer-to-member-function type is not // shared between differently-qualified pointer-to-method types. // { dg-do compile } struct A { void f () {} }; void (A::*const cp)() = &A::f; int main () { void (A::* p)(); void (A::** ip)() = &p; *ip = &A::f; }
google
chromium
builtin1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/builtin1.C
119
utf_8
4576cbaaf099a0140a4b7488cb4d9c9f
/* { dg-do compile } */ void foo() { __builtin_isless (foo, 0); /* { dg-error "non-floating-point arguments" } */ }
google
chromium
array3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/array3.C
334
utf_8
ed092dce3c46c4eb9fe96b8e2be6750c
// PR C++/28906: new on an array causes incomplete arrays to // become complete with the wrong size. // the bounds of xvalue_store was being set to include want // which was incorrect. // { dg-do compile } extern unsigned char xvalue_store[]; bool reserve (int want) { new unsigned char[want]; } unsigned char xvalu...
google
chromium
array4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/array4.C
356
utf_8
4fc58d9ff176effcac170e54d3144031
// PR C++/28906: new on an array causes incomplete arrays to // become complete with the wrong size. // The sizeof machineMain should be 5 and not 100. // { dg-do run } extern char machineMain[]; void sort (long len) { new char[100]; } char machineMain[] = "main"; int main(void) { if (sizeof(machineMain)!=sizeof(...
google
chromium
pr40446
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr40446.C
587
utf_8
7a396754c07c42c3d37a44d7027e240e
// PR middle-end/40446 // { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-options "-O1 -msse2" } // { dg-require-effective-target sse2_runtime } #include <emmintrin.h> extern "C" void abort (); struct S { S (double r, double i) { __real__ s = r; __imag__ s = i; } __complex__ double s; }; __m128d foo () { ...
google
chromium
default2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/default2.C
141
utf_8
0f56dd600fd360a08d419090d5c539f4
// PR c++/16829 // { dg-do compile } template<typename T> void foo(T, int = 0, int) {} // { dg-error "default" } void bar() { foo(0); }
google
chromium
pr28114
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr28114.C
237
utf_8
2435e2f760bdeb127d94ca3e33e5f948
// Test to make sure we do not ICE on this invalid program. template<int> void foo(struct {}*); // { dg-message "" } void bar() { foo<0>(0); // { dg-error "" } // { dg-message "candidate" "candidate note" { target *-*-* } 8 } }
google
chromium
bitfield3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/bitfield3.C
374
utf_8
3fa385490ab4811d37b5716af91e8f6c
// PR c++/33841 // { dg-do compile } template<int> struct A { // multiple errors below: missing semicolon, no anonymous structs, etc. struct {} : 2; // { dg-error "" } }; template<int> struct B { int a; // multiple errors below: missing semicolon, no anonymous structs, etc. struct {} : 2; // { dg-error "" }...
google
chromium
vthunk1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/vthunk1.C
413
utf_8
bbbc42226f302577b317dbefbed13e8a
// PR c++/12007 Multiple inheritance float pass by value fails // { dg-do run } extern "C" void abort (void); class gvImpl { public: virtual void PutVal(float value){} }; class foo { public: virtual void Bar(){} }; class myGv: public foo, public gvImpl { void PutVal(float value){ if (value != 3.14159f) abort ()...
google
chromium
opaque-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/opaque-1.C
490
utf_8
d0fbce91ceffe38611bd7fe05b72ac2b
/* { dg-do run } */ /* { dg-options "-mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single" } */ /* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */ #define __vector __attribute__((vector_size(8))) typedef float __vector __ev64_fs__; __ev64_fs__ f; __ev64_opaque__ o; int here = 0; void bar (_...
google
chromium
pr47218
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr47218.C
264
utf_8
8ee321658b43efdf859ab4bbaff00026
/* { dg-do link } */ /* { dg-options "-save-temps" } */ /* { dg-additional-sources "pr47218-1.C" } */ #include "pr47218.h" Foo3::~Foo3 () { ((FooBaseBase1*)this)->Bar(); } void Foo3::Bar() { } int main () { return 0; } // { dg-final cleanup-saved-temps }
google
chromium
error30
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error30.C
205
utf_8
197cf0c2a0b5a9515fb727c846451d1e
// PR c++/35336 // { dg-do compile } // { dg-bogus "not supported by" "" { target *-*-* } 0 } struct A { int i : 2; }; void foo (bool b) { A a; (a.i || b) (); // { dg-error "cannot be used as" } }
google
chromium
error9
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error9.C
395
utf_8
b92370a23a79c9c243e1e6ba7329b0a7
// { dg-options -Wall } // Bug 17681: bad diagnostic text. struct A { }; struct B { }; struct C : public B, public A { C () // { dg-warning "when initialized" "" } : A(), B() // { dg-warning "base .\[AB\]." "" } { } };
google
chromium
conversion1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/conversion1.C
302
utf_8
cfdc2115d36008e199bda75a789e43e3
// PR C++/2213 // { dg-do compile } class QObject { }; int main() { long long m; (void (QObject::*)()) m; // { dg-error "invalid cast" "" } }
google
chromium
crash-6
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/crash-6.C
738
utf_8
8cd01078d5d9707f1bb6d42c9436e2c7
// Origin: PR c++/42634 // { dg-options "-g -std=c++0x" } // { dg-do compile } template<typename T> T declval(); template<typename T, typename... Args> struct is_constructible { template<typename T1, typename... Args1> static decltype(T1(declval<Args1>()...), char()) test(); static const bool value = sizeof(t...
google
chromium
const1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/const1.C
344
utf_8
cf0cdff2ec717c636d8a5441b2399c4a
// { dg-do compile } // PR 335. Missed diagnostic struct Foo { unsigned i; void Modify(unsigned j) const; }; void Foo::Modify(unsigned j) const { Foo::i = j; // { dg-error "assignment of member" "" } }
google
chromium
error18
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error18.C
104
utf_8
84a55a87245872ea0216ae776aa0a62e
// PR c++/33208 struct A { bool b; }; void f(A a) { a.b--; // { dg-error "Boolean expression" } }
google
chromium
cv_func2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/cv_func2.C
294
utf_8
8304bda23e267a56d0383026bd73cc8c
typedef int ptr1() const; // no error void foo () { typedef int ptr2() const; // no error } class C { typedef int ptr3() const; // error void bar () { typedef int ptr4() const; // no error } }; void wibble () const { } // { dg-error "non-member function" }
google
chromium
error19
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error19.C
100
utf_8
711e0290c8826b0e1a3830f597efd7aa
// PR c++/33495 void foo() { if (({while(true);})) // { dg-error "forbids|<statement>" } ; }
google
chromium
error14
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error14.C
103
utf_8
199a456577f88591ddb34aaf3dc0fce4
//PR c++/26269 void foo() { i; // { dg-error "not declared in this scope" } int i; }
google
chromium
error28
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error28.C
113
utf_8
d91ba71ee2c4033b63d3e9313ca87d20
// PR c++/35987 // { dg-do compile } void foo (char *p) { if (++p = true); // { dg-error "cannot convert" } }
google
chromium
typedef3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/typedef3.C
367
utf_8
d4120067ea2a2f801d8e1d6c528e17e6
// Origin: PR c++/40357 // { dg-do compile } struct XalanCProcessor { typedef enum {eInvalid, eXalanSourceTree, eXercesDOM} ParseOptionType; ParseOptionType getParseOption(void); }; typedef XalanCProcessor::ParseOptionType ParseOptionType; ParseOptionType XalanCProcessor::getParseOption(void) {}
google
chromium
pr28304
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr28304.C
197
utf_8
de07ec93dc9f688d2fe2f33f07228d16
// Test to make sure we do not ICE on this invalid program. struct A {}; template<typename T> void A::foo(T) {} // { dg-error "" } void bar() { A::foo(1); // { dg-error "not a member" } }
google
chromium
label1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/label1.C
78
utf_8
6e292e2bc85eea028b21b0cab55522ad
//PR c++/27820 void foo() { L: L: ; // { dg-error "duplicate label" } }
google
chromium
ctor2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/ctor2.C
245
utf_8
d7844a4cf4cd40841244c6c728405a11
/* { dg-do compile } */ // PR C++/30303 // This used to ICE because we did not return NULL // in grokfndecl when an error happened. class A { int i; }; void foo() { A(); } A::A() {} /* { dg-error "definition of implicitly-declared" } */
google
chromium
redecl2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/redecl2.C
261
utf_8
c27eb56b8466512532ae3a8c1a327a60
// PR c++/17816 // We failed to report duplicate definitions of pure virtual ns. // { dg-do compile } struct S { virtual int foo() = 0; }; int S::foo() { return 0; } // { dg-error "defined here" } int S::foo() { return 0; } // { dg-error "redefinition" }
google
chromium
error24
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error24.C
356
utf_8
c43f0a2b006172a836a80989792a28b6
// PR c++/34965 // { dg-do compile } // { dg-options "-O" } int foo (int); void bar (int i, int j, double k) { foo (i && j) (); // { dg-error "\\(\\(?i != 0\\)? \\&\\& \\(?j != 0\\)?\\)" } foo (!i || !j) (); // { dg-error "\\(\\(?i == 0\\)? \\|\\| \\(?j == 0\\)?\\)" } foo (!i == !j) (); // { dg-error "\\(\\(?i ...
google
chromium
qual1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/qual1.C
129
utf_8
c1ee7e4e5d2dfa36042c3417fffae465
// PR c++/28257 // { dg-do compile } struct A { int i; void foo() { int A::i = i; // { dg-error "qualified" } } };
google
chromium
opaque-3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/opaque-3.C
304
utf_8
2fdec97c9e8b739bdcdbd33ed78c1d4f
/* { dg-do compile } */ /* { dg-options "-mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single" } */ /* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */ __ev64_opaque__ o; #define v __attribute__((vector_size(8))) v unsigned int *p; void m() { o = __builtin_spe_evldd(p, 5); }
google
chromium
error10
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error10.C
263
utf_8
88d04f6dc9cffc294e0323d80ced8da9
// PR c++/21930 // Test case by Volker Reichelt // { dg-do compile } template<int> struct A {}; template<int N> void foo(const A<N> &a) { -A<N>(a); } // { dg-error "\\(\\* & a\\)" "" } void bar() { foo(A<0>()); // { dg-message "required from here" "" } }
google
chromium
anon3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/anon3.C
207
utf_8
ddc1dc6e20da6c7a8449205caab8dc39
// pr c++/15049 // Test that we can declare a global variable whose type is anonymous. // { dg-do compile } enum { a = 3 } x; // { dg-warning "anonymous type" }
google
chromium
anon2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/anon2.C
234
utf_8
25bec11b40119085408d52eaa5b86f6e
// Test that we can have an unnamed struct inside an anonymous union. struct A { union { struct { int i; } foo; }; }; static union { struct { int i; } foo; }; int main () { union { struct { int i; } bar; }; }
google
chromium
error23
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error23.C
220
utf_8
bd477bd638cf9bccaadfa542eff59056
// PR c++/34918 // { dg-do compile } int v __attribute ((vector_size (8))); bool b = !(v - v); // { dg-error "could not convert .\\(__vector.2. int\\)\\{0, 0\\}. from .__vector.2. int. to .bool.|in argument to unary" }
google
chromium
friend3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/friend3.C
224
utf_8
6d1a6598f4b9a25e1ad71a415d80b127
// PR c++/22293 // { dg-do compile } struct A { friend ~A(); // { dg-error "qualified name" } }; struct B { friend ~A(); // { dg-error "qualified name" } };
google
chromium
pragma-re-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pragma-re-2.C
357
utf_8
bdec0c9208af6ee3a9ab1f2c07d3ba19
/* { dg-final { scan-assembler "new_name" } } */ /* { dg-final { scan-assembler-not "old_name" } } */ #ifndef __PRAGMA_REDEFINE_EXTNAME #error #endif extern "C" { struct old_name { int i; }; #pragma redefine_extname old_name new_name int old_name(void); } int foo(void) { return old_name(); }
google
chromium
error15
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error15.C
2,374
utf_8
655371d3b7bbee37aee4c274cd093914
// Test that duplicate function parameters are found in declarations. extern void g0 (int a, int b); extern void g1 (int a, float b); extern void f0 (int a, // { dg-error "previous" } int a); // { dg-error "redefinition" } extern void f1 (int a, // { dg-error "previous" } float a); ...
google
chromium
mult-stor1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/mult-stor1.C
160
utf_8
6b0d71cb40f690a059f35fa91d64ee5f
// PR c++/20646 // { dg-do compile } struct A { extern static int i; // { dg-error "conflicting specifiers" } };
google
chromium
friend2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/friend2.C
378
utf_8
73acd7749bd5e8d5aea359a56c89a202
// { dg-do run } // PR c++/12370 // Wrong code because of the friend declaration template <typename T> struct A { T x; A(T t) : x(t) {} friend A<int> foo (const A<unsigned>&); }; A<int> foo (const A<unsigned>& a) { A<int> res(a.x); return res; } int main() { return foo(A<unsigned>(0)).x; }
google
chromium
do1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/do1.C
265
utf_8
d3370c196d18a12979ef3db733309686
// { dg-do compile } // PR 7640. ICE. void init () { do { } while (0) obj = 0; // { dg-error "expected|not declared" "" } }
google
chromium
offsetof1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/offsetof1.C
311
utf_8
ed6ba93ec64ee88b5ea998354c729e44
// { dg-do compile } // PR c++ 7598, offsetof broke // PR c++ 11072, DR 273's solution is broken #include <cstddef> struct F { char i; char j; }; static int ary[offsetof(F, j)];
google
chromium
pr50464
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr50464.C
4,379
utf_8
36a8c3554403443884b8a9901e71ac7e
// { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-options "-O3 -mxop" } typedef long unsigned int size_t; typedef unsigned long ulong_t; typedef signed long slong_t; template<typename _Iterator> struct iterator_traits { typedef typename _Iterator::reference reference; }; template<type...
google
chromium
bitfield4
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/bitfield4.C
133
utf_8
c11430455dce3502737769495b13d81c
// Origin PR c++/42217 // { dg-do compile } struct A { int : 0; }; A a = A();
google
chromium
error25
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error25.C
128
utf_8
0d6d68d045e0c2ed1b27b9b14ec1b229
// PR c++/35338 // { dg-options "" } int i = 0r; // { dg-error "not supported" } bool b = !0r; // { dg-error "not supported" }
google
chromium
macro-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/macro-1.C
91
utf_8
a9c2bd4786300d7cf805e7ef57335a2c
/* { dg-do compile } */ short array[3] __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)));
google
chromium
void1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/void1.C
329
utf_8
397baf43a702343fe18c8c3822b6de3b
// PR c++/9278 // { dg-do compile } typedef void VOID; int foo(void); int bar(VOID); // { dg-error "type|invalid use" } template<int> int foo(void); template<int> int bar(VOID); // { dg-error "type|invalid use" } struct A { int foo(void); int bar(VOID); // { dg-error "type|invalid u...
google
chromium
error32
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error32.C
157
utf_8
c744ed5aaa2c2c1507e6c50193db38bb
// PR c++/33492 // { dg-options "" } void foo() { if (throw 0) // { dg-error "could not convert .\\<throw-expression\\>. from .void. to .bool." } ; }
google
chromium
i386-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/i386-2.C
515
utf_8
a88d47b1023e2228d49d85468bee027e
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O -pedantic-errors -march=k8 -msse4a -m3dnow -mavx -mavx2 -mfma4 -mxop -maes -mpclmul -mpopcnt -mabm -mlzcnt -mbmi -mbmi2 -mtbm -mlwp -mfsgsbase -mrdrnd -mf16c -mfma" } */ /* Test that {,x,e,p,t,s,w,a,b,i}mmintrin.h, mm3dnow.h, fma4intrin.h, x...
google
chromium
vararg-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/vararg-1.C
447
utf_8
6aa48be6aef2630759f48ff66b6424bd
// C++/15119 // This ICEd in substitute_placeholder_in_expr because it did not // implement the 4 element trees. /* { dg-do compile } */ template<typename T> const T& xmin(const T& a, const T& b); void bar (char *, ...); char const* descs[4]; int main() { int t = 1; char buf[100]; bar( buf...
google
chromium
main1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/main1.C
108
utf_8
7603e3e5185c1b4aaf6b806ea7dc4dee
// PR c++/30021 // { dg-do compile } int main(void,char**); // { dg-error "incomplete type|invalid use" }
google
chromium
pragma-re-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pragma-re-1.C
1,335
utf_8
2b96e0cda3aaa703c284fca6a0dd72c9
/* { dg-final { scan-assembler "bar" } } */ /* { dg-final { scan-assembler-not "foo" } } */ /* { dg-final { scan-assembler "_Z3bazv" } } */ /* { dg-final { scan-assembler-not "baq" } } */ /* { dg-final { scan-assembler "tut" } } */ /* { dg-final { scan-assembler-not "gee" } } */ /* { dg-final { scan-assembler "bang" } ...
google
chromium
pr47218-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr47218-1.C
95
utf_8
e0e06cbf9366681f45c99562c024c9a4
#include "pr47218.h" Foo2::~Foo2 () { ((FooBaseBase1*)this)->Bar(); } void Foo2::Bar() { }
google
chromium
pr28432
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr28432.C
199
utf_8
79811eb6886d2852fdf175ce1b1b1e20
// Test to make sure we do not ICE on this invalid program. // { dg-options "" } struct A {}; void A::foo(); // { dg-error "member function declared in class|outside of class is not definition" }
google
chromium
default3
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/default3.C
3,328
utf_8
076ac51ef7f2cc7d10a4cd083ffb2fe7
// PR c++/16829 // { dg-do compile } void f1(int = 0, int); // { dg-error "default" } void f2(int = 0, int) {} // { dg-error "default" } void f3(int, int); void f3(int = 0, int); // { dg-error "default" } void f4(int, int); void f4(int = 0, int) {} ...
google
chromium
pr33558-2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr33558-2.C
144
utf_8
eee8335ea07390d8a3289d098993c567
/* { dg-do compile } */ /* { dg-options "-fpermissive" } */ class X { mutable int &q; /* { dg-warning "cannot be declared 'mutable'" } */ };
google
chromium
error5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error5.C
389
utf_8
67c2da88e21fcb076690a6d9b53b2d97
// { dg-do compile } // PR c++/11106: Error message gives partially mangled operator name template <typename T> struct S { struct I {}; }; template <typename T> struct S2 : S<T> { using S<T>::operator typename S<T>::I*; // { dg-error "operator S\\<int\\>" "" } }; template struct S2<int>; // { dg-message "requi...
google
chromium
array2
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/array2.C
159
utf_8
8248f24a0f3e2adae1de4fcddad88b5c
// PR c++/25263 // { dg-do compile } int x[1/0]; // { dg-warning "division by zero" } // { dg-error "constant" "constant" { target *-*-* } 4 }
google
chromium
ucnid-1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/ucnid-1.C
611
utf_8
ba6518028576345919a1e9c87a39c36a
/* { dg-do run } */ /* { dg-options "-fextended-identifiers" } */ /* { dg-xfail-if "" { powerpc-ibm-aix* } { "*" } { "" } } */ /* { dg-skip-if "" { ! ucn } { "*" } { "" } } */ #include <cstdlib> int \u00C0(void) { return 1; } int \u00C1(void) { return 2; } int \U000000C2(void) { return 3; } int wh\u00ff(void) { return...
google
chromium
error20
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error20.C
268
utf_8
fd907df0e1c7747b9b760174d75654f9
// PR c++/34275 // { dg-do compile } struct A // { dg-message "operator=|no known conversion" } { virtual A foo (); }; void bar (A& a) { a.foo () = 0; // { dg-error "A::foo\\(\\) = 0" } // { dg-message "candidate" "candidate note" { target *-*-* } 11 } }
google
chromium
crash-9
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/crash-9.C
214
utf_8
f0220e22e3cb835b39e2741a4acec08b
// Origin: PR c++/42915 // { dg-do compile } template <typename T> class A { template <typename U> class B { B foo(); }; }; template <typename T> template <typename U> A<T>::B<U> A<T>::B<U>::foo() {}
google
chromium
pr43116
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr43116.C
252
utf_8
e18e3ba20f03468900780d327126e381
/* { dg-do compile } */ extern "C" int rpl_open (const char *filename, int flags, ...) __attribute__ ((__nonnull__ (1))); namespace gnulib { int (*const open) (const char *filename, int flags, ...) __attribute__ ((__nonnull__ (1))) = rpl_open; }
google
chromium
error17
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/error17.C
196
utf_8
c5ebfa103b3a073b940575c6cfabfd60
// PR c++/32870 struct Foo { struct Bar; }; namespace N { struct Foo::Bar { }; // { dg-error "in namespace 'N'" } } struct Baz { struct Foo::Bar { }; // { dg-error "in 'struct Baz'" } };
google
chromium
ptrmem8
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/ptrmem8.C
352
utf_8
2191563dd6d02eba9e6ba0c7da490226
// PR c++/33844 // { dg-do compile } struct A {}; template<int> void foo(void (A::* f)()) { A a; &(a.*f); // { dg-error "invalid use of\[^\n\]*\\.\\*\[^\n\]*to form|qualified-id is required" } } template<int> void bar(void (A::* f)()) { A *p; &(p->*f); // { dg-error "invalid use of\[^\n\]*->\\*\[^\n\]*to for...
google
chromium
bitfield1
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/bitfield1.C
87
utf_8
f4cf136163ee3fd615e4a9643520781f
// { dg-options "-w" } union u1 { char m1 : 16; } x; int main () { x.m1 = 256; }
google
chromium
large-size-array
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/large-size-array.C
364
utf_8
9273b23a9fe39abe84376e8c4b5847c5
/* { dg-do compile } */ #include <limits.h> #ifdef _WIN64 #define DIM ULLONG_MAX>>1 #else #ifdef __LP64__ #define DIM UINT_MAX>>1 #else #define DIM USHRT_MAX>>1 #endif #endif int sub (int *a) { return a[0]; } int main (void) { int a[DIM][DIM]; /* { dg-error "size of array 'a' is too large" } */ return sub (&a...
google
chromium
pr49133
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/pr49133.C
812
utf_8
bbfdbf39dac3f32203388a2dad06f24a
/* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O2 -msse2" } */ /* { dg-require-effective-target sse2_runtime } */ #include <xmmintrin.h> extern "C" void abort (); typedef double double_a __attribute__((__may_alias__)); struct V { __m128d data; }; int main() { V a; __m128d b; b = _mm_...
google
chromium
array5
.C
native_client/pnacl-gcc/gcc/testsuite/g++.dg/other/array5.C
299
utf_8
704a289cc183c9c58d161a065dc540b8
// Check to make sure changing from an incomplete // array type to a complete one does not change other // incomplete array type's bounds. // { dg-do compile } extern unsigned char xvalue_store[]; extern unsigned char xvalue_store1[]; unsigned char xvalue_store[7]; unsigned char xvalue_store1[9];