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
visibility-6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/visibility-6.C
262
utf_8
f810d8d490c2163100b8092bb733b17d
/* Test visibility attribute on definition of global variable that has already had a forward declaration. */ /* { dg-require-visibility "" } /* { dg-final { scan-hidden "xyzzy" } } */ extern int xyzzy; int __attribute__((visibility ("hidden"))) xyzzy = 5;
google
android
fvisibility-inlines-hidden-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/fvisibility-inlines-hidden-2.C
369
utf_8
9f6874b06aea35e844ab40f0f69550c5
/* Test that -fvisibility-inlines-hidden doesn't affect static variables. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-options "-fvisibility-inlines-hidden" } */ /* { dg-final { scan-not-hidden "_ZZN3foo7my_funcEvE1x" } } */ struct foo { int my_func() { static int x; return x++; }...
google
android
template10
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/template10.C
354
utf_8
ccd6bef83b71532cf3971bb14899c94a
// PR c++/51930 // { dg-require-visibility "" } // { dg-options -fvisibility=hidden } // { dg-final { scan-not-hidden "_Z8testfuncI3fooEvv" } } struct foo { }; template<typename T> __attribute__ ((visibility("default"))) void testfunc(); template<typename T> void testfunc() { } template __attribute__ ((visibility("...
google
android
fvisibility
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/fvisibility.C
265
utf_8
3a72a00418a387a4b941484f8782c6dd
/* Test that -fvisibility affects class members. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-options "-fvisibility=hidden" } */ /* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */ class Foo { void method(); }; void Foo::method() { }
google
android
pragma
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/pragma.C
295
utf_8
56d8136e642cb24cb4da8e83e4f943f7
/* Test that #pragma GCC visibility affects class members. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */ #pragma GCC visibility push(hidden) class Foo { void method(); }; #pragma GCC visibility pop void Foo::method() { }
google
android
symbian2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/symbian2.C
345
utf_8
b5a114efbd6581d9e2dba525c8afe61a
// { dg-do compile { target arm*-*-symbianelf* } } // Class data should not be exported. // { dg-final { scan-hidden "_ZTI1A" } } // { dg-final { scan-hidden "_ZTS1A" } } // { dg-final { scan-hidden "_ZTV1B" } } // { dg-final { scan-hidden "_ZTI1B" } } // { dg-final { scan-hidden "_ZTS1B" } } struct A {}; struct B : v...
google
android
fvisibility-override1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override1.C
329
utf_8
05621e547003978809101724b30f453e
/* Test that -fvisibility does not override class member specific settings. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-options "-fvisibility=hidden" } */ /* { dg-final { scan-not-hidden "methodEv" } } */ class __attribute__ ((visibility ("default"))) Foo { void method(); }; void Foo::meth...
google
android
template6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/template6.C
390
utf_8
00cfc060a9c05e18b0256ee03319fad5
// Test for explicit visibility taking precedence // { dg-require-visibility "" } // { dg-final { scan-not-hidden "_ZN1AIiE1fEv" } } template <class T> struct A { // This attribute takes precedence over... __attribute ((visibility ("default"))) void f (); }; template <class T> void A<T>::f () { } // ...this att...
google
android
typeinfo3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/typeinfo3.C
796
utf_8
e47d06dbe235e9ad9f7950da814d16ef
// PR c++/35368 // { dg-require-visibility "" } #pragma GCC visibility push (hidden) #include <typeinfo> const std::type_info& info1 = typeid(int []); const std::type_info& info2 = typeid(int); enum E { e = 0 }; const std::type_info& info3 = typeid(E); struct S { S (); }; const std::type_info& info4 = typeid(S); con...
google
android
staticmemfuncts
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/staticmemfuncts.C
293
utf_8
f557224265cdd5e5b63d2ff669e9cabe
/* Test that setting visibility for static class member functions works. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */ class __attribute__ ((visibility ("hidden"))) Foo { static void method(); }; void Foo::method() { }
google
android
anon10
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/anon10.C
581
utf_8
a584d24c7f0c42d5d7b9adeaab7e6e35
// http://bugzilla.redhat.com/411871 // { dg-do compile } extern "C" int printf (const char *, ...); struct E { template <typename T> E (const volatile T&); template <typename T> E (T&); char x[64]; }; template<typename T> struct D { static E foo (E, ...); static int foo (T, int); }; template<typename T, ...
google
android
template3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/template3.C
859
utf_8
fb3ad5f97cd55ecbfba7cb114a0aeaf1
// PR c++/17470 // Test that we can give visibility to explicit template instantiations // { dg-require-visibility "" } // { dg-final { scan-hidden "_ZN1AIlE1fEl" } } // { dg-final { scan-hidden "_ZN1AIiE1fEi" } } // { dg-final { scan-not-hidden "_ZN1AIcE1fEc" } } // { dg-final { scan-hidden "_Z8identityIdET_S0_" } } ...
google
android
typeinfo2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/typeinfo2.C
330
utf_8
433eef96f06d882d10d4a620b7972e48
// PR c++/35368 // { dg-require-visibility "" } #pragma GCC visibility push (hidden) struct A { A(); virtual ~A() { } }; A::A() { } void foo(A *a) { delete a; } // { dg-final { scan-not-hidden "_ZTVN10__cxxabiv117__class_type_infoE" } } // { dg-final { scan-hidden "_ZTI1A" } } // { dg-final { scan-hidden "_Z...
google
android
assign1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/assign1.C
384
utf_8
8f362e9514ed23f575b695f7bbed54e6
/* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-final { scan-hidden "_ZN1DaSERKS_" } } */ struct B { B& operator=(const B&); }; struct __attribute__((visibility("hidden"))) D : public B { // The implicit assignment operator should be hidden. }; __attribute__((visibility("hidden"))) D d1; __att...
google
android
visibility-11
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/visibility-11.C
254
utf_8
810e1cafeb22e936dfd0834c4e0f0b42
// PR target/39175 // { dg-do compile } // { dg-require-visibility "" } // { dg-options "-O2 -fvisibility=hidden -fpic" { target fpic } } __attribute__((noinline)) int foo (int x) { return x; } int foo (int x); int bar (int x) { return foo (x); }
google
android
new1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/new1.C
206
utf_8
9a8d2d6de4dd65f8d370f81892ab674c
// { dg-require-visibility "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-not-hidden "_Znwj" } } void f() { new int; } void *g(); void *operator new(__SIZE_TYPE__) { return g(); }
google
android
arm3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/arm3.C
1,091
utf_8
f345cf40b6aa519d41d014b430e0ee2f
// { dg-do compile { target arm*-*-*eabi* } } // { dg-require-dll "" } // { dg-options "-fvisibility=hidden" } /* From ARM C++ ABI \S 3.2.5.5: A class should be exported unless explicitly tagged otherwise. This admonition applies even on DLL-based systems where hidden visibility is the default. We want -...
google
android
redecl1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/redecl1.C
352
utf_8
6fabf6d57deb8f7c060e33c41787a854
// Test that we complain about redeclaration with different visibility struct __attribute((visibility("hidden"))) B; struct __attribute((visibility("default"))) B; // { dg-error "visibility" } __attribute ((visibility ("hidden"))) void f(); // { dg-warning "previous" } __attribute ((visibility ("default"))) void f();...
google
android
staticdatamem
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/staticdatamem.C
396
utf_8
6014ef7f9e80dffce855a18d78bf2212
// PR c++/18925 // { dg-do compile { target ia64-*-linux* } } // { dg-options "-fPIC -fvisibility=hidden" } // { dg-final { scan-assembler-not "gprel" } } class __attribute__ ((visibility("default"))) Type { private: static long _staticTypeCount; public: Type() { _staticTypeCount++; } ~Type(); }; lon...
google
android
visibility-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/visibility-1.C
188
utf_8
b78959b2914362cd23e2ae31204c2305
/* Test visibility attribute on function definition. */ /* { dg-require-visibility "" } /* { dg-final { scan-hidden "_Z3foov" } } */ void __attribute__((visibility ("hidden"))) foo() { }
google
android
namespace1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/namespace1.C
583
utf_8
47546be923a94711f1c67844ab30b6b5
// PR c++/21764 // Test for namespace visibility attribute semantics. // { dg-require-visibility "" } // { dg-final { scan-hidden "_ZN3foo1fEv" } } // { dg-final { scan-hidden "_ZN3foo1gEv" } } // { dg-final { scan-hidden "_ZN3foo1A1mEv" } } // { dg-final { scan-hidden "_ZN3foo1tIiEEvv" } } // { dg-final { scan-not-hi...
google
android
namespace2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/namespace2.C
390
utf_8
eb42889d7ff5930cf589d7b103805b82
// PR c++/32470 // { dg-require-visibility "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-hidden "_ZN4Test4testEv" } } namespace std __attribute__((__visibility__("default"))) { template<typename _CharT> class basic_streambuf { friend void getline(); }; extern template class basic_str...
google
android
ms-compat-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/ms-compat-1.C
552
utf_8
7fbb869ca12df2407fdf22d0ba22baac
/* { dg-require-visibility "" } */ /* { dg-options "-fvisibility-ms-compat" } */ /* { dg-final { scan-not-hidden "_ZTI1S" } } */ /* { dg-final { scan-hidden "_ZTI1T" } } */ /* { dg-final { scan-not-hidden "_ZTI1U" } } */ /* { dg-final { scan-not-hidden "_ZN1U6hide_4Ev" } } */ class S { virtual void hide_2(); } hide...
google
android
prop1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/prop1.C
423
utf_8
14ca1521630ef80a83c404dfb225885d
// Test for propagation of visibility through template arguments // { dg-do compile } // { dg-require-visibility "" } // { dg-final { scan-hidden "_Z1fIN1N1AEEvT_" } } // { dg-final { scan-hidden "_Z1hIXadL_ZN1N1iEEEEvv" } } namespace N __attribute ((__visibility__ ("hidden"))) { struct A { }; int i; } template ...
google
android
fvisibility-inlines-hidden-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/fvisibility-inlines-hidden-3.C
576
utf_8
5c8d17e33f840c89b8d56a22d680b9d1
/* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-options "-fvisibility-inlines-hidden" } */ /* { dg-final { scan-not-hidden "_ZN1IIiE3fooEv" } } */ /* { dg-final { scan-not-hidden "_ZN1OIiE3fooEv" } } */ /* { dg-final { scan-hidden "_ZN1S3fooEv" } } */ template <class T> struct O { static inline vo...
google
android
typeinfo1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/typeinfo1.C
606
utf_8
90b35e4187c59e0ec19eadda1bd4254b
// PR c++/26984 // lazily generated typeinfos should not be affected by #pragma vis, but // they should be affected by the visibility of the type they describe. // { dg-require-visibility "" } // { dg-options "-fvisibility-inlines-hidden" } // { dg-final { scan-not-hidden "_ZTIPPi" } } // { dg-final { scan-not-hidden ...
google
android
visibility-5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/visibility-5.C
255
utf_8
29732097fb76e25fb0f4f81cb768aa61
/* Test visibility attribute on definition of a function that has already had a forward declaration. */ /* { dg-require-visibility "" } /* { dg-final { scan-hidden "_Z3foov" } } */ void foo(); void __attribute__((visibility ("hidden"))) foo() { }
google
android
noPLT
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/noPLT.C
377
utf_8
f281064d572b9d936c2688733534f68b
/* Test that -fvisibility=hidden prevents PLT. */ /* { dg-do compile { target fpic } } */ /* { dg-require-visibility "" } */ class Foo { public: void method(); }; void Foo::method() { } int main(void) { Foo f; f.method(); return 0; }
google
android
class1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/class1.C
556
utf_8
a8317da9e00ddec3e791760e8c323a20
// PR c++/26905 // Init should not be hidden, so calling it should use the PLT. // { dg-options "-fpic" } // { dg-do compile { target i?86-*-* x86_64-*-* } } // { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } // { dg-require-visibility "" } // { dg-require-effective-target fpic } #pragma GCC visibility push(hidden) st...
google
android
template8
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/template8.C
534
utf_8
db72d12d4b84a371d752b985fdf77e3a
// PR c++/35688 // { dg-require-visibility "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-hidden "_Z1gI1BEvT_" } } // { dg-final { scan-hidden "_Z1gI1AI1BEEvT_" } } // Test that template argument visibility takes priority even over an // explicit visibility attribute on a template. template <class...
google
android
visibility-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/visibility-2.C
220
utf_8
e84981f02dd8957761952e315dab0d86
/* Test that visibility attribute on declaration extends to definition. */ /* { dg-require-visibility "" } /* { dg-final { scan-hidden "_Z3foov" } } */ void __attribute__((visibility ("hidden"))) foo(); void foo() { }
google
android
anon3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/anon3.C
250
utf_8
251258dca8835128a261b3557e780874
// PR c++/31187 // Bug: the repeated declaration was confusing the compiler into // thinking that foo1 had language internal linkage. class foo { }; namespace { extern foo foo1; foo foo1; } template< foo * > class bar { }; bar< &foo1 > bar1;
google
android
local1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/local1.C
458
utf_8
f6ac3f034af2478f3ae3854a6b304cdb
// PR c++/19238 // Test that hidden visibility on an inline function is inherited by static // local variables and local classes. // { dg-require-visibility "" } // { dg-final { scan-hidden "_Z1fv" } } // { dg-final { scan-hidden "_ZZ1fvE1i" } } // { dg-final { scan-hidden "_ZZ1fvEN1A1fEv" } } __attribute ((visibilit...
google
android
pragma-override2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/pragma-override2.C
531
utf_8
11e144d2d30996f1e40b1996e7ccddba
/* Test that #pragma GCC visibility does not override class member specific settings. */ /* { dg-do compile } */ /* { dg-require-visibility "internal" } */ /* { dg-final { scan-assembler "\\.internal.*Foo.methodEv" { target { ! { *-*-solaris2* *-*-darwin* } } } } } */ /* { dg-final { scan-assembler "\\.(internal|hidden...
google
android
visibility-4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/visibility-4.C
224
utf_8
9915a08c47035d39990d7918773f9236
/* Test visibility attribute on forward declaration of global variable */ /* { dg-require-visibility "" } /* { dg-final { scan-hidden "xyzzy" } } */ extern int __attribute__ ((visibility ("hidden"))) xyzzy; int xyzzy = 5;
google
android
warn4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/warn4.C
330
utf_8
dc76fc17bcb2fe7dfe39be101a9bd6b5
// Warn if we try to give an instantiation visibility after it's already // been instantiated. // { dg-require-visibility "" } template <class T> struct A { void f (T); }; template <class T> void A<T>::f (T) { } A<double> ad; template struct __attribute ((visibility ("hidden"))) A<double>; // { dg-warning "already d...
google
android
anon4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/visibility/anon4.C
283
utf_8
a9ac9686caa2bc8878f0912bbd23359a
// PR c++/31903 // Test for anonymous namespace internal linkage, for typeinfo // { dg-do compile } // { dg-final { scan-assembler-not "globl.*_ZTIN*3fooE" } } #include <typeinfo> namespace { class foo { virtual void bar(); }; } const std::type_info &X = typeid(foo);
google
android
interface3a
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/interface3/interface3a.C
191
utf_8
eb64fad1b252e9235c6b09d561b8ef2c
// PR c++/26195 // { dg-do link } // { dg-additional-sources "interface3a2.cc" } // { dg-options "-I. -fno-inline" } #pragma implementation "dir1/interface3.cc" #include "dir1/interface3.h"
google
android
interface3b
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/interface3/interface3b.C
187
utf_8
955cb5adc4b67e74b78b47b9627b3c42
// PR c++/26195 // { dg-do link } // { dg-additional-sources "interface3b2.cc" } // { dg-options "-fno-inline" } #pragma implementation "dir2/interface3.cc" #include "dir1/interface3.h"
google
android
fp16-param-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/fp16-param-1.C
392
utf_8
af13ffd2949b1b68393279b7c1479281
/* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* Functions cannot have parameters of type __fp16. */ extern void f (__fp16); /* { dg-error "parameters cannot have __fp16 type" } */ extern void (*pf) (__fp16); /* { dg-error "parameters cannot have __fp16 type" } */ /* These sh...
google
android
fp16-mangle-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/fp16-mangle-1.C
458
utf_8
510487595bff75ac40231b3dab7ef969
/* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* Test mangling */ /* { dg-final { scan-assembler "\t.global\t_Z1fPDh" } } */ void f (__fp16 *x) { } /* { dg-final { scan-assembler "\t.global\t_Z1gPDhS_" } } */ void g (__fp16 *x, __fp16 *y) { } /* { dg-final { scan-assembler "\...
google
android
arm-fp16-ops-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-2.C
194
utf_8
888dbd717f5ba09e01e62616168dedf1
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do run { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee -ffast-math" } */ #include "arm-fp16-ops.h"
google
android
arm-fp16-ops-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-1.C
182
utf_8
9ad9eafed83197342bcdbe7afa3a727f
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do run { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ #include "arm-fp16-ops.h"
google
android
fp16-overload-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/fp16-overload-1.C
439
utf_8
aa12e114942ce574df5e9e8b8591c014
/* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* __fp16 values are autoconverted to float and should therefore be treated * just like float for overloading purposes. */ extern int frobnify (float x); extern int frobnify (double x); int g (void) { return frobnify ((__fp16)1...
google
android
arm-fp16-ops-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-3.C
189
utf_8
663c726f41ed12aa36bc9bd4c21021c7
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do run { target arm*-*-* } } */ /* { dg-options "-mfp16-format=alternative" } */ #include "arm-fp16-ops.h"
google
android
fp16-return-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/fp16-return-1.C
350
utf_8
f2d2f7aaff26c316dc7544bdd1220698
/* { dg-do compile { target arm*-*-* } } */ /* { dg-options "-mfp16-format=ieee" } */ /* Functions cannot return type __fp16. */ extern __fp16 f (void); /* { dg-error "cannot return __fp16" } */ extern __fp16 (*pf) (void); /* { dg-error "cannot return __fp16" } */ /* These should be OK. */ extern __fp16 *g (void);...
google
android
arm-fp16-ops-6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-6.C
727
utf_8
7b3de180584180ecc9cfa5543f4cb88c
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do compile { target arm*-*-* } } */ /* { dg-require-effective-target arm_fp16_ok } */ /* { dg-options "-mfp16-format=ieee -ffast-math" } */ /* { dg-add-options arm_fp16 } */ #include "arm-fp16-ops.h" /* We've specified options for hardwa...
google
android
arm-fp16-ops-8
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-8.C
619
utf_8
e05c10e4692341801a9878158cad27d7
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do compile { target arm*-*-* } } */ /* { dg-require-effective-target arm_neon_ok } */ /* { dg-options "-mfp16-format=ieee -ffast-math" } */ /* { dg-add-options arm_neon } */ #include "arm-fp16-ops.h" /* We've specified options for hardwa...
google
android
arm-fp16-ops-7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-7.C
607
utf_8
df15bedf7dd28c41919973661d580f91
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do compile { target arm*-*-* } } */ /* { dg-require-effective-target arm_neon_ok } */ /* { dg-options "-mfp16-format=ieee" } */ /* { dg-add-options arm_neon } */ #include "arm-fp16-ops.h" /* We've specified options for hardware float, so...
google
android
arm-fp16-ops-4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-4.C
201
utf_8
573825e33459b64f1c5a7ef17270180a
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do run { target arm*-*-* } } */ /* { dg-options "-mfp16-format=alternative -ffast-math" } */ #include "arm-fp16-ops.h"
google
android
arm-fp16-ops-5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/arm-fp16/arm-fp16-ops-5.C
715
utf_8
55ccc89665481af2e7e6fc67952359f9
/* Test various operators on __fp16 and mixed __fp16/float operands. */ /* { dg-do compile { target arm*-*-* } } */ /* { dg-require-effective-target arm_fp16_ok } */ /* { dg-options "-mfp16-format=ieee" } */ /* { dg-add-options arm_fp16 } */ #include "arm-fp16-ops.h" /* We've specified options for hardware float, in...
google
android
pr59255
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/pr59255.C
353
utf_8
4fac3d88407f206826089ade827e2297
// PR c++/59255 // { dg-options "-O2 -std=c++11" } struct S { __attribute__((noinline, noclone)) ~S () noexcept (true) { if (fn) fn (1); } void (*fn) (int); }; __attribute__((noinline, noclone)) void foo (int x) { if (x != 1) throw 1; } int main () { for (int i = 0; i < 100; i++) { ...
google
android
indir-call-prof
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/indir-call-prof.C
723
utf_8
4dc349da4967d37af86f2fe0ef0ffb87
/* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-profile" } */ struct A { A () {} virtual int AA (void) { return 0; } }; struct B : public A { B () {} virtual int AA (void) { return 1; } }; void * __attribute__((noinline,noclone)) wrap (void *p) { return p; } int main (void) { A a; B b; ...
google
android
partition3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/partition3.C
230
utf_8
ea1da784f9e49aa78c8f869baf3f3bd7
// PR middle-end/45566 // { dg-require-effective-target freorder } // { dg-options "-O -fnon-call-exceptions -freorder-blocks-and-partition" } int k; int main () { try { if (k) throw 6; } catch (...) { } }
google
android
indir-call-prof-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/indir-call-prof-2.C
2,025
utf_8
80d09170dea54500770122f27eddf44e
/* { dg-options "-O" } */ int foo1(void) { return 0; } int bar1(void) { throw 1; } void foo2(void) { } void bar2(void) { throw 1; } void __attribute__((noinline,noclone)) test1(void (*f)(void)) { (*f)(); } void __attribute__((noinline,noclone)) test2(void (*f)(void)) { (*f)(); } int __attribute__((noinline,noclone)) t...
google
android
pr53460
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/pr53460.C
482
utf_8
6619c40836c140325a5ea9b8f43ee291
// { dg-options "-O" } template<typename T> class OwnPtr { public: ~OwnPtr(); }; template<class T> class GlyphMetricsMap { public: GlyphMetricsMap() { } OwnPtr<int> m_pages; }; class SimpleFontData { public: void boundsForGlyph() const; }; inline __attribute__((__always_inline__)) void SimpleFontData::...
google
android
inline_mismatch_args
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/inline_mismatch_args.C
752
utf_8
d5c1aa2747e777e103754805cd94dbb2
/* { dg-options "-O2 -fdump-tree-einline" } */ class DocId { public: DocId() { } DocId(const DocId &other) { } }; int g; class Base { public: virtual void Foo(DocId id) { g++; } }; class Super: public Base { public: void Foo(DocId id) { } void Bar(Base *base, DocId id) __attribute__((noinline)); }; void Sup...
google
android
partition2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/partition2.C
206
utf_8
f15cd67e323998a8316039d5d94282ed
// PR middle-end/45458 // { dg-require-effective-target freorder } // { dg-options "-fnon-call-exceptions -freorder-blocks-and-partition" } int main () { try { throw 6; } catch (...) { } }
google
android
partition1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/partition1.C
1,060
utf_8
912d73328c4d61995aa0fc60ff274036
/* { dg-require-effective-target freorder } */ /* { dg-options "-O2 -freorder-blocks-and-partition" } */ struct A { A () __attribute__((noinline)); ~A () __attribute__((noinline)); }; A::A () { asm volatile ("" : : : "memory"); } A::~A () { asm volatile ("" : : : "memory"); } int bar () __attribute__((noinline)); voi...
google
android
pr51719
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/tree-prof/pr51719.C
275
utf_8
fb8bbe2d556b451e4da43891336e8c73
// PR tree-optimization/51719 // { dg-options "-O -fpartial-inlining" } int bar (void) { throw 1; } int __attribute__ ((noinline, noclone)) foo (int (*f) (void)) { try { return (*f) (); } catch (...) { } return 0; } int main () { return foo (bar); }
google
android
call4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/call4.C
537
utf_8
262e2a044016a13ee93fb310eff38bd2
// { dg-do compile } // PR 32839. Default arguments propagated through the type system to // an indirect call. template<typename T> struct TPL { enum Whatever {e1, e2}; static void Quux (int i = e1 | e2); }; template <typename F> void DoIt (F fun) { fun (); // { dg-error "too few arguments" } } void Foo () { ...
google
android
bitfield6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/bitfield6.C
82
utf_8
fd46219c0040c2b4569b36afd840025b
// PR c++/30274 struct S { bool x : 4; }; S s; void f() { ++s.x = false; }
google
android
sizeof1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/sizeof1.C
99
utf_8
0aff78a2cc7b554bd2a283f999880d26
// PR c++/12989 struct A { int foo() { return sizeof(bar); } // { dg-error "" } int bar(); };
google
android
bitfield5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/bitfield5.C
162
utf_8
68c100f8b0f867ba9c41cf4b1287daeb
// PR c++/30274 // { dg-do run } struct S { bool x : 4; }; S s; int main() { s.x++; if (s.x != 1) return 1; ++s.x; if (s.x != 1) return 2; }
google
android
anew1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/anew1.C
501
utf_8
4cf16a5e56e9a805e8cab8129d3ec12c
// { dg-do run } // PR 11228: array operator new, with zero-initialization and a variable sized array. // Regression test for PR #include <new> #include <stdlib.h> #include <string.h> int* allocate(int n) { void *p; p = malloc(n * sizeof (int)); memset (p, 0xff, n * sizeof(int)); return new (p) int[n](); } int...
google
android
bool2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/bool2.C
212
utf_8
863ab5de11960b6302468e16665e31ec
// { dg-do compile } // make sure that a typedef for a bool will have the // the same results as a bool itself. typedef bool my_bool; int main() { my_bool b = false; b--; // { dg-error "" } return 0; }
google
android
cast1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cast1.C
86
utf_8
2ef606c671097dddd5d5000c30530ba5
struct S; // { dg-error "forward" } void f(S* p) { ((S) (*p)); } // { dg-error "" }
google
android
cast4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cast4.C
314
utf_8
ed8e65f6a9fb8340f4d8881b00bc8a62
// { dg-do run } // PR c++/22132 extern "C" void abort (); struct foo { int a; int b; }; class Foobar : public foo { public: Foobar() { a = 1; b = 2; } virtual ~Foobar() {} }; Foobar obj; const Foobar* objPtr = &obj; foo* f = (foo*)objPtr; int main () { if (f->a != 1 || f->b != 2) abort (); }
google
android
cast3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cast3.C
287
utf_8
43b3f0cf8dc0665f8a82af5379392da1
// { dg-do compile } enum MyState { QUIT = 0, START, STOP, PAUSE }; double GetDouble() { return 1.0; } int main() { MyState the_state; the_state = (MyState)GetDouble(); // { dg-bogus "invalid cast" } return 0; }
google
android
for2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/for2.C
235
utf_8
cd7f4946b61f298e733a92601139e8ef
// { dg-do compile } // PR c++/17661 // We used to try to create a temprary for the condition // expression in the for which was wrong. struct C { C (const C &x); }; C &f(); void breakme (C j, bool k) { for (;; k ? j : f()) ; }
google
android
cast9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cast9.C
140
utf_8
8b3e4787ac841e3157f9c47278119629
// PR c++/27177 struct Z {}; struct A : Z {}; Z* implicitToZ (Z*); struct B : A { static const int i = sizeof(implicitToZ((B*)0)); };
google
android
lval1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/lval1.C
110
utf_8
e9c430238d4efd57c1f944c12443406d
void f () { int n; (char) n = 1; // { dg-error "" } }
google
android
for1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/for1.C
161
utf_8
4d4bd4c17e114aaf9f89d2929fc74cfe
// PR c++/13663 struct S { void f(); }; void g(int); void g(double); void h () { S s; for (;;s.f); // { dg-error "" } for (;;g); // { dg-error "" } }
google
android
unary1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/unary1.C
264
utf_8
8f5d773ab2c0fb76d721a88e7936dd2a
// { dg-do compile } // Unary plus (but not unary minus) can be applied to pointer types void *p; void f(void) { -p; // { dg-error "wrong type argument" } +p; } template <int> void g(void) { -p; // { dg-error "wrong type argument" } +p; }
google
android
cond8
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cond8.C
185
utf_8
40070278213343c0b01841f7df7492ae
// PR c++/22434 // { dg-options "" } struct A { A(void*); // { dg-error "initializing" } ~A(); }; void foo(const int i, bool b) { b ? A(0) : i; // { dg-error "conversion" } }
google
android
bool1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/bool1.C
285
utf_8
6b31d632588060d56a7701a0a12216c8
// { dg-do run } // PR C++/29295 // make sure that a typedef for a bool will have the // the same results as a bool itself. extern "C" void abort(); typedef bool my_bool; int main() { my_bool b = false; int i; b++; b++; i = b; if (i != 1) abort (); return 0; }
google
android
dtor4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/dtor4.C
89
utf_8
96485302525dddaf878ba9c9bd2027a5
typedef int C; typedef double D; void f () { C o; o.D::~C (); // { dg-error "" } }
google
android
cond4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cond4.C
250
utf_8
d30ef5af28e6363dab6713f12d513bc9
// PR c++/13971 struct QChar { static const QChar null; }; struct QCharRef { operator QChar() const; }; struct QString { QCharRef operator[](int i); }; QChar fillParagraph(QString s, int psi) { return psi ? QChar::null : s[psi]; }
google
android
sizeof3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/sizeof3.C
93
utf_8
b39edf0129c7b02d40dd1f8360666a7c
// PR c++/15337 class CCC; int main() { sizeof(CCC); return 0; } // { dg-error ".*CCC.*" }
google
android
static_cast6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/static_cast6.C
260
utf_8
b908cbd89626f67c64bd034d95994258
// PR c++/21853 struct blah { int a; }; int main( int argc, char ** argv ) { int blah::* ptdma = &blah::a; const void *ptdmv = static_cast< void * >( &ptdma ); int blah::* const ptdmb = * static_cast< int blah::* const * >( ptdmv ); return 0; }
google
android
call2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/call2.C
312
utf_8
11d589082fe10f4614aafaae41200569
// { dg-do compile } // PR c++/12184. ICE class C; class D; bool mm(D); void g(C& f) { mm(f); // { dg-error "parameter" "" } }
google
android
anew2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/anew2.C
518
utf_8
c272c27e69863d4ba063be24a228ce5f
// { dg-do run } // PR 11228: array operator new, with zero-initialization and a variable sized array. // Regression test for PR #include <new> #include <stdlib.h> #include <string.h> double* allocate(int n) { void *p; p = malloc(n * sizeof (double)); memset (p, 0xff, n * sizeof(double)); return new (p) double...
google
android
const1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/const1.C
163
utf_8
89913df130d2e40e91c042ff5d6c302d
// PR c++/57551 extern unsigned long ADDR; unsigned long f(){ const unsigned long* const var=&ADDR; const unsigned long retval=var[1]; return retval; }
google
android
bitfield9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/bitfield9.C
298
utf_8
f7feef6eca2fd890a8914fedc2a62ddf
// PR c++/32346 // { dg-do run } // { dg-options "-Wno-overflow" } extern "C" void abort(); struct S { long long i : 32; }; void f(int i, int j) { if (i != 0xabcdef01) abort(); if (j != 0) abort(); } void g(S s) { f(s.i, 0); } int main() { S s; s.i = 0xabcdef01; g(s); }
google
android
copy1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/copy1.C
365
utf_8
40c29dc173bf365777a7de4d0970b286
// PR c++/14035 // { dg-do run } extern "C" void abort(); struct Blob { int x, y; Blob() { } Blob(const Blob &b) { abort (); } }; struct Blobby : public Blob { }; struct Wooly { operator const Blobby & () { return myBlobby; } Blobby myBlobby; }; void catcher(const Blob &blo) { } int main() { Wo...
google
android
unary3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/unary3.C
148
utf_8
50101473c07e54911f512727ba7f6cd4
// PR c++/41131 // { dg-do compile } struct X { enum E { a = 100 }; }; int main () { X x; (void) &x.a; // { dg-error "lvalue required" } }
google
android
string-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/string-1.C
220
utf_8
a2cb6541b849d8c33282f342e26447ca
// { dg-do compile } // This testcase used to seg fault (PR c++/38648) // { dg-prune-output "initializer lists" } char a[1]; int foo( { a = ""; // { dg-error "" } return 0; // { dg-error "" } } // { dg-error "" }
google
android
cond9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cond9.C
346
utf_8
d66ca920348778bbeb8e0826f1345ba0
// PR c++/27666 struct A { // { dg-message "A" } A(int); // { dg-message "A" } }; void foo(volatile A a) { 1 ? a : 0; // { dg-error "match|temporary" } // { dg-message "candidate" "candidate note" { target *-*-* } 8 } 1 ? 0 : a; // { dg-error "match|temporary" } // { dg-message "candidate" "candidate note"...
google
android
crash-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/crash-1.C
173
utf_8
5943e958df776a88c39dc200ec5d291c
// C++ PR/10476 struct X { X(); X(const X& __str); }; X const bar(); void foo() { X y; (true ? y : bar()); }
google
android
static_cast4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/static_cast4.C
122
utf_8
3768ee52241cd5c440a86d1ecde9f029
class C { public: explicit C(int) {} }; int main() { int i = 0; static_cast<C>(i); return 0; }
google
android
static_cast5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/static_cast5.C
326
utf_8
10a6604802b4ce916144cdc9ac8a3fc0
void ambig() { struct A {}; struct B : A {}; struct C : A {}; struct D : B, C {}; D d; A* ap = static_cast<B*> (&d); D* db = static_cast<D*> (ap); // { dg-error "" } D& dr1 = static_cast<D&> (*ap); // { dg-error "" } A& ar = static_cast<C&> (d); D& dr = static_cast<D&> (ar); // { dg-error ""...
google
android
anew3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/anew3.C
545
utf_8
88cfba5bf8bdd95998bb48be16446076
// { dg-do run } // PR 11228: array operator new, with zero-initialization and a variable sized array. // Regression test for PR #include <new> #include <stdlib.h> #include <string.h> struct X { int a; double b; }; X* allocate(int n) { void *p; p = malloc(n * sizeof (X)); memset (p, 0xff, n * sizeof(X)); r...
google
android
static_cast1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/static_cast1.C
62
utf_8
89139f7a57a0c8dd7c105624b328d423
void foo(int x) { static_cast<const unsigned int&>(x); }
google
android
stdarg1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/stdarg1.C
147
utf_8
d48c1940b3fda25f577c09c3d5b15f9c
// PR c++/23840 #include <stdarg.h> struct S { int f(int); }; void f(int i, ...) { va_list ap; va_start (ap, i); va_arg (ap, S).f(0); }
google
android
cond2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cond2.C
221
utf_8
9940c2a62890f4870b29a68d36aee007
struct Term { }; struct Boolean : Term { explicit Boolean(bool); }; struct IsZero : Term { Term *eval(); }; Term* IsZero::eval() { return true ? new Boolean(false) : this; // { dg-error "conditional expression" } }
google
android
member-of-incomplete-type-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/member-of-incomplete-type-1.C
228
utf_8
0b5e348c921017780a4e80249591b84c
struct A; int main() { A::g(); // { dg-error "incomplete" "" } }
google
android
cast8
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/cast8.C
95
utf_8
c9eba403b9c8b560219498d333b0acb4
// PR c++/29886 struct A { static int x[1]; }; void foo(int i) { if (int(A::x[i])) {} }
google
android
bitfield4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/bitfield4.C
173
utf_8
acdc35a060321042e2d5d8bd77774fac
// PR c++/30274 // { dg-do link } struct S { bool x : 4; }; S s; template <typename T> void f(T); template <> void f(bool) {} int main() { f(s.x++); f(++s.x); }
google
android
pr29066
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/pr29066.C
451
utf_8
60bb03281297f707f9874467907ac6cf
// PR c++/29066 // Test pointer to member function comparison // { dg-do run } extern "C" void abort (void); struct X { virtual void a(void)=0; }; struct Z : public X { void a(void) {} }; void f(X *obj) { void (X::*xp)(void) = 0; void (X::*xp2)(void) = 0; xp = &X::a; if (xp == xp2) { abort(...
google
android
bool4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/expr/bool4.C
221
utf_8
207aa1057e3c1166054d2119be784a50
// { dg-do compile } // make sure that a typedef for a bool will have the // the same results as a bool itself. typedef volatile bool my_bool; int main() { my_bool b = false; b--; // { dg-error "" } return 0; }