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
pragma-ep-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/pragma-ep-1.C
616
utf_8
d21dda28ccc09de70408d08632e8b5a7
/* { dg-do compile { target *-*-osf5* } } */ /* { dg-final { scan-assembler "xyzzy_one" } } */ /* { dg-final { scan-assembler "xyzzy_two" } } */ /* { dg-final { scan-assembler "xyzzz_three" } } */ /* { dg-final { scan-assembler "four" } } */ /* { dg-final { scan-assembler-not "_four" } } */ #ifndef __PRAGMA_EXTERN_PRE...
google
chromium
error4
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/error4.C
325
utf_8
2a54dfbc2f51bbaad10a9a32a8c1f212
// { dg-do compile } // PR 9898. Confusing error message struct Wrapper {}; void Foo(int const &); // { dg-error "in passing" "" } void Baz () { Foo (Wrapper ()); // { dg-error "Wrapper" "" } }
google
chromium
profile1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/profile1.C
1,316
utf_8
25577f11922084372c1176d0965f2945
// PR 11767 // { dg-do run } // { dg-require-profiling "-fprofile-arcs" } // { dg-options "-fnon-call-exceptions -fprofile-arcs" } #include <string> typedef unsigned long ACE_UINT32; extern "C" void abort(); static ACE_UINT32 const msc_maxCurrencyID = 9999; class ResourceBalanceType2 { public: explicit Resourc...
google
chromium
canon-33194
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/canon-33194.C
356
utf_8
099265a43fd784d7e5904d87397cd678
// PR c++/33194 void c_translate_location ( void (*fail) ( const char *fmt, ...) __attribute__ ((noreturn, format (printf, 1, 2))) ); struct dwflpp { static void loc2c_error (const char *fmt, ...) { } void translate_location() { return c_transl...
google
chromium
gc3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/gc3.C
203
utf_8
710d41055b4bb35ff1473bcd3c776607
// PR c++/21687 // { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" } template <class Union> void perform_test_trivial() { struct check_union { void perform_test_trivial() {} }; }
google
chromium
void2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/void2.C
129
utf_8
26c3e723ec1cf92ad6b8e63c466fb9e8
// PR c++/27423 // { dg-do compile } void foo(void = 0); // { dg-error "incomplete type|invalid use" } void bar() { foo(); }
google
chromium
stdarg3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/stdarg3.C
328
utf_8
3a012636be5f21fd2b652c229102e118
// { dg-options "-mlp64" { target "ia64-*-hpux*" } } union U { void *m[7]; }; struct C; void f(struct C *c, float f, union U, ...) { }
google
chromium
stdarg1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/stdarg1.C
410
utf_8
38e4cf0612b24814e3f6c917226681e5
// Test stdarg function with anonymous argument // { dg-do run } // { dg-options "-Wno-abi" { target arm_eabi } } #include <stdarg.h> extern "C" void abort (void); void baz (va_list list) { if (va_arg (list, long) != 3) abort (); } void foo (long p1, long, long p2, ...) { va_list list; va_start (list, p2)...
google
chromium
synth1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/synth1.C
502
utf_8
9bae0d01ef429f94e58c536f39c9ca7b
struct PTR { PTR (); PTR (PTR&); PTR& operator= (PTR&); private: PTR (const PTR&); PTR& operator= (const PTR&); }; struct XYZ { XYZ (PTR& p) : ptr(p) {} mutable PTR ptr; }; XYZ f1 (); XYZ f2 (void) { return f1(); } void f3 (XYZ& dst, const XYZ& src) { dst = src; }
google
chromium
offsetof2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/offsetof2.C
674
utf_8
f22bc611fe66c01c402c287704531f43
// { dg-do run } // { dg-options -Wold-style-cast } // DR273 POD can have an operator&, offsetof is still required to work #include <stddef.h> struct POD1 { int m; void *operator& () const {return 0;} // yes, still a pod! }; struct POD2 { int m; }; void *operator& (POD2 const &) {return 0;} // ouch! struct PO...
google
chromium
constref1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/constref1.C
308
utf_8
ff9cb67baddab7a5c96d0e2a37893445
// { dg-do compile } // Make sure that we can pass a cast-expression as an argument that's // passed by const reference. void bar (const long&) { } void foo (int x) { bar ((long) x); }
google
chromium
darwin-minversion-1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/darwin-minversion-1.C
224
utf_8
bd1c35be302338df14b1aa330813797d
/* Test for -mmacosx-version-min default on powerpc-darwin. */ /* { dg-do compile { target powerpc-*-darwin* } } */ int main(void) { #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1030 fail me; #endif return 0; }
google
chromium
switch2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/switch2.C
443
utf_8
37c0f6f7c04f78d10db7b76974117a16
const int B = ~(~0u >> 1); #define b(x) (B + x) int Foo (int error) { switch (error) { case b (1): return 0; case b (2): return 0; case b (3): return 0; case b (4): return 0; case b (5): return 0; } return 0; }
google
chromium
fold1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/fold1.C
195
utf_8
8ca2623b82b776edbb3caee012caa2a9
// PR middle-end/27384 // { dg-do compile } struct A { static const int i = i; // { dg-error "not declared" } int x[i]; // { dg-error "integral constant-expression" } };
google
chromium
pr37789
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/pr37789.C
113
utf_8
491c4cb5cc2f40f08cea9aa3d5e50268
// PR c++/37789 // { dg-do compile } void foo(): { // { dg-error "initializers|identifier" } __FUNCTION__; }
google
chromium
ptrmem3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/ptrmem3.C
243
utf_8
aa501740c79db5668ed5a41a648546f6
// Bug: The double cast had an TREE_INT_CST_HIGH of 0, while the single // cast had -1, so the comparison failed. // { dg-do run } struct A { }; typedef int A::* aip; typedef long A::* alp; int main() { return ((aip)(alp)0 != (aip)0); }
google
chromium
error3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/error3.C
198
utf_8
3820027b29c821fc3271c5cd12393a28
// Test for proper error message formatting; the throw() should go inside // the parens, as below. void (*g() throw())(); // { dg-error "g\\(\\) throw" "" } void (*g())(); // { dg-error "" "" }
google
chromium
ptrmem5
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/ptrmem5.C
141
utf_8
713d0139b054494df9491738a1fefb6c
// PR 14123 struct a { int x[8]; }; int main() { int a::*n[8]; n = &a::x; // { dg-error "int \\(a::\\*\\)" } }
google
chromium
packed1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/packed1.C
681
utf_8
6c4754d66fbcbee28300a7f9739af11c
// { dg-do run { xfail arm-*-* sh-*-* } } // NMS:2003-04-21 this fails on strict aligned architectures again, // the patch was reverted because it broke something more important. // WRS SPR 63496, lost packed attribute when accessing a packed // field. This matters on aligned architectures like sh struct thing { int m;...
google
chromium
unused1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/unused1.C
1,174
utf_8
cc513aeb7f5663dd2ffdcdfbd13e2aa1
/* { dg-do compile } */ /* { dg-options "-g" } */ /* { dg-skip-if "" { { hppa*-*-hpux* *-*-solaris2.[56]* } && { ! hppa*64*-*-* } } { "*" } { "" } } */ /* Make sure we didn't eliminate casted types because we thought they were unused. */ void *voidp; struct foo { int i; }; int bar (void) { return ((struct fo...
google
chromium
pr35504
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/pr35504.C
2,250
utf_8
ca790c339fe54a884f32d8e5cd3c7e53
// { dg-do run { target { { i?86-*-* x86_64-*-* } && ilp32 } } } #define ATTR0 __attribute__((__regparm__(0))) #define ATTR1 __attribute__((__regparm__(1))) #define ATTR2 __attribute__((__regparm__(2))) #define ATTR3 __attribute__((__regparm__(3))) #define ATTR4 __attribute__((__fastcall__)) #define ATTR5 __attribute_...
google
chromium
crash-2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/crash-2.C
361
utf_8
f2c44da2d098b6e3329177d4a7f387ef
// { dg-do compile } // { dg-options "-finline -finline-functions" } // Contributed by Hans Buchmann <hans dot buchmann at fhso dot ch> // PR c++/14033: ICE while inlining a function with incomplete parameter struct A; // { dg-error "forward declaration" } void foo(A a) {} // { dg-error "incomplete" } str...
google
chromium
copy2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/copy2.C
425
utf_8
a8c217652f569c1ecbce8d12397e9abb
// { dg-do run } // Test that A's copy assignment method is called when B's instance // member array of A is assigned. // Contributed by Brian Gaeke, public domain. int status = 1; class A { public: int i; A &operator =(const A &i) { status = 0; } }; class B { public: A arr[10]; }; int main (int argc...
google
chromium
static2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/static2.C
198
utf_8
87d669ec0ea49c18545b3b5213df2b0b
//PR c++/26573 void foo() { struct A { static int i; }; // { dg-error "shall not have" } } template<typename T> void bar() { struct B { static int j; }; // { dg-error "shall not have" } }
google
chromium
error6
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/error6.C
353
utf_8
211bf7afef91ced5b9f2bdf67115b606
// { dg-do compile } // Make sure we emit a decent error message when trying to mangle an // expression not supported by the C++ ABI due to a defect. // Update: Better to make it supported, I think... template <int N> struct A {}; struct B { static int foo(void); }; template <class T> A<sizeof(T::foo())> func(voi...
google
chromium
virtual2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/virtual2.C
102
utf_8
8eb73bfdfb93ef436ae8ead1ba6b0a67
// PR c++/26071 // { dg-do compile } struct A { virtual static ~A(); // { dg-error "virtual" } };
google
chromium
vararg-3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/vararg-3.C
341
utf_8
d70016b6360241c55db4eea300244bd5
// PR c++/31488: va_list considered non-POD on alpha // { dg-do compile } typedef __builtin_va_list __gnuc_va_list; typedef __gnuc_va_list va_list; extern int foo (int a, int b, ...); int bar (int a, int b, ...) { va_list args; __builtin_va_start(args,b); int result = foo (a, b, args); __builtin_va_end(args)...
google
chromium
default7
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-gcc/gcc/testsuite/g++.dg/other/PR23205.C
402
utf_8
28bdad3035f5488e059babef5e5b85e4
/* { dg-do compile } */ /* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* } { "*" } { "" } } */ /* { 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
access1
.C
native_client/nacl-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/nacl-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/nacl-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
virtual1
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-gcc/gcc/testsuite/g++.dg/other/default5.C
1,347
utf_8
385a6ee992bfc399dbea973d1bebc397
// 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, in...
google
chromium
nested-extern-2
.C
native_client/nacl-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/nacl-gcc/gcc/testsuite/g++.dg/other/error27.C
721
utf_8
2f949631a88e708d9732b9f5998754c6
// 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 "__builtin_\[^\n\]*cannot be used as a function" } __builtin_isless(x, y)(); // { dg-error "__builtin_\[^\n\]*cannot be used as a function" ...
google
chromium
error22
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/error22.C
139
utf_8
510e8a10005cc7590319f4e5b212e6d9
// PR c++/34394 // { dg-do compile } extern double fabs (double); void foo (double x) { fabs (x) (); // { dg-error "__builtin_abs" } }
google
chromium
i386-4
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-gcc/gcc/testsuite/g++.dg/other/pr40446.C
736
utf_8
0d511a95d0c5ac404e6fa3583409d6b6
// PR middle-end/40446 // { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-options "-O1 -msse2" } #include <emmintrin.h> #include "cpuid.h" extern "C" void abort (); struct S { S (double r, double i) { __real__ s = r; __imag__ s = i; } __complex__ double s; }; __m128d foo () { S c (0, 1); return _mm_loa...
google
chromium
default2
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/default2.C
143
utf_8
6f1f053c4c91ab82ddb76edfbb093d10
// 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/nacl-gcc/gcc/testsuite/g++.dg/other/pr28114.C
167
utf_8
c0a7af6f3c7565c87c806111dc58cd74
// Test to make sure we do not ICE on this invalid program. template<int> void foo(struct {}*); // { dg-error "" } void bar() { foo<0>(0); // { dg-error "" } }
google
chromium
i386-6
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/i386-6.C
295
utf_8
776484aeaac5f448596bac23197ace79
/* Test that {,x,e,p,t,s,w,a,b,i}mmintrin.h, mm3dnow.h and mm_malloc.h are usable with -O -pedantic-errors. */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-O -pedantic-errors -march=k8 -m3dnow -mavx -msse5 -maes -mpclmul" } */ #include <x86intrin.h> int dummy;
google
chromium
bitfield3
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/bitfield3.C
270
utf_8
b0617043ce57362e6c4529ff76385728
// PR c++/33841 // { dg-do compile } template<int> struct A { struct {} : 2; // { dg-error "with non-integral type" } }; template<int> struct B { int a; struct {} : 2; // { dg-error "with non-integral type" } int b; }; struct C : A<0> {}; struct D : B<0> {};
google
chromium
vthunk1
.C
native_client/nacl-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/nacl-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
error30
.C
native_client/nacl-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/nacl-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/nacl-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
const1
.C
native_client/nacl-gcc/gcc/testsuite/g++.dg/other/const1.C
349
utf_8
aefc8b529864476d506924ee05711a7a
// { 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 data-member" "" } }
google
chromium
error18
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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/nacl-gcc/gcc/testsuite/g++.dg/other/error10.C
280
utf_8
2e5787561da24ae2690ace886fee1806
// 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 "\\(\\(const A<0>\\*\\)a\\)" "" } void bar() { foo(A<0>()); // { dg-message "instantiated from here" "" } }
google
chromium
anon3
.C
native_client/nacl-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/nacl-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/nacl-gcc/gcc/testsuite/g++.dg/other/error23.C
196
utf_8
f78eeb918acafedede7aa81068a91826
// PR c++/34918 // { dg-do compile } int v __attribute ((vector_size (8))); bool b = !(v - v); // { dg-error "could not convert .\\(int __vector__\\)\\{0, 0\\}. to .bool.|in argument to unary" }
google
chromium
friend3
.C
native_client/nacl-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/nacl-gcc/gcc/testsuite/g++.dg/other/pragma-re-2.C
405
utf_8
f58740da9046e1b048adeaf5bd6ac01e
/* { dg-do compile { target *-*-solaris* } } */ /* { 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) {...
google
chromium
error15
.C
native_client/nacl-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/nacl-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/nacl-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/nacl-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/nacl-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
bitfield4
.C
native_client/nacl-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/nacl-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/nacl-gcc/gcc/testsuite/g++.dg/other/macro-1.C
91
utf_8
a9c2bd4786300d7cf805e7ef57335a2c
/* { dg-do compile } */ short array[3] __attribute__ ((aligned (__BIGGEST_ALIGNMENT__)));