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
label10
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/label10.C
315
utf_8
f998bc6ae0ded20824360d0b6074313e
// PR c++/33836 // { dg-do compile } // { dg-options "" } template<int N> struct A { enum { M = && N }; // { dg-error "referenced outside|cannot appear in|not an integer constant" } }; A<0> a; void foo () { __label__ P; enum { O = && P }; // { dg-error "cannot appear in|not an integer constant" } P:; }
google
android
stmtexpr9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/stmtexpr9.C
106
utf_8
1a8af85002e8ca32cf0c099dd5920e54
// PR c++/28899 // { dg-options "" } void f() { unsigned l, l1; l1 = l = ({ unsigned __v; __v; }); }
google
android
anon-struct3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/anon-struct3.C
831
utf_8
5f70b0d4a3b1e3b8a10d06d54d63f427
/* { dg-options "-fms-extensions" } */ /* Verify that enabling Microsoft mode doesn't twist C++ as much as their corresponding C extensions. Checked vs Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86 */ struct A { char a; }; struct B { struct A; /* forward decl of B::A. */ cha...
google
android
attrib5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib5.C
783
utf_8
ec01dbb0bb96c7cda806a516a5cf87d4
// There were two related problems here, depending on the vintage. At // one time: // // typedef struct A { ... } A __attribute__ ((aligned (16))); // // would cause original_types to go into an infinite loop. At other // times, the attributes applied to an explicit typedef would be lost // (check_b3 would have a ...
google
android
mv12
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv12.C
437
utf_8
29051ee7a7561ea2dc0ca96e1564563a
// Test case to check if multiversioning works as expected when the versions // are defined in different files. // { dg-do run { target i?86-*-* x86_64-*-* } } // { dg-require-ifunc "" } // { dg-options "-O2" } // { dg-additional-sources "mv12-aux.cc" } #include "mv12.h" int main () { if (__builtin_cpu_supports ("...
google
android
bitfield2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/bitfield2.C
485
utf_8
c96e03b84c7e1cbbeb5d28b361467e3f
/* { dg-do compile } */ /* Remove pedantic. Allow the GCC extension to use char for bitfields. */ /* { dg-options "" } */ /* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target { i?86-*-mingw* x86_64-*-mingw* } } } */ struct t /* { dg-message "note: offset of packed bit-field 't::b' has changed in ...
google
android
has_nothrow_copy-6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C
159
utf_8
624811b2fb70c021978d15185fa25400
// { dg-do run } #include <cassert> struct S { S (S&) throw (); S (const S&, int) throw (int); }; int main () { assert (__has_nothrow_copy (S)); }
google
android
cleanup-dtor
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/cleanup-dtor.C
330
utf_8
c710ca5bf9dfd62c6681f4709fc4d90a
// Check that destructors are run after cleanup functions. // { dg-do run } extern "C" void abort (); int i; struct S { ~S() { if (i != 1) abort (); i = 2; } }; void f(void *) { if (i != 0) abort (); i = 1; } int main () { { S s __attribute__((cleanup (f))); } if (i != 2) ab...
google
android
attrib12
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib12.C
222
utf_8
c460ffd02f4c4ad800649b58a60f30e1
// PR c++/13791 template <typename T> struct O { struct __attribute__((packed)) I { int i; char c; }; I* foo(); }; template <typename T> typename O<T>::I* O<T>::foo() { return 0; } template class O<int>;
google
android
utf-type
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/utf-type.C
427
utf_8
7a8ffbc3282a1e0c0bf5fe1f463f8c28
/* Ensure that __CHAR16_TYPE__ and __CHAR32_TYPE__ exist, match the types they are the underlying data type for. */ /* { dg-do run } */ /* { dg-options "-std=c++0x -Wall -Werror" } */ extern "C" void abort (void); int main () { if (sizeof (__CHAR16_TYPE__) != sizeof (char16_t)) abort(); if (sizeof (__CHAR32...
google
android
fnname1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/fnname1.C
491
utf_8
b00280f53981a2f30c8d4b894c33962c
// Test whether __func__ works for namespace-scope C++ functions. // { dg-do run } namespace xyzzy { const char* ab6(double, void*) { return __func__; } } int main() { const char* s = xyzzy::ab6(2.3, (void*) 0); bool ok = true; ok = ok && s[0] == 'a'; ok = ok && s[1] == 'b'; ok = ok && s[2] == '6'; ...
google
android
is_empty2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/is_empty2.C
166
utf_8
51590a59aaf8715b9fe4a7ae06414cb8
// PR c++/36797 template <int> struct A { }; template <class T> int foo (A<__is_empty (T)>* = 0); // { dg-error "built-in trait" } int main () { foo<int>(); }
google
android
vector20
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vector20.C
223
utf_8
7adefb87e76aa3bd1f41e2301294c59f
/* { dg-do compile } */ /* { dg-options "-std=c++11" } */ typedef long vec __attribute__((vector_size (2 * sizeof (long)))); constexpr vec v = { 3, 4 }; constexpr vec s = v + v; constexpr vec w = __builtin_shuffle (v, v);
google
android
vla9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vla9.C
663
utf_8
9bb5caf7c99329edf52d7e4bc97626a1
// PR c++/43555 // { dg-options "" } // { dg-do run } extern "C" void * malloc (__SIZE_TYPE__); extern "C" int printf (const char *, ...); extern "C" void abort(void); int nx,ny; void f(double *x1d,int choice) { double (*x2d)[nx][ny]=(double(*)[nx][ny])x1d; unsigned long delta; // (*x2d)[0][0]=123; // <- this l...
google
android
altivec-7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-7.C
1,456
utf_8
e63a3f726a9a2696be3fd48744dbe24b
/* Test for AltiVec type overloading and name mangling. */ /* { dg-do compile { target powerpc*-*-* } } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-maltivec" } */ #include <altivec.h> void foo(vector unsigned char) { } void foo(vector signed char) { } void foo(vector bool char) ...
google
android
label9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/label9.C
190
utf_8
c510e07acd289ccbf9cf0ca2264c4ad7
// PR c++/32121 // { dg-do compile } int f (void) { while (1) __label__ a; // { dg-error "not at the beginning" } for (;;) __label__ b; // { dg-error "not at the beginning" } }
google
android
anon-struct4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/anon-struct4.C
231
utf_8
9db8aa93c180300950160335453e8e56
// PR c++/14401 struct { struct { int& i ; } bar ; } foo ; // { dg-error "uninitialized" "uninit" } // { dg-warning "anonymous" "anon" { target c++98 } 3 } // { dg-message "should be initialized" "ref-uninit" { target *-*-* } 3 }
google
android
mv1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv1.C
2,983
utf_8
b15c4a54b35713e848071222fc879d29
/* Test case to check if Multiversioning works. */ /* { dg-do run { target i?86-*-* x86_64-*-* } } */ /* { dg-require-ifunc "" } */ /* { dg-options "-O2 -fPIC" } */ #include <assert.h> /* Default version. */ int foo (); // Extra declaration that is merged with the second one. int foo () __attribute__ ((target("def...
google
android
lvaddr
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/lvaddr.C
192
utf_8
92a7056cf4009e7b4513a036edcef967
// { dg-do compile } void f() { int n; char* p = &(char) n; // { dg-error "lvalue" } }
google
android
attrib4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib4.C
566
utf_8
0689e86022776421672cfd3ac67e3153
// Test for syntax support of various attribute permutations. int __attribute__((noreturn)) __attribute__((unused)) one(void); // OK __attribute__((noreturn)) __attribute__((unused)) int two(void); // OK int __attribute__((unused)) three (void) __attribute__((noreturn)); // OK __attribute__((unused)) int four (voi...
google
android
vla5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vla5.C
191
utf_8
79ebc4bd9d37be7bbce8a5a03a32870f
// PR c++/37417 // { dg-do compile } // { dg-options "-O" } void test (int a) { new (char[a]); // { dg-warning "variable-length array" } }
google
android
attrib45
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib45.C
95
utf_8
a73db09c380f6e6f784f26040b011488
// PR c++/52906 __attribute__ ((__deprecated__)); // { dg-error "does not declare anything" }
google
android
complex5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complex5.C
136
utf_8
053ce94c0ccf34dd5d9b0e28fb917d9b
/* PR c++/21210 */ /* { dg-do compile } */ /* { dg-options "-O2" } */ typedef float __complex__ fcomplex; fcomplex cplx = fcomplex(0);
google
android
attrib20
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib20.C
622
utf_8
50018a29376e01079f792e320c17f423
// { dg-do compile } // { dg-options "-g" } // Origin: <jan at etpmod dot phys dot tue dot nl> // PR c++/19508: avoid attributes for template parameters template <typename T> struct BVector { typedef T T2; typedef T value_type __attribute__ ((aligned(8))); // { dg-bogus "attribute" "attribute" } typedef T2 va...
google
android
interface2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/interface2.C
186
utf_8
869c6cc33c04831bc61047af9a9ac5fc
// PR c++/26195 // { dg-do link } // { dg-additional-sources "interface2b.cc" } // { dg-options "-fno-inline" } #pragma implementation "interface2-imaginary.h" #include "interface2a.h"
google
android
cond1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/cond1.C
95
utf_8
cfb1e3d3e6cedd5cd651ea51248b3822
// PR c++/12515 // { dg-do compile } // { dg-options "" } template<int> void foo() { 0 ?: 0; }
google
android
vector5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vector5.C
105
utf_8
3231264b4b96091ab8a2351e76707e8d
// PR c++/30022 // { dg-do compile } void foo() { int __attribute__((vector_size(8))) v; v = 1/v; }
google
android
utf-gnuxx0x
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/utf-gnuxx0x.C
340
utf_8
914ff28c3b3bf7ec6702854ab6a6a54b
/* Test parsing of u and U prefixes when also used as macros. */ /* { dg-do compile } */ /* { dg-options "-std=gnu++0x" } */ #define u L #define U L const unsigned short c2 = u'a'; const unsigned long c3 = U'a'; const void *s0 = u"a"; const void *s1 = U"a"; int main () {}
google
android
altivec-cell-5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-cell-5.C
1,368
utf_8
29cab7a77633102be8f79fea8bd692b1
/* { dg-do compile { target powerpc*-*-* } } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-maltivec" } */ /* Basic test for the new VMX intrinsics and error messages. */ #include <altivec.h> int main(int argc, char **argv) { vector float t; vec_promote(); /* {...
google
android
strncpy-chk1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/strncpy-chk1.C
491
utf_8
e3ce25bc3f909c6ae86361551870e667
// PR c++/40502 // { dg-do compile } // { dg-options "-O2" } struct A { char x[12], y[35]; }; struct B { char z[50]; }; inline void foo (char *dest, const char *__restrict src, __SIZE_TYPE__ n) { __builtin___strncpy_chk (dest, src, n, __builtin_object_size (dest, 0)); // { dg-warning "will always overflow" } } voi...
google
android
cleanup-9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/cleanup-9.C
2,122
utf_8
cd3700a4142b5a693ac706905beabdc6
/* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]* } } */ /* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */ /* Verify that cleanups work with exception handling through realtime signal frames. */ #include <unwind.h> #include <stdlib.h> #include <signal.h> #include <str...
google
android
attrib18
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib18.C
213
utf_8
c6e397aab756018698174d40941ed448
// PR c++/17542 // Test that we warn when an attribute preceding the class-key is ignored. // { dg-do compile } __attribute__ ((packed)) struct A // { dg-warning "attribute" } { char c; int x; void f(); };
google
android
bases
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/bases.C
821
utf_8
ee83a641465f65bee83868a5e82b6e54
// { dg-options "-std=gnu++0x -w" } // { dg-do run } #include<typeinfo> #include<cassert> // A simple typelist template<typename... _Elements> struct types {}; // Simple bases implementation template<typename T> struct b { typedef types<__bases(T)...> type; }; // Simple direct_bases implementation template<typena...
google
android
dllimport12
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/dllimport12.C
545
utf_8
afc4278f4fe70314e5eae58b9633dfd1
// PR target/27650 // Don't use dllimport semantics on virtual methods when initializing // vtables // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } } // Use import lib thunk for vtable entry of explicitly virtual method, struct base { virtual void key_method(); __attribute__((dllimport))...
google
android
utf32-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/utf32-3.C
1,288
utf_8
f0ce7d14c6af3b42645a73bd7a9fd205
/* Test concatenation of char32_t* string literals. */ /* { dg-do run } */ /* { dg-options "-std=c++0x -Wall -Werror" } */ extern "C" void abort (void); const static char32_t *s0 = U"a" U"b"; const static char32_t *s1 = U"a" "b"; const static char32_t *s2 = "a" U"b"; const static char32_t *s3 = U"a" "\u2029"; const sta...
google
android
attrib41
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib41.C
386
utf_8
43c0336af5f4b4f8968c64cfc765d0cd
// PR c++/45267 // { dg-options "-O" } template<typename T> struct Vector { Vector(long long x); inline Vector<T> operator<<(int x) const __attribute__((always_inline)); }; long long bar (long long); template<> inline Vector<int> Vector<int>::operator<<(int x) const { return bar(x); } bool b; int main() { Vect...
google
android
altivec-10
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-10.C
706
utf_8
285ca4465aa5835371c2ac366d888737
/* { dg-do compile { target powerpc*-*-* } } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-save-temps -maltivec" } */ #include <altivec.h> #define vector_float vector float #define vector_float_foo vector float foo #define vector_float_bar_eq vector float bar = /* NB: Keep the following ...
google
android
vector14
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vector14.C
517
utf_8
44fd57e1c00243ca06f806db95d2e223
// PR c++/35758 // { dg-do compile } // { dg-options "-msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } // { dg-require-effective-target sse } // Ignore warning on some powerpc-linux configurations. // { dg-prune-output "non-standard ABI extension" } // { dg-prune-output "mangled name" } #define vector __attrib...
google
android
asm3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/asm3.C
318
utf_8
f25a72d1994945ee8d899c33d153dd11
// { dg-do compile } // PR 7015. ICE with asms int two(int in) { register int out; __asm__ ("" : "r" (out) : "r" (in)); return out; } // { dg-message "error:" "" { target *-*-* } 11 }
google
android
complit12
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complit12.C
861
utf_8
ab6acb4a7c8c1d0b3e7717da4ac42983
// PR c++/40948 // { dg-do run } // { dg-options "" } int c; struct M { M () { ++c; } M (const M&) { ++c; } ~M () { --c; } }; struct S { S (); M m[1]; }; S::S () : m ((M[1]) { M () }) { } struct T { T (); M m[4]; }; T::T () : m ((M[4]) { M (), M (), M (), M () }) { } typedef M MA[1]; MA &bar (MA, MA...
google
android
fpreg1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/fpreg1.C
3,866
utf_8
60898b718df5cec3ef7222e3b1257e0f
// Test permitted and invalid uses of __fpreg, for C++. // { dg-do compile { target ia64-*-* } } // { dg-options "" } __float80 f80; double d; // Default initialized __fpreg is OK. __fpreg fpreg, fpreg2; // But explicitly zero-initialized is an invalid conversion. __fpreg fi = 0; // { dg-error "invalid conversion to '_...
google
android
stmtexpr11
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/stmtexpr11.C
130
utf_8
9b385207de7bf590c1ddd0d68c3ccea4
// PR c++/31337 // { dg-options "" } struct A { int i[0]; A(); A(const A&); ~A(); }; void foo() { A a = ({ A(); }); }
google
android
java-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/java-1.C
498
utf_8
6093ddc315b5e30bc17b5cc5bfdca3c7
// { dg-do compile { target { ! { powerpc-ibm-aix* } } } } // { dg-options "" } // Test extern "java" and some throwing of the objects. extern "Java" namespace java { namespace lang { class Throwable; class Class; } } typedef class java::lang::Throwable* jthrowable; typedef class java::lang::...
google
android
label13
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/label13.C
315
utf_8
7481c51475e983010b51ba7599169389
// PR c++/41090 // { dg-do run } // { dg-options "" } int i; struct C { C(); }; C::C() // { dg-bogus "can never be copied" "" { xfail { { *-apple-darwin* } || { hppa*-*-hpux* && { ! lp64 } } } } } { static void *labelref = &&label; goto *labelref; label: i = 1; } int main() { C c; return (i != 1); }
google
android
attrib25
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib25.C
184
utf_8
5ccb252eb3cd362ba5a845c118004707
// PR c++/28559 template<typename T> struct A { struct B; }; struct C { template<typename T> friend struct __attribute__((packed)) A<T>::B; // { dg-warning "uninstantiated" } };
google
android
complit7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complit7.C
81
utf_8
e710a424682710a7b643aeb0875d892d
// PR c++/27807 // { dg-options "" } int i = (int()){0}; // { dg-error "type" }
google
android
attrib30
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib30.C
166
utf_8
e44d460202c349fcf4bb0de15b410685
// { dg-do compile } // PR c++/35074 template<typename T> struct A { void foo() const; } __attribute((aligned(4))); template<typename T> void A<T>::foo() const {}
google
android
fnname2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/fnname2.C
538
utf_8
a06d181d1f37ed4bbf17112c988f9608
// Test whether __func__ works for ordinary member functions. // { dg-do run } struct y8a { const char* zqjx(int, char); }; const char* y8a::zqjx(int, char) { return __func__; } int main() { y8a tmp; const char* s = tmp.zqjx(16, 'x'); bool ok = true; ok = ok && s[0] == 'z'; ok = ok && s[1] == 'q'; ok = ...
google
android
gnu-inline-template-class
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/gnu-inline-template-class.C
602
utf_8
58f8a0136cdff73766d2255387d3090e
/* { dg-do compile } */ /* { dg-options "-O" } */ // such that static functions are optimized out /* { dg-final { scan-assembler "func1" } } */ /* { dg-final { scan-assembler "func2" } } */ /* { dg-final { scan-assembler-not "func3" } } */ /* { dg-final { scan-assembler "func4" } } */ /* { dg-final { scan-assembler "fu...
google
android
has_nothrow_assign
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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
vector19
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vector19.C
1,032
utf_8
57043e727057494f47b0926ae5e1bbfd
/* { dg-do compile } */ /* { dg-options "-std=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 ...
google
android
instantiate1
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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
no-asm-2
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/ext/utf32-2.C
771
utf_8
c568d20fa8e2994282acbbf27946ca84
/* Test the support for char32_t* string constants. */ /* { dg-do run } */ /* { dg-options "-std=c++0x -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"; #define ...
google
android
attrib9
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/ext/visibility/anon8.C
521
utf_8
8b91389dac71153d2357cd7f35a7cb0d
// 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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/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.8.3/gcc/testsuite/g++.dg/ext/visibility/anon6.C
540
utf_8
2b43cd0224b885985e8b61dcb08b9f0c
// PR c++/33094 // { dg-final { scan-assembler "1BIiE1cE" } } // { dg-final { scan-assembler-not "globl.*1BIiE1cE" } } // { dg-final { scan-assembler-not "1CIiE1cE" } } // Test that B<int>::c is emitted as an internal symbol, and C<int>::c is // not emitted. namespace { template <typename T> class A { virtu...
google
android
pragma-override1
.C
toolchain/gcc/gcc-4.8.3/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.8.3/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...