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
has_nothrow_assign
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/has_nothrow_assign.C
2,517
utf_8
b05584d72eb4e8994ea1fa3ba006fa66
// { dg-do run } #include <cassert> struct A { double a; double b; }; struct B { A a; }; struct C : public A { }; struct D { D& operator=(const D&) throw() { return *this; } }; struct E { E& operator=(const E&) throw(int) { return *this; } }; struct E1 { E1& operator=(const E1&) throw(int) { throw int(); re...
google
android
altivec-8
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-8.C
757
utf_8
683588ba7d8e9b0d8436b68f5b28c8cb
/* { dg-do compile { target powerpc*-*-* } } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* This test case exercises intrinsic/argument combinations that, while not in the Motorola AltiVec PIM, have nevertheless crept into the AltiVec vernacular over the years. */ #include <altivec.h> void foo (v...
google
android
complit2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/complit2.C
271
utf_8
7350965e2763a3a6e1d4346deaa1e94e
// PR c++/12726 // { dg-options "" } struct A { A(); A(const A&); A(int); }; struct B { A a; }; void foo() { B b; b = (B){0}; }
google
android
ivdep-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/ivdep-1.C
250
utf_8
db0b295df95be25a97d67c002c45679e
// PR c++/60267 // { dg-do compile } // { dg-options "-O3" } template <int N> void foo (int *a, int *b, int *c) { #pragma GCC ivdep for (int i = 0; i < N; i++) a[i] = b[i] * c[i]; } void bar (int *a, int *b, int *c) { foo <64> (a, b, c); }
google
android
vector19
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector19.C
947
utf_8
469fe48c5c1eb5d2feb242f36fc84c1a
/* { dg-do compile { target c++11 } } */ typedef double vec __attribute__((vector_size(2*sizeof(double)))); typedef signed char vec2 __attribute__((vector_size(16))); typedef unsigned char vec2u __attribute__((vector_size(16))); void f (vec *x, vec *y, vec *z) { *x = (*y < *z) ? *x : *y; } void g (vec *x, vec *y, ...
google
android
instantiate1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/instantiate1.C
700
utf_8
6cfdb6711dd7c538f7c4411216e0cc5b
// Test that 'extern template' suppresses instantiations. // { dg-do compile } // { dg-options "" } template <class T> void f (T) { } extern template void f (int); template <class T> struct A { void f (); }; template <class T> void A<T>::f () { } extern template struct A<int>; // { dg-final { scan-assembler-not "\...
google
android
stmtexpr12
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr12.C
128
utf_8
9d43ea9a813c48446105372589470afa
// PR c++/29000 // { dg-options "" } template<int> int foo() { return ({foo;})==0; // { dg-error "insufficient context" } }
google
android
vlm1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vlm1.C
170
utf_8
11bcf00b0a6402fad7b9569e02318690
// { dg-options "" } template <class T> struct A {}; struct B { static const int s; A<int[s]> a; // { dg-error "array|template" } }; const int B::s=16; B b;
google
android
vector21
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector21.C
802
utf_8
e7810287820bdfc8b17db534b31812a3
/* { dg-do compile } */ /* { dg-options "-O -fdump-tree-gimple" } */ typedef int vec __attribute__ ((vector_size (4 * sizeof (int)))); void f1 (vec *x) { *x = (*x >= 0) ? *x : -*x; } void f2 (vec *x) { *x = (0 < *x) ? *x : -*x; } void g1 (vec *x) { *x = (*x < 0) ? -*x : *x; } void g2 (vec *x) { *x = (0 > *x) ...
google
android
no-asm-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/no-asm-2.C
406
utf_8
74e645db0d8a1393088286f041e696d6
// { dg-do compile } // { dg-options "-fno-asm" } // Verify that the keyword asm and the GNU extension typeof are not // recognized as keywords when using -fno-asm. Having -fno-asm affect // a standard C++ keyword seems strange, but that is existing // behaviour. If that behaviour changes, this test should change. ...
google
android
pr53605
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/pr53605.C
345
utf_8
098b8140ebbd429d9c2b2419717ce9d6
// { dg-do compile } // Avoid -pedantic-error default // { dg-options "" } template <bool lhs_is_null_literal> class EqHelper { public: template <typename T1, typename T2> static int Compare( const T1& expected, const T2& actual); }; void foo(){ static const int kData[] = {}; ::EqHelper<false>::...
google
android
bitfield1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/bitfield1.C
262
utf_8
923b176668f5084b5c9e372d30ecd044
// PR c++/30328 // { dg-do link } // { dg-options "" } struct S { signed int a:17; } x; typedef typeof (x.a) foo; template <class T> T* inc(T* p) { return p+1; } int main () { foo x[2] = { 1,2 }; int y[2] = { 1,2 }; *inc(x); *inc(y); return 0; }
google
android
has_nothrow_copy-5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/has_nothrow_copy-5.C
171
utf_8
c7d029ba5056f7f575facbbb1d33c0ac
// PR c++/36872 // { dg-do run } #include <cassert> struct S { S (const S&) throw (); S (int) throw (int); }; int main () { assert (__has_nothrow_copy (S)); }
google
android
builtin11
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/builtin11.C
209
utf_8
0159469d5f1eba2e6013c4c9e15f33ea
// PR c++/40138 // { dg-options "-Wall" } void foo(int i, ...) { V v; // { dg-error "not declared|expected" } __builtin_va_start(v, i); // { dg-error "not declared" } i = __builtin_va_arg(v, int); }
google
android
attrib6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib6.C
339
utf_8
76284b29c6fce52f56ddbcc04acd3a97
// // Test that the nothrow attribute is working correctly. // // Written by Richard Henderson, 26 May 2002. // { dg-do link } extern void foo() __attribute__((nothrow)); extern void link_error(); int main() { try { foo(); } catch (...) { link_error(); } } void foo() { }
google
android
utf32-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/utf32-2.C
777
utf_8
0118e635abdac5b319fea36581048d3a
/* Test the support for char32_t* string constants. */ /* { dg-do run { target c++11 } } */ /* { dg-options "-Wall -Werror" } */ extern "C" void abort (void); const static char32_t *s0 = U"ab"; const static char32_t *s1 = U"a\u0024"; const static char32_t *s2 = U"a\u2029"; const static char32_t *s3 = U"a\U00064321"; #d...
google
android
attrib9
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib9.C
350
utf_8
db629587302d47a98b453a1702e900c9
class __attribute__((unused)) C; struct __attribute__((unused)) S; union __attribute__((unused)) U; enum e {}; enum __attribute__((unused)) e; // { dg-warning "already defined" } struct __attribute((unused)) B *p; // { dg-warning "attributes" } template <class T> struct A { }; struct __attribute((unused)) A<int>; //...
google
android
timevar1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/timevar1.C
235
utf_8
18d30ada6b99d67b123655316ee84e3f
// PR c++/52248 // { dg-options "-ftime-report" } // { dg-prune-output "wall" } // { dg-prune-output "times" } // { dg-prune-output "TOTAL" } // { dg-prune-output "checks" } void foo () { goto lab; // { dg-error "not defined" } }
google
android
fvisibility-inlines-hidden-4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/fvisibility-inlines-hidden-4.C
755
utf_8
bc5e3935f9fd3f5f54ca89ee581b2c03
/* PR c++/30066: Test that -fvisibility-inlines-hidden affects functions. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-options "-fvisibility-inlines-hidden" } */ /* { dg-final { scan-hidden "_Z3barv" } } */ /* { dg-final { scan-not-hidden "_ZZ3barvE1n" } } */ /* { dg-final { scan-not-hidden "_Z...
google
android
anon5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/anon5.C
155
utf_8
78ae1691e214193d8b3ffd248e757842
// PR c++/32596 // { dg-do compile } namespace { template<class T> inline void char_less(void) { } template<> inline void char_less<char>(void) { } }
google
android
namespace3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/namespace3.C
169
utf_8
add25a0c0d2bcb8abe77dc78d0e41452
// PR c++/41774 // { dg-do compile } namespace std __attribute__ ((__visibility__ ("default"))) { #pragma GCC visibility pop // { dg-warning "no matching push for" } }
google
android
guard1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/guard1.C
485
utf_8
e803713a7240f84bdbab19c61f163d46
// { dg-options "-fvisibility=hidden" } // { dg-require-visibility "" } // { dg-final { scan-not-hidden "_ZGVZN5otherclEvE4s_cd" } } extern "C" int printf (const char *, ...); #define DLLEXPORT __attribute__ ((visibility("default"))) struct class_data { int apple; class_data() { printf("non trivial ctor\n"); } }...
google
android
template12
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/template12.C
324
utf_8
ba11348446ec391f21e6b8e4d8f190a9
// { dg-require-visibility "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-not-hidden "_ZN1aI1bE1cE" } } template <class T> class __attribute__((visibility("default"))) a { public: /* A */ static int c; }; class __attribute__((visibility("default"))) b : a <b> {}; template<> /* B */ int a<b>::c =...
google
android
anon8
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/anon8.C
527
utf_8
9eeaf3d81bc897ecd4a9796596ed8747
// PR c++/34213 // { dg-do compile } template <void (*fn) ()> void call () // { dg-message "note" } { fn (); } namespace { struct B1 { static void fn1 () {} static void fn4 (); }; void fn3 () {} void B1::fn4 () {} static void fn5 () {} } int main () { struct B2 { static void fn2 () {}...
google
android
arm1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/arm1.C
749
utf_8
f0845a29f305c3f9de0874e37218ab32
// { dg-do compile { target arm*-*-eabi* arm*-*-symbianelf* } } // { dg-require-dll "" } // { dg-options "-fvisibility=hidden" } // Most class data should be exported. // { dg-final { scan-not-hidden "_ZTV1S" } } // { dg-final { scan-not-hidden "_ZTI1S" } } // { dg-final { scan-not-hidden "_ZTS1S" } } // { dg-final { s...
google
android
anon11
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/anon11.C
186
utf_8
369bf591deaf5f4fbb8bbc60afb36331
// PR c++/55877 // { dg-final { scan-assembler-not "\\.local" } } typedef struct { typedef enum { X, Y } A; typedef struct { } B; struct C { }; } D; D d; D::A a; D::B b; D::C c;
google
android
template7
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/template7.C
454
utf_8
b9c473338c01a3d603ac21bdb245de64
// PR c++/35688 // { dg-require-visibility "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-hidden "_ZN1s6vectorI1AEC1Ev" } } // { dg-final { scan-hidden "_ZN1s3fooI1AEEvT_" } } namespace s __attribute__((visibility("default"))) { template <class T> class vector { public: vector() { } }...
google
android
visibility-3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/visibility-3.C
204
utf_8
b9dc9fa8adc27f38cdd6d69f47df7504
/* Test visibility attribute on forward declaration of global variable */ /* { dg-require-visibility "" } /* { dg-final { scan-hidden "xyzzy" } } */ int __attribute__((visibility ("hidden"))) xyzzy = 5;
google
android
overload-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/overload-1.C
263
utf_8
088ee3648d1129db2680023bfe6d21ea
/* Test that visibility of function parameters propagates to an undecorated function. */ /* { dg-require-visibility "" } /* { dg-final { scan-hidden "_Z3fooP8a_struct" } } */ struct __attribute__((visibility("hidden"))) a_struct; void foo(a_struct * p) { }
google
android
fvisibility-override2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/fvisibility-override2.C
342
utf_8
da4518aa692947ef4c1cc1de9617e5d0
/* Test that -fvisibility does not override class member specific settings. */ /* { dg-do compile } */ /* { dg-require-visibility "internal" } */ /* { dg-options "-fvisibility=hidden" } */ /* { dg-final { scan-not-hidden "Foo.methodEv" } } */ class Foo { __attribute__ ((visibility ("internal"))) void method(); }; v...
google
android
warn5
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/warn5.C
240
utf_8
40de40133f2bc2f79491601ee0e6ed42
// PR c++/40145 // { dg-do compile } // { dg-require-visibility "" } // { dg-options "-fvisibility=hidden" } struct EditorInternalCommand { }; static void createCommandMap() { struct CommandEntry { EditorInternalCommand command; }; }
google
android
visibility-7
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/visibility-7.C
375
utf_8
47a67b29187cc189e64d6b11782f0dba
/* Test warning from conflicting visibility specifications. */ /* { dg-require-visibility "protected" } */ /* { dg-final { scan-hidden "xyzzy" } } */ extern int __attribute__((visibility ("hidden"))) xyzzy; /* { dg-warning "previous declaration here" "" } */ int __attribute__((visibility ("protected"))) xyzzy = 5; ...
google
android
symbian1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/symbian1.C
523
utf_8
871b12330fdac390784bb00c45740be6
// { dg-do compile { target arm*-*-symbianelf* } } // Class data should not be exported. // { dg-final { scan-hidden "_ZTV2K3" } } // But the constructor and destructor should be exported. // { dg-final { scan-not-hidden "_ZN2K3C2Ev" } } // { dg-final { scan-not-hidden "_ZN2K3D0Ev" } } class __declspec(notshared) K3 {...
google
android
visibility-9
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/visibility-9.C
539
utf_8
52a68707f7a31ec98e42c99f237d00db
// Test that dllimport'd functions have default visibility. // { dg-require-visibility "" } // { dg-require-dll "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-not-hidden "_Z2f1v" } } // { dg-final { scan-not-hidden "_ZN1S2f3Ev" } } extern void __attribute__((dllimport)) f1(); void f2() { f1(); } ...
google
android
template2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/template2.C
540
utf_8
7e94246b97c378892a5f1475a28f3a44
// PR c++/27000 // Implicitly instantiated templates should not be affected by // #pragma visibility. /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-final { scan-not-hidden "_ZN1SIiED1Ev" } } */ /* { dg-final { scan-not-hidden "_ZN1SIiEC1ERKi" } } */ template <class T> struct S { S (const T &); ...
google
android
arm2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/arm2.C
285
utf_8
06b4df0aabdec7190ff116eb91fec899
// { dg-do compile { target arm*-*-*eabi* arm*-*-symbianelf* } } // Class data should be exported. // { dg-final { scan-not-hidden "_ZTV1S" } } // { dg-final { scan-not-hidden "_ZTI1S" } } // { dg-final { scan-not-hidden "_ZTS1S" } } struct S { virtual void f(); }; void S::f() {}
google
android
anon2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/anon2.C
183
utf_8
f4d13decfaa5840017b392ae099bdac9
// Test for propagation of anonymous namespace internal linkage // { dg-do compile } // { dg-final { scan-assembler-not "globl.*_Z1fv" } } namespace { struct A { }; } A f () { }
google
android
template11
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/template11.C
426
utf_8
f2d0fe8c547726edfb229b573fea5113
// PR c++/51930 // { dg-require-visibility "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-not-hidden "_ZN13template_testI4testE8functionEv" } } struct test { }; template<typename T> struct template_test { __attribute__((visibility("default"))) void function(); }; template<typename T> void temp...
google
android
template1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/template1.C
1,137
utf_8
bdf427338b64f10a5d155e082663891c
// PR c++/19134 // -fvisibility-inlines-hidden doesn't apply to non-inline specializations // { dg-require-visibility "" } // { dg-options "-fvisibility-inlines-hidden" } // { dg-final { scan-not-hidden "_ZN1AIiE3fooEv" } } // { dg-final { scan-not-hidden "_ZN1AIiE3barEv" } } // { dg-final { scan-hidden "_ZN1AIlE3fooE...
google
android
template9
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/template9.C
300
utf_8
926acd646b31535dbeb0478bc820dab7
// PR c++/51813 // { dg-require-visibility "" } // { dg-options -fvisibility=hidden } // { dg-final { scan-not-hidden "_ZN1N1fI1AEEvT" } } struct A { }; namespace N __attribute((visibility("default"))) { template <class T> void f(T) { } extern template void f(A); } int main() { N::f(A()); }
google
android
anon9
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/anon9.C
146
utf_8
42860d01e474344b2b2c19b124253c3c
// PR c++/34238 // { dg-do compile } namespace { template <typename T = int> struct A { static const bool a = true; }; } struct A<> a;
google
android
memfuncts
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/memfuncts.C
279
utf_8
d7e8086561549b3830b812ca5fcd9dd6
/* Test that setting visibility for class member functions works. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */ class __attribute__ ((visibility ("hidden"))) Foo { void method(); }; void Foo::method() { }
google
android
anon7
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/anon7.C
404
utf_8
ad8b5022bf6c7f64ed5401d01e61af62
// PR c++/34094 // { dg-do compile } namespace { struct A { static int bar (); static int i; // { dg-error "used, but not defined" "" { xfail *-*-* } } static int j; static int k; static int l; static const int m = 16; static const int n = 17; }; int A::j = 4; int A::k; const int...
google
android
fvisibility-inlines-hidden
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/fvisibility-inlines-hidden.C
330
utf_8
18d8a1310b12aec50bcac70a4583e44d
/* Test that -fvisibility-inlines-hidden affects class members. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-options "-fvisibility-inlines-hidden" } */ /* { dg-final { scan-hidden "_ZN3Foo6methodEv" } } */ class Foo { public: void method() { } }; int main(void) { Foo f; f.method(); re...
google
android
visibility-8
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/visibility-8.C
1,316
utf_8
1e3d15af5ef5d1e7ce91f6fb5b2ce876
// Test that a definition marked with dllexport has default // visibility. // { dg-require-visibility "" } // { dg-require-dll "" } // { dg-options "-fvisibility=hidden" } // { dg-final { scan-not-hidden "_ZN1A1fEv" } } // { dg-final { scan-not-hidden "_Z1gv" } } // { dg-final { scan-not-hidden "_Z1hv" } } // { dg-fina...
google
android
template4
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/template4.C
1,555
utf_8
f5ac27fd889272cadd85a3d10b84b964
// Test for explicit visibility on template vs. #pragma vis at explicit // instantiation/specialization point for plain function templates. // { dg-require-visibility "" } // { dg-final { scan-hidden "_Z3fooIdEvT_" } } // { dg-final { scan-hidden "_Z3fooIlEvT_" } } // { dg-final { scan-hidden "_Z3fooIcEvT_" } } // { d...
google
android
warn3
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/warn3.C
567
utf_8
3a38b55c777fae7a929a7353e32e9c85
// Tests for various visibility mismatch situations. // { dg-require-visibility "" } // { dg-final { scan-not-hidden "_ZN1A1fEv" } } struct __attribute ((visibility ("hidden"))) A { // This is OK, A::f gets default visibility. __attribute ((visibility ("default"))) void f (); }; void A::f() { } // This gets a ...
google
android
visibility-10
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/visibility-10.C
734
utf_8
7f98e383bb2386437d2d7b37cf32a6b8
// { dg-require-visibility "" } // { dg-require-dll "" } extern void __attribute__((dllimport, visibility("hidden"))) f1(); // { dg-error "visibility" } extern void __attribute__((visibility("hidden"), dllimport)) f2(); // { dg-error "visibility" } extern void __attribute__((dllexport, visibility("hidden"))) ...
google
android
anon1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/anon1.C
174
utf_8
a7cd8c7f7fec871a0af30c9bd8122ba5
// PR c++/21581 // Test for anonymous namespace internal linkage // { dg-do compile } // { dg-final { scan-assembler-not "globl.*_ZN.*1fEv" } } namespace { int f() { } }
google
android
virtual
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/virtual.C
481
utf_8
73717f63993d617e09ce4b4ee1dc7dcc
/* Test that setting visibility for class affects virtual table, VTT and type_info name and node. */ /* { dg-do compile } */ /* { dg-require-visibility "" } */ /* { dg-final { scan-hidden "ZTV3Foo" } } */ /* { dg-final { scan-hidden "ZTT3Foo" } } */ /* { dg-final { scan-hidden "ZTS3Foo" } } */ /* { dg-final { scan-h...
google
android
anon6
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/anon6.C
661
utf_8
d5b695e5eb904357886d0bfb4f220465
// PR c++/33094 // { dg-final { scan-assembler "1BIiE1cE" } } // { dg-final { scan-assembler-not "globl.*1BIiE1cE" } } // { dg-final { scan-assembler-not "comdat" } } // { dg-final { scan-assembler-not "weak" } } // { dg-final { scan-assembler-not "1AIiE1cE" } } // Test that B<int>::c is emitted as an internal symbol,...
google
android
pragma-override1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/pragma-override1.C
531
utf_8
965d87cc2399528eea3f4d53c741377e
/* 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
warn2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/visibility/warn2.C
331
utf_8
fada77e89afed01f6b16c99bba16e18a
// Complain when a class is specified with greater visibility than one of // its members' types or bases. // { dg-require-visibility "" } namespace N __attribute ((__visibility__ ("hidden"))) { struct A { }; } struct B // { dg-warning "visibility" } { N::A a; }; struct C: public N::A { }; // { dg-warning "vis...
google
android
visibility-6
.C
toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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...