plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
inline-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/inline-2.C
759
utf_8
3ebd4112b48f7779048611a458e5a4b4
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-inline --param max-early-inliner-iterations=1" } */ /* { dg-add-options bind_pic_locally } */ namespace std { extern "C" void puts(const char *s); } template <class T, class E> void foreach (T b, T e, E ptr) { for (; b != e; b++) ptr(*b); } void inline_...
google
android
pr45565
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr45565.C
533
utf_8
34f01b9fc4157e35aef42fe4303714df
// { dg-do compile } // { dg-options "-O -fno-toplevel-reorder -fno-inline -fipa-cp -fipa-cp-clone -fkeep-inline-functions" } template < typename Derived > struct AnyMatrixBase { }; struct Matrix Random (); struct Matrix:AnyMatrixBase < Matrix > { void bar () { throw; } void foo (Matrix other) ...
google
android
devirt-c-7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-c-7.C
1,256
utf_8
a1f205898cc7b2a891538d462ccd2ee1
/* Verify that ipa-cp will not get confused by placement new constructing an object within another one when looking for dynamic type change . */ /* { dg-do run } */ /* { dg-require-effective-target nonpic } */ /* { dg-options "-O3 -Wno-attributes" } */ extern "C" void abort (void); namespace std { typedef __SIZ...
google
android
ivinline-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/ivinline-3.C
997
utf_8
8d6a7a40722ba9adcb9b0ab72edefea8
/* Verify that simple virtual calls on an object refrence are inlined even without early inlining. */ /* { dg-do run { target nonpic } } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ extern "C" void abort (void); class A { public: int data; virtual int foo (int i); }; class...
google
android
pr46053
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr46053.C
422
utf_8
3b13da9b176812433b85dc81c337079d
/* { dg-do run } */ /* { dg-options "-O -fipa-cp -fno-early-inlining" } */ extern "C" void abort (); struct A { virtual void foo () = 0; }; struct B : A { virtual void foo () = 0; }; struct C : A { }; struct D : C, B { int i; D () : i(0xaaaa) {} virtual void foo () { if (i != 0xaaaa) abort()...
google
android
iinline-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/iinline-1.C
960
utf_8
d190270f1bd1bec019768c3db19b8de2
/* Verify that simple indirect calls are inlined even without early inlining.. */ /* { dg-do compile } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining" } */ /* { dg-add-options bind_pic_locally } */ extern void non_existent (const char *, int); class String { private: const char *data; public: ...
google
android
devirt-c-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-c-3.C
1,059
utf_8
3bbe80cc3cdceeb172618324e67986c2
/* Verify that ipa-cp correctly detects the dynamic type of an object under construction when doing devirtualization. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-inline" } */ extern "C" void abort (void); class Distraction { public: float f; double d; Distraction () { f = 8.3; d = 10.2; } ...
google
android
inline-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/inline-3.C
650
utf_8
c4df4f3b1cdf853c3301e7075c3bb5df
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-inline --param max-early-inliner-iterations=1" } */ /* { dg-add-options bind_pic_locally } */ #include <algorithm> void foo(const char *s); void inline_me (char *x) { foo(x); } static void inline_me_too (char *x) { foo(x); } int main(int argc, char **argv...
google
android
devirt-c-5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-c-5.C
934
utf_8
ad089602076d0837c4e1b41303e15c92
/* Verify that ipa-cp correctly detects the dynamic type of an object under construction when doing devirtualization. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline" } */ extern "C" void abort (void); class B; class A { public: int data; A(); A(B *b); virtual int foo (int i)...
google
android
devirt-9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-9.C
519
utf_8
595e0e12853c6bee6036deb4c2d13ef7
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-inline" } */ double foo (); struct B { bool b1 () { return b3 (); } void b2 (); virtual bool b3 (); }; struct C { C () {} bool c1 (float x, float y) { if (x != c3 || y != c4) c2.b2 (); return c2.b1 (); } B c2; float c3, c4; }; v...
google
android
pr46287-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr46287-2.C
810
utf_8
65aea08882bab12228acc06c61c33a2b
// Check that indirect calls to thunks do not lead to errors. // { dg-do run } // { dg-options "-O -finline -finline-small-functions -finline-functions" } extern "C" void abort (); class A { public: virtual void foo () {abort();} }; class B : public A { public: int z; virtual void foo () {abort();} }; class ...
google
android
pr52939
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr52939.C
830
utf_8
5645876c592391b1a221e2bbadde0436
/* Verify that we do not ICE on invalid devirtualizations (which might be OK at run-time because never executed). */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline" } */ extern "C" void abort (void); class A { public: int data; virtual int foo (int i); }; class B : public A { publi...
google
android
devirt-c-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-c-1.C
1,199
utf_8
9349d6977544fefa6b255b4f85cacb9d
/* Verify that ipa-cp correctly detects the dynamic type of an object under construction when doing devirtualization. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */ extern "C" void abort (void); class A { public: int data; A(); virtual ...
google
android
ivinline-4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/ivinline-4.C
1,135
utf_8
1db780ef27390b3c0fb48701cc3b97b1
/* Verify that simple virtual calls are inlined even without early inlining, even when a typecast to an ancestor is involved along the way. */ /* { dg-do run { target nonpic } } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ extern "C" void abort (void); class A { public: in...
google
android
pr46984
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr46984.C
726
utf_8
0a828f86c08497837f067c382a901c9f
// { dg-options "-O -fipa-cp -fno-early-inlining -flto" } // { dg-do run } // { dg-require-effective-target lto } extern "C" void abort (); class A { public: virtual void foo () {abort();} }; class B : public A { public: int z; virtual void foo () {abort();} }; class C : public A { public: void *a[32]; un...
google
android
ivinline-9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/ivinline-9.C
1,569
utf_8
6c4bf4f42a6288d2bb9b2226f5875ff2
/* Verify that simple virtual calls are inlined even without early inlining, even when a typecast to an ancestor is involved along the way and that ancestor itself has an ancestor wich is not the primary base class. */ /* { dg-do run { target nonpic } } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inl...
google
android
devirt-g-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-g-1.C
689
utf_8
b0edc395f80882a5212de90390f76d08
// { dg-do compile } // { dg-options "-O2 -fdump-ipa-cp -fdump-tree-optimized" } struct S { S(); virtual void xyzzy(); void otherstuff(); }; struct R { int a; S s; R(); }; S s; R r; void S::xyzzy () { otherstuff (); otherstuff (); } static void __attribute__ ((noinline)) foo(S *p) { p->xyzzy(); } void bar() {foo...
google
android
pr56310
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr56310.C
404
utf_8
da3ab59e12c64fabaf4786b4f5835618
/* { dg-do compile } */ /* { dg-options "-O -fipa-cp -std=gnu++0x -fno-early-inlining -fipa-cp-clone --param=ipa-cp-eval-threshold=1" } */ void bar (void *, void *); struct C { constexpr C ():p (0) { } void *get () { return p; } void *p; }; struct B:C { }; struct A { void f (B * x, B * y) { ...
google
android
devirt-c-6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-c-6.C
940
utf_8
f2bb748502e340561bce6eaed7285e91
/* Verify that ipa-cp correctly detects the dynamic type of an object under construction when doing devirtualization. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-inline" } */ extern "C" void abort (void); class A { public: int data; A(); virtual int foo (int i); }; class B : public A { public: virt...
google
android
pr46287-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr46287-1.C
763
utf_8
177b805c9038f9f21dc4bd1516592ade
// Check that indirect calls to thunks do not lead to errors. // { dg-do run } // { dg-options "-O" } extern "C" void abort (); class A { public: virtual void foo () {abort();} }; class B : public A { public: int z; virtual void foo () {abort();} }; class C : public A { public: void *a[32]; unsigned long ...
google
android
devirt-7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-7.C
1,332
utf_8
831dffcc5053f58ea018aa52bae05a8f
/* Verify that IPA-CP can do devirtualization even if the virtual call comes from a method that has been early-inlined into a descendant. */ /* { dg-do run } */ /* { dg-options "-O3 -fdump-ipa-cp" } */ extern "C" void abort (void); class Distraction { public: float f; double d; Distraction () { f = 8...
google
android
devirt-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-1.C
1,060
utf_8
7522727dcb8122398374b49264575c77
/* Verify that simple virtual calls are converted to direct calls by ipa-cp. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */ extern "C" void abort (void); class A { public: int data; virtual int foo (int i); }; class B : public A { public: ...
google
android
pr50605
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr50605.C
415
utf_8
b6207250e81c199b2860b99758c7c707
/* { dg-do compile } */ /* { dg-options "-O3 -fno-early-inlining" } */ class A { public: int a; void *stuff; }; class B { public: int b; void *other_stuff; A array[50]; }; extern B gb; int process_A (A *a) { return a->a; } int process_A_complex (A *a) { return process_A (a+3); } int process_B (B *b)...
google
android
pr45572-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr45572-1.C
1,629
utf_8
fbe7a722c61f265b03ff0a5ed5ada369
// { dg-do compile } // { dg-options "-finline-small-functions -findirect-inlining -finline-functions -O" } extern "C" { typedef long unsigned int size_t; typedef long int __ssize_t; typedef struct _IO_FILE FILE; typedef struct { } __mbstate_t; extern __inline __attribute__ ((__gnu_inline__)) int fgetc_unlocked (FILE ...
google
android
iinline-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/iinline-3.C
1,057
utf_8
ed2ebadecdee89ff7f0834345b5ae2e8
/* Verify that we do not indirect-inline using member pointer parameters which have been modified. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining" } */ /* { dg-add-options bind_pic_locally } */ extern "C" void abort (void); class String { private: const char *data; public: String (const cha...
google
android
ivinline-8
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/ivinline-8.C
1,271
utf_8
75532abc91edcb4fa8de30bfbef55a2b
/* Verify that virtual calls are inlined (ithout early inlining) even when their caller is itself indirectly inlined. */ /* { dg-do run { target nonpic } } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ extern "C" void abort (void); class A { public: int data; virtual int bar...
google
android
devirt-11
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-11.C
1,093
utf_8
9986892ed7b13b4f9f6c694a80ec1e04
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-inline" } */ int baz (); struct A { virtual int fn2 () = 0; virtual int *fn3 (); double *fn4 (); int fn5 (int); template <class T> void fn1 (A &, T) { fn3 (); fn4 (); fn2 (); } }; struct B : A { int fn2 () { return 6; } void fn3 (int, double); B ...
google
android
devirt-5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-5.C
1,393
utf_8
bef829571c10195d63a0c4ff07d958ef
/* Verify that ipa-cp can convert simple virtual calls to a direct ones even when a typecast to an ancestor is involved along the way and that ancestor is not the first one with virtual functions. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } ...
google
android
devirt-4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-4.C
1,197
utf_8
d2da990ad34e9459150b3aa94be920a9
/* Verify that ipa-co can convert virtual calls to direct ones even when a typecast to an ancestor is involved along the way. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */ extern "C" void abort (void); class A { public: int data; virtual...
google
android
pr60419
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr60419.C
628
utf_8
cc7882632634230561bec7316fae94c5
// PR middle-end/60419 // { dg-do compile } // { dg-options "-O2" } struct C { }; struct I : C { I (); }; struct J { void foo (); J (); virtual void foo (int &, int); }; template <class> struct D { virtual void foo (I &) const; void bar () { I p; foo (p); } }; struct K : J, public D<int> { ...
google
android
devirt-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-3.C
1,184
utf_8
48c9df6f6e861f2448fa74314b9affb3
/* Verify that simple virtual calls on an object refrence are converted to simple calls by ipa-cp. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */ extern "C" void abort (void); class A { public: int data; virtual float distraction (float f...
google
android
devirt-6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-6.C
702
utf_8
8c636e7513618b1b3735a28c660923df
/* Verify that we either do not do any devirtualization or correctly spot that foo changes the dynamic type of the passed object. */ /* { dg-do run } */ /* { dg-options "-O3" } */ extern "C" void abort (void); extern "C" void *malloc(__SIZE_TYPE__); inline void* operator new(__SIZE_TYPE__, void* __p) throw() { ...
google
android
pr60640-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr60640-2.C
353
utf_8
b4277c2887fdb910bdca2a8dbf0de117
// { dg-do compile } // { dg-options "-O3" } struct B { virtual unsigned f () const; }; struct C { virtual void f (); }; struct F { virtual unsigned f (bool) const; ~F (); }; struct J : C, F {}; struct G : J { unsigned f (bool) const { return 0; } }; struct H : B { H (int); unsigned f () const { return ((const F &...
google
android
pr60640-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr60640-3.C
1,204
utf_8
2b5d243c5137f370d06b3628cfde2864
// { dg-do run } // { dg-options "-O3" } struct Distraction { char fc[8]; virtual Distraction * return_self () { return this; } }; namespace { struct A; static A * __attribute__ ((noinline, noclone)) get_an_A (); static int go; struct A { int fi; A () : fi(777) {} A (int pi) : fi (pi) {} virtual A *...
google
android
devirt-c-4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-c-4.C
1,392
utf_8
66fc1acee659c21a80900278dc4e5398
/* Verify that ipa-cp correctly detects the dynamic type of an object under construction when doing devirtualization. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-inline" } */ extern "C" void abort (void); class Distraction { public: float f; double d; Distraction () { f = 8.3; d = 10.2; } ...
google
android
pr43812
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr43812.C
860
utf_8
8f31add58ec72eb54693c3a9f4769173
/* { dg-do compile } */ /* { dg-options "-O -fwhole-program -fipa-cp" } */ typedef float scoord_t; typedef scoord_t sdist_t; typedef sdist_t dist_t; template<typename T> class TRay { }; typedef TRay<dist_t> Ray; class BBox { }; class RenderContext { }; class RefCounted { public: void deref () const { if (-...
google
android
inline-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/inline-1.C
768
utf_8
b3482572a54b0e05e99d38005f73065b
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-ipa-inline --param max-early-inliner-iterations=1" } */ /* { dg-add-options bind_pic_locally } */ namespace std { extern "C" void puts(const char *s); } template <class T, class E> void foreach (T b, T e, void (*ptr)(E)) { for (; b != e; b++) ptr(*b); } voi...
google
android
ivinline-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/ivinline-1.C
977
utf_8
3831a42b713275d06d18007014f67c0a
/* Verify that simple virtual calls are inlined even without early inlining. */ /* { dg-do run { target nonpic } } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ extern "C" void abort (void); class A { public: int data; virtual int foo (int i); }; class B : public A { public...
google
android
pr45875
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr45875.C
654
utf_8
308bcf23bb271af4ffddb96f07a09beb
/* { dg-do compile } */ /* { dg-options "-O3 -fno-early-inlining -fno-ipa-cp" } */ extern "C" void abort (void); class A { public: virtual int foo (int i); }; class B { public: class A confusion; }; int A::foo (int i) { return i + 1; } int __attribute__ ((noinline,noclone)) get_input(void) { return 1; } ...
google
android
devirt-c-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-c-2.C
1,318
utf_8
b35c80c439da5c3bbddac9dc017bf76c
/* Verify that ipa-cp correctly detects the dynamic type of an object under construction when doing devirtualization. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp -fdump-tree-optimized" } */ extern "C" void abort (void); class Distraction { public: float f; double...
google
android
pr60640-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr60640-1.C
729
utf_8
190bb52be2caa70fd51cc2a735d45f1e
// { dg-do compile } // { dg-options "-O3" } class ASN1Object { public: virtual ~ASN1Object (); }; class A { virtual unsigned m_fn1 () const; }; class B { public: ASN1Object Element; virtual unsigned m_fn1 (bool) const; }; template <class BASE> class C : public BASE { }; class D : ASN1Object, public B { }; cl...
google
android
ivinline-7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/ivinline-7.C
1,438
utf_8
e270d715ea3671aaa898949a9ee8b415
/* Verify that simple virtual calls are inlined even without early inlining, even when a typecast to an ancestor is involved along the way and that ancestor is not the first one with virtual functions. */ /* { dg-do run { target nonpic } } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp...
google
android
ivinline-5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/ivinline-5.C
1,064
utf_8
1c21702d77c9164af8a61876c23f9195
/* Verify that virtual call inlining does not pick a wrong method when there is a user defined ancestor in an object. */ /* { dg-do run { target nonpic } } */ /* { dg-options "-O3 -fdump-ipa-inline -fno-early-inlining -fno-ipa-cp" } */ extern "C" void abort (void); class A { public: int data; virtual int foo...
google
android
pr51759
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/pr51759.C
453
utf_8
6b5972a83c02d489c1aab917516a43a3
/* { dg-do run } */ /* { dg-options "-O2" } */ #if __SIZEOF_INT__ == 2 && __SIZEOF_LONG__ == 4 #define unsigned unsigned long #endif extern "C" void abort (void); struct S { void __attribute__((noinline)) set(unsigned val) { data = val; if (data != val) abort (); } int pad0; unsigne...
google
android
devirt-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ipa/devirt-2.C
963
utf_8
1f8b782b071d676d5bbf1aa05c165b89
/* Verify that simple virtual calls using this pointer are converted to direct calls by ipa-cp. */ /* { dg-do run } */ /* { dg-options "-O3 -fno-early-inlining -fno-inline -fdump-ipa-cp" } */ extern "C" void abort (void); class A { public: int data; virtual int foo (int i); int middleman (int i) { re...
google
android
decl-plugin-test
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/plugin/decl-plugin-test.C
876
utf_8
9d3407a3a51156df6b12203598d2c5e4
extern int global; // { dg-warning "Decl Global global" } int global_array[] = { 1, 2, 3 }; // { dg-warning "Decl Global global_array" } int takes_args(int arg1, int arg2) { int local = arg1 + arg2 + global; // { dg-warning "Decl Local local" } return local + 1; } int global = 12; // { dg-warning "Decl Global glo...
google
android
attribute_plugin-test-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/plugin/attribute_plugin-test-1.C
588
utf_8
fae03225a25cca8f1dbda83c6ce8c939
// { dg-warning "Callback to register attributes" "" { target *-*-* } 0 } void normal_func (char c, char c2); void normal_func (char __attribute__((user("param"))) c, char); void normal_func (char c, char __attribute__((user("param"))) c2) { } // { dg-warning "attribute 'user' on param 'c' of function normal_func" } ...
google
android
header-plugin-test
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/plugin/header-plugin-test.C
56
utf_8
b393922db8d338bed7f3bcf037edd19c
// Test case for the dumb plugin. // { dg-do compile }
google
android
self-assign-test-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/plugin/self-assign-test-1.C
1,177
utf_8
7be17227e6d3f44de792489c4efeed3b
// Test the self-assignemnt detection plugin. // { dg-do compile } // { dg-options "-O" } class Foo { private: int a_; public: Foo() : a_(a_) {} // { dg-warning "assigned to itself" } void setA(int a) { a_ = a_; // { dg-warning "assigned to itself" } } void operator=(Foo& rhs) { this->a_ = rhs.a...
google
android
self-assign-test-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/plugin/self-assign-test-3.C
1,211
utf_8
83135d30e0c44ed545ee45f64b498e70
// Test the self-assignemnt detection plugin with the 'disable' argument. // { dg-do compile } // { dg-options "-O -fplugin-arg-selfassign-disable" } class Foo { private: int a_; public: Foo() : a_(a_) {} // { dg-bogus "assigned to itself" } void setA(int a) { a_ = a_; // { dg-bogus "assigned to itself" ...
google
android
self-assign-test-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/plugin/self-assign-test-2.C
1,250
utf_8
2f17422b2d230b0a4445005cb3502d19
// Test the self-assignemnt detection plugin without checking of operator-eq. // { dg-do compile } // { dg-options "-O -fplugin-arg-selfassign-no-check-operator-eq" } class Foo { private: int a_; public: Foo() : a_(a_) {} // { dg-warning "assigned to itself" } void setA(int a) { a_ = a_; // { dg-warning ...
google
android
pragma_plugin-test-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/plugin/pragma_plugin-test-1.C
577
utf_8
0555e81b1b7c9c8e06b4e9d9ffccb7ff
// { dg-warning "Callback to register pragmas" "" { target *-*-* } 0 } int some_func (int c); #pragma GCCPLUGIN sayhello "here" // { dg-warning "'pragma GCCPLUGIN sayhello' outside of function: here" } int some_func (const char* s) { #pragma GCCPLUGIN sayhello "at start" // { dg-warning "'pragma GCCPLUGIN sayhello' ...
google
android
dumb-plugin-test-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/plugin/dumb-plugin-test-1.C
1,146
utf_8
c595ed1ac1831b257035f373fac8a3ef
// Test case for the dumb plugin. // { dg-do compile } // { dg-options "-O -fplugin-arg-dumb_plugin-ref-pass-name=ccp -fplugin-arg-dumb_plugin-ref-pass-instance-num=1" } class Foo { private: int a_; public: Foo() : a_(a_) {} // { dg-warning "Before genericizing function" } void setA(int a) { a_ = a_; }...
google
android
error20
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/error20.C
293
utf_8
218bee6f8ef89f6fec38dcc527310b88
// { dg-options "-fshow-column -ansi -pedantic-errors -Wno-long-long" } // PR c++/17821 struct A { A(int i) {} }; struct B { int i; }; struct C { B* p; }; int main() { C c; A(c.p.i); // { dg-error "9:request for member 'i' in 'c.C::p', which is of pointer type 'B" } return 0; }
google
android
pr20118
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/pr20118.C
255
utf_8
7f6e10791d7c1d2556e34458f5dc3067
// { dg-do compile } // { dg-options "-fshow-column" } template<typename t>struct foo { static const int i; }; const int foo<bool>::i = 5; // { dg-error "11:specializing member .foo<bool>::i. requires .template<>. syntax" } int main() { return 0; }
google
android
stmtexpr1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/stmtexpr1.C
142
utf_8
306b5f567acd6eaa85224e96d73ce3b9
// { dg-do compile } // { dg-options "" } int main (int argc, char **argv) { int a = ({ 1 ? 0 : 1; }); return ({ argc > 1 ? 1 : 0; }); }
google
android
crash53
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash53.C
410
utf_8
bb6ac4a17ab02af350881f64213ce26e
// PR c++/35112 namespace X { struct A; } // { dg-message "struct X::A" } namespace Y { struct A; } // { dg-message "struct Y::A" } namespace Z { struct A; } // { dg-message "struct Z::A" } namespace W { struct A; } // { dg-message "struct W::A" } using namespace X; using namespace Y; using namespace Z; using nam...
google
android
enum3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/enum3.C
111
utf_8
b6417b0027d2c08da74d972e5e9d29ca
// PR c++/28261 struct A {}; // { dg-error "A::A" } A::A (enum { e }) {} // { dg-error "defined|prototype" }
google
android
crash9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash9.C
296
utf_8
5818f331167c496db06ad694932a1beb
// { dg-do compile } // PR c++/10793: ICE in handling base class when the current class // contains error. template <typename> struct A {}; template <typename> struct A<INVALID> : A<int> { }; // { dg-error "not declared|invalid|token|extra" }
google
android
linkage3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/linkage3.C
83
utf_8
f860807cf54031b8df626f746711d411
// PR c++/37877 // { dg-do compile } extern "C++" struct S { static int x; } s;
google
android
constant1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/constant1.C
184
utf_8
5e710a192eedbb63fef23d8e83b354e1
// { dg-options -std=c++98 } void f () { switch (0) { case (3, 0): // { dg-error "" } break; } } int g (); struct S { int i : (false ? g () : 1); // { dg-error "" } };
google
android
crash56
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash56.C
344
utf_8
fcbbcebb755ba0db8bde5a91a31088a8
/* PR c++/43081 */ /* { dg-do compile } */ /* { dg-options "-std=c++0x" } */ struct A { typedef void (F)(); F f = []{}; /* { dg-error "invalid pure" } */ }; struct B { typedef void (F)(); F f = 1; /* { dg-error "invalid pure" } */ virtual F f2 = 2; /* { dg-error "invalid pure" } */ F f3 = 3; /* { dg-error...
google
android
tmpl-tmpl-operator1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/tmpl-tmpl-operator1.C
375
utf_8
46e5b7b0e2493a6b4b30cb9948f3f116
// PR c++/8857 // { dg-do compile } template <typename T> struct A { template <typename U> operator U() { return sizeof(U); } }; template <typename T> struct B { template <template <typename U> class X> operator X<double>() { return X<double>(); } }; int main() { A<double> a; B<long> b; a = b; }
google
android
using1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/using1.C
46
utf_8
6bd4c0f7191355f693af56ab02582e5d
namespace A { using ::B; } // { dg-error "" }
google
android
namespace3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/namespace3.C
194
utf_8
b2cbb96c1cb51b252c9cad30717d2f28
/* PR c+/3816 */ /* { dg-do compile } */ namespace A {} namespace OtherNamespace { typedef struct { int member; } A; // used to conflict with A namespace } // end of namespace
google
android
ambig2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/ambig2.C
446
utf_8
3942d08ed7cbdaac837b06646132916e
// { dg-do compile } // PR 9212. We erroneously accepted an ill-formed // function-declaration, rather than a variable initializer. struct A { enum E { e }; A(E); }; struct B { enum F { f }; B(F); }; struct C { C(A, B, A); }; C c(A(A::e), B(B::f), A(A::e)); // This is not a function declaration
google
android
template5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/template5.C
385
utf_8
eb5012efbf2e76d0649338687d64eab1
// { dg-do compile } // PR 3902. More type/decl confusion. template <class T> struct S { S foo (T (T)); S foo (T(const T&)); }; int main () { S<int> (S<int>::*pf1)(int (int)) = &S<int>::foo; S<int> (S<int>::*pf2)(int (const int&)) = &S<int>::foo; }
google
android
repo1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/repo1.C
154
utf_8
15c20313893567659b867565ddb52b45
// { dg-options "-frepo" } // { dg-require-host-local "" } extern "C" inline void f() {} int main () { f(); } // { dg-final { cleanup-repo-files } }
google
android
angle-bracket
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/angle-bracket.C
190
utf_8
bc8c4ed875b2c4b0e6b1ec9bcec25d41
// { dg-do compile } int main() { ( int() > int() ); return 0; }
google
android
ctor7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/ctor7.C
263
utf_8
cd3a6bbede42f377a3da5af13e16ebb5
//PR c++/28505 struct A { A : (); // { dg-error "primary-expression|incomplete type" } A : (int); // { dg-error "primary-expression|incomplete type|'int'" } }; struct B { char c; A a; }; B b = (B){0}; // { dg-error "compound-literals" }
google
android
defarg11
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/defarg11.C
271
utf_8
529313f5ea976406c251194ef2f9e0b0
// { dg-do compile } // { dg-options "-pedantic" } class foo { public: void operator& (int = 1); // { dg-error "default argument" } void operator++ (int = 2); // { dg-warning "default argument" } void operator-- (int = 3); // { dg-warning "default argument" } };
google
android
template12
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/template12.C
115
utf_8
7ed414cad5851726c320604ea56d95bd
template <int J> struct A { }; struct B { template <int I> struct C : public A<I> {}; typedef double I; };
google
android
crash36
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash36.C
411
utf_8
e31b740be86fc08cf90985288e04b94d
// PR c++/32567 // { dg-do compile } // { dg-options "-std=c++98" } template <typename... T> struct A // { dg-warning "variadic templates" } { static T &t; // { dg-error "not expanded with" "not expanded" } // { dg-message "T" "T" { target *-*-* } 7 } static const int i = sizeof (++t); // { dg-error "was n...
google
android
redef2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/redef2.C
150
utf_8
fc942a22cb8c9c4f56299a12c41b226e
// { dg-do compile } char * d [10]; // { dg-error "8: 'd' has a previous declaration as" } char e [15][10]; int (*f)(); int d; // { dg-error "" }
google
android
angle-bracket2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/angle-bracket2.C
246
utf_8
0befa26c74e8cbfa279f5b49a61408eb
// { dg-do compile } // Contributed by MattyT <mattyt-bugzilla at tpg dot com dot au> // PR c++/14028: Parser accepts invalid unbalanced bracket. template <int> struct A {}; template <typename TP> class B : public A<4 {}; // { dg-error "" }
google
android
cast1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/cast1.C
193
utf_8
012dcd0e9b2243e71ee6be0c01ac6a6d
// PR c++/13536 // { dg-require-effective-target ilp32 } */ // { dg-options "-w" } #include <typeinfo> void f() { (int((char*)0)); sizeof ((int((char*)0))); typeid ((int((char*)0))); }
google
android
parse1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/parse1.C
117
utf_8
146f8527c55edf2aa401fbe3bf9f8237
/* PR c++/50 */ /* { dg-do compile } */ namespace A {typedef int Z;} int main(void) { A::Z* z; z->A::Z::~Z(); }
google
android
defarg4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/defarg4.C
455
utf_8
acfa06861c017963f9c07523acb57fdf
// { dg-do compile } // PR c++ 9162. default args got left unprocessed struct S { friend int foo (const S&, int = 100); }; S s; int i = foo (s); struct R { template <typename T> R (T, int = 0); }; int Foo () { R s (1); } template <typename T> struct Q { int Foo (T, int = 0); }; int Foo (Q<int> *s) { s->Foo (1...
google
android
constant6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/constant6.C
339
utf_8
1f1ea9b1dfbfdad52826fde93326f9d6
// PR c++/19883 template<typename T> struct A { static const T i = 1; char a[int(i)]; }; template<int> struct B {}; template<typename T> struct C { static const T i = 2; B<int(i)> a; }; template< typename T, T N > struct integral_c { static const T value = N; typedef integral_c< T, static_cast<T>((valu...
google
android
access6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/access6.C
368
utf_8
f9481feac597cbeb954234d2f50f7631
// { dg-do compile } // PR c++/3765: Changing access from public to private by member // using declaration. class A { public: int foo() { return 1; } // { dg-error "inaccessible" } }; class B : public A { private: using A::foo; }; int main() { B b; return b.foo(); // { dg-error "this context" } }
google
android
ctor5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/ctor5.C
141
utf_8
ecb95d97861e13e0906b5bdd938f7e2a
// PR c++/27309 struct A { int i; // { dg-message "previous" } A() i() {} // { dg-error "declaration" } }; struct B { A a; }; B b;
google
android
crash35
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash35.C
160
utf_8
5194e08088db0ba805ec7f6468c6a749
/* This used to ICE. */ /* { dg-do compile } */ struct a {}; class foo : public a, a // { dg-error "duplicate base" } { /* { dg-error "at end of input" } */
google
android
ctor4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/ctor4.C
115
utf_8
c98adb0de8743928eaf1466baf071cbf
// PR c++/27279 // { dg-do compile } struct A { A(void,void); // { dg-error "incomplete type|invalid use" } };
google
android
defarg6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/defarg6.C
246
utf_8
8649c92bbc4962e03bb01e44973f0119
// { dg-do compile } // PR c++/13166: ICE default function argument for friend declaration. namespace sc_dt { class sc_length_param { friend int compare_unsigned(int if_v_signed = 0) {} }; }
google
android
catch1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/catch1.C
124
utf_8
624bb3ca0554e6b3fb470f487ec8c1cc
// PR c++/28249 // { dg-do compile } void foo() { try {} catch (long long long) {} // { dg-error "long long long" } }
google
android
crash25
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash25.C
235
utf_8
e3496ce9889e97cda81ccaf581b0f310
// PR c++/20536 // Found by Wolfgang Wieser 03/2005. // { dg-do compile } struct yyguts_t { class TestScanner* yyextra_r; // { dg-error "forward declaration" } }; TestScanner::TestScanner() {} // { dg-error "invalid use" }
google
android
parens1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/parens1.C
203
utf_8
de20c30d40f4cceef57124b5828bf816
/* PR c++/8237 */ /* { dg-do compile } */ class A { public: A() { } }; class B { public: B(A a) { } void form() { } }; int main() { // This used to give a parse error. B(A()).form(); }
google
android
builtin2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/builtin2.C
59
utf_8
d8b50f7519f0c33caf6717bf07e5c8ae
// PR c++/14432 // { dg-options "" } struct Y {}; Y y1;
google
android
error5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/error5.C
837
utf_8
59539587f9ce69267e04ecab37d68dd8
// PR c++/13269 // { dg-options "-fshow-column" } class Foo { int foo() return 0; } }; // { dg-error "30:expected identifier before numeric constant" "identifier" { target *-*-* } 4 } // { dg-error "23:named return values are no longer supported" "named return" { target *-*-* } 4 } // the column number info of this...
google
android
crash28
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash28.C
641
utf_8
13f84e278094b4130876743926689ceb
template <class _Tp> class insert_iterator<slist<_Tp> > {}; // { dg-error "not a class template|not declared in this scope|expected unqualified-id|extra" } template <class _Value> class insert_iterator<int > { // { dg-error "template" } hash_set<_Value>; }; template<int> struct A<X<> > {}; // { dg-error "not a class ...
google
android
error14
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/error14.C
600
utf_8
18c25b87ea5f1844f7cb6281b95da131
// { dg-options "-fshow-column" } // PR c++/13970 struct X { template< typename Z > Z Zunc() { return Z(); } template< typename Z > void Zinc() { } void tst() { Zunc<int>(); Zinc<int>( //); // } }; // { dg-error "2:expected '.' at end of input" "at end...
google
android
crash1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/crash1.C
49
utf_8
721a281ff33124a1c49ed8d68d2419fb
struct s { s(std::b o) { } }; // { dg-error "" }
google
android
funptr1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/funptr1.C
251
utf_8
8bf1527135b5cd5516b6bbd9bd9c62d2
// PR c++/9282 // { dg-do compile } typedef void (*fptr)(); struct A { template<int> static void foo() {} template<fptr f> static void bar() { (*f)(); } }; fptr f = A::bar< A::foo<0> >;
google
android
constant7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/constant7.C
107
utf_8
e773e9fc506890dda1d6fbb37fd77ae4
// PR c++/19991 enum { e = 1 }; template<typename> struct A { static const int i = e; char a[i]; };
google
android
offsetof9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/offsetof9.C
614
utf_8
7f291291c36ce0760b815fd17deee991
/* PR c/32041 */ /* { dg-do run } */ struct S { int c; struct { float f; } sa[2]; }; char a[__builtin_offsetof (S, sa->f) == __builtin_offsetof (S, sa[0].f) ? 1 : -1]; template <int N> struct T { int c[N]; struct { float f; } sa[N]; static int foo () { return __builtin_offsetof (T, sa->f); } stati...
google
android
struct-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/struct-1.C
149
utf_8
bf3916285ed2309a4ee27696a63242d1
// PR c++/18731 template<typename T> struct T::A {}; // { dg-error "invalid class name" }
google
android
nontype1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/nontype1.C
318
utf_8
975159f65456dba4b16d2ea9f6f10aac
// { dg-do compile } // PR c++/13289: Incorrectly reject non-type template argument that has // dependent type template <class T, T t> class C {}; template <class T, T t> class D { C<T, t-1> c; };
google
android
namespace11
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/namespace11.C
114
utf_8
307391ca01b5e3f3edb4a285d4a148bc
// PR c++/43069 namespace std { template < typename > void swap (); } template std::swap // { dg-error "" }
google
android
ref-qual1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/ref-qual1.C
384
utf_8
19c9483f0726842c500357ad04acc983
// PR c++/57068 enum Enums { Enum1 = 0x00000000, Enum2 = 0x00000001 }; class Flags { public: Flags() : i(0) {} Flags(int i): i(i) {} Flags operator&(Enums f) { return Flags(Enums(i & f)); } operator bool() { return i; } private: int i; }; Flags windowState() { return Flags(); } int main() { if (b...
google
android
fused-params1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/parse/fused-params1.C
311
utf_8
a008f92d788da0c9f15cdcad4fc19251
// PR c++/8785 // { dg-do compile } template <int N,typename T> struct A // { dg-error "" } { typedef T X; template <int M> void foo (const A<M,X>&); }; template <int N,int M,typename T> void A<N,T>::foo (const A<M,X>&) {} // { dg-error "" }