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
pr41257-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr41257-2.C
125
utf_8
4cfbe910579cb6bce1d3683cc1cb4058
/* { dg-do link } */ struct A { virtual ~A(); }; struct B : virtual A { virtual ~B() {} }; int main() { return 0; }
google
android
vshuf-v2df
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/vshuf-v2df.C
438
utf_8
9bf14c7d7170fefcf16b40253692af69
// { dg-options "-std=c++11" } // // { dg-do run } #if __SIZEOF_DOUBLE__ == 8 && __SIZEOF_LONG_LONG__ == 8 typedef double V __attribute__((vector_size(16))); typedef unsigned long long VI __attribute__((vector_size(16))); #else #define UNSUPPORTED #endif #define A 0.69314718055994530942 #define B 2.7182818284590452354...
google
android
pr37354
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr37354.C
296
utf_8
0062aafd51bb4104c7553c9a0698f0ca
/* { dg-do compile } */ class GenericClass; struct AlsaDriver { virtual int _read (unsigned nframes); }; typedef void (GenericClass::*GenericMemFuncType) (); GenericMemFuncType m_pFunction; void AlsaDriver1 () { m_pFunction = reinterpret_cast < GenericMemFuncType > (&AlsaDriver::_read); }
google
android
pr47714
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr47714.C
292
utf_8
70a176c24f3b9e0ed32161bafd163296
struct A { virtual ~A () {} }; struct B { virtual ~B () {} }; struct C { virtual const A *foo (int) const = 0; }; struct E : public B, public A { }; struct F : public C { virtual const E *foo (int) const; }; void bar (int &); const E * F::foo (int x) const { bar (x); return __null; }
google
android
pr60895
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr60895.C
271
utf_8
ea51728c5e2ae154940893c6ccb374f8
// { dg-do compile } struct C { double elems[3]; }; C foo () { C a; double *f = a.elems; int b; for (; b;) { *f = 0; ++f; } return a; } struct J { C c; __attribute__((always_inline)) J () : c (foo ()) {} }; void bar () { J (); }
google
android
pr43257
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr43257.C
336
utf_8
3109f22b098cf163176faafc44391d82
/* { dg-do assemble } */ class A {}; class B {}; static void *func (int n) { void *p; if (p == 0) throw ::A (); } static void *func (int n, B const &) { try { return func (n); } catch (::A const &) { } return func (n); } void *f1 (int n) { return func (n, B()); } void *f2 (int n) { return f...
google
android
pr53693
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr53693.C
504
utf_8
9a98404f2bdaa970f43c1300bb87cc27
// { dg-do compile } void filter_scanlines (void *src_buffer, void *dst_buffer, int dst_pitch, int width) { int x; unsigned short *src, *dst_a, *dst_b; src = (unsigned short *) src_buffer; dst_a = (unsigned short *) dst_buffer; dst_b = ((unsigned short *) dst_buffer) + (dst_pitch >> 1); for (x = 0; x < w...
google
android
pr56029
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr56029.C
3,701
utf_8
f6ad5ca12221c31c38de91ed0cb1ac5b
// PR tree-optimization/56029 // { dg-do compile } template <class T> struct DefaultDeleter { void operator () (T * ptr) { delete ptr; } }; template <class T, class D> struct scoped_ptr_impl { scoped_ptr_impl (T * p):data_ (p) {} template <typename U, typename V> scoped_ptr_impl (scoped_ptr_impl <U, V> *other)...
google
android
pr40834
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr40834.C
807
utf_8
91e7beb2ed0c5925d2d5b5b4bf37f40f
/* { dg-do run } */ extern "C" void abort (void); class XalanDOMString { public: int y; }; class XObject { public: const XalanDOMString& str() const { return x; } XalanDOMString x; }; class XObjectPtr { public: XObjectPtr(const XObjectPtr& theSource) { m_xobjectPtr = theSource.m_xobjectPtr; } ...
google
android
pr43801
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr43801.C
292
utf_8
5ced4cff38d39e92cfb56362caf09160
// PR tree-optimization/43801 // { dg-do compile } // { dg-options "-fipa-cp -fipa-cp-clone" } struct A { virtual void f (int); }; struct B : virtual A { virtual void f (int i) { if (i) A::f(0); } }; struct C : virtual B { virtual void f (int) { B::f(0); } }; void foo () { C (); }
google
android
pr40335
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr40335.C
238
utf_8
a7f9b10c8589802dfa8f02f013c7ac2e
/* { dg-do run } */ extern "C" void abort (void); int main (void) { int i = -1; switch ((signed char) i) { case 255: /* { dg-bogus "exceeds maximum value" "" { xfail *-*-* } } */ abort (); default: break; } }
google
android
pr49394
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr49394.C
528
utf_8
8960caa3c7183b6775e5e78b38be23f3
// { dg-do run } // { dg-options "-fipa-pta -fnon-call-exceptions" } struct Mutex { bool locked; ~Mutex () { if (locked) throw 0; } void lock () { locked = true; } void unlock () { if (!locked) throw 0; locked = false; } }; struct lock_guard { Mutex *m; lock_guard (...
google
android
pr45874
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr45874.C
1,743
utf_8
b3525a9984f80b9df4cf0385e6a84e16
// { dg-do compile } typedef struct { } IppLibraryVersion; typedef unsigned char Ipp8u; typedef unsigned int Ipp32u; typedef signed int Ipp32s; typedef enum e_vm_Status { VM_OK = 0, VM_OPERATION_FAILED =-999, VM_NOT_INITIALIZED =-998, VM_TIMEOUT =-987, VM_NOT_ENOUGH_DATA =-996, VM_NULL_PTR =-9...
google
android
pr34222
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr34222.C
2,623
utf_8
1248abde88d3f7551bab7396c44ba034
/* { dg-do compile } */ namespace std __attribute__ ((__visibility__ ("default"))) { template<class _CharT> struct char_traits; } __extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t; namespace std __attribute__ ((__visibility__ ("default"))) { typedef ptrdiff_t streamsize; template<typename _CharT, type...
google
android
pr38565
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr38565.C
401
utf_8
ede4fc5c3a3f3d90c072941dd1ff17b4
// { dg-do compile } // Ignore warning on some powerpc-linux configurations. // { dg-prune-output "non-standard ABI extension" } // { dg-prune-output "changes the ABI" } #define vector __attribute__((vector_size(16) )) vector unsigned int f(int a) { vector unsigned int mask = a ? (vector unsigned int){ 0x80000000, 0x...
google
android
pr37421
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr37421.C
490
utf_8
b9e867af0146342c37d2ac67626d327e
/* { dg-do compile } */ #include <stdio.h> #include <string.h> inline int bci (const float &source) { int dest; memcpy (&dest, &source, sizeof (dest)); return dest; } inline float bcf (const int &source) { float dest; memcpy (&dest, &source, sizeof (dest)); return dest; } float Foo () { const int foo = bci (...
google
android
pr40081
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr40081.C
340
utf_8
9265a4787d0dba10e523b64f6fd63bb2
struct Atomic_t { Atomic_t(int i) : val(i) { } volatile int val; }; class RefCount { public: Atomic_t m_count; }; class IntrusiveCountableBase { RefCount m_useCount; protected: IntrusiveCountableBase(); }; IntrusiveCountableBase::IntrusiveCountableBase() : m_useCount(0) { }
google
android
pr42357
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr42357.C
639
utf_8
b10e8543fb804e02bf658bba9b63a306
// { dg-do compile } typedef unsigned char uint8; typedef unsigned int uint32; class PixelARGB { public: ~PixelARGB() throw() { } PixelARGB (const uint32 argb_) throw() : argb (argb_) { } inline __attribute__((always_inline)) uint8 getRed() const throw() { return components.r; } union { ui...
google
android
pr42704
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr42704.C
1,304
utf_8
8ae9715087d7da846f7a2004a5305eef
/* { dg-do compile } */ typedef int PRInt32; class nsTreeRows { class Subtree { }; enum { kMaxDepth = 32 }; struct Link { Subtree* mParent; PRInt32 mChildIndex; Link& operator=(const Link& aLink) { mParent = aLink.mParent; mChildIndex = aLink.mChildIn...
google
android
pr30567
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr30567.C
496
utf_8
e980bf95890544d46879b89f7aa98df6
/* { dg-do run } */ template <typename T> struct const_ref { const T* begin; const_ref(const T* b) : begin(b) {} }; template <typename T> T sum(const_ref<T> const& a) { T result = 0; for(unsigned i=0;i<1;i++) result += a.begin[i]; return result; } struct tiny_plain { int elems[2]; tiny_plain() { elems[...
google
android
pr51344
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr51344.C
180
utf_8
20d6e47b06d4cb4840b9270432191e39
/* { dg-do compile { target { i?86-*-* && ilp32 } } } */ class A; template <class T> class B { friend __attribute__((cdecl)) A& operator >>(A& a, B& b) { return a; } };
google
android
pr46287
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr46287.C
733
utf_8
53103bc6b95cbce9b824c821ba63074f
// Check that indirect calls to thunks do not lead to errors. // { dg-do run } extern "C" void abort (); class A { public: virtual void foo () {abort();} }; class B : public A { public: int z; virtual void foo () {abort();} }; class C : public A { public: void *a[32]; unsigned long b; long c[32]; vir...
google
android
pr33627
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr33627.C
1,799
utf_8
d031e736766609d70f05c6a22b19ee44
/* { dg-do compile } */ typedef unsigned int UT_uint32; typedef UT_uint32 PT_DocPosition; typedef UT_uint32 PT_BlockOffset; typedef enum _PTStruxType { PTX_Block } PTStruxType; typedef UT_uint32 PL_ListenerId; typedef const void * PL_StruxFmtHandle; class PX_ChangeRecord; class pf_Frag { public: typedef enum _PFT...
google
android
20080625-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/20080625-1.C
572
utf_8
cba46ba0e799162dc4863891ff25ded3
extern "C" { typedef unsigned char sal_Bool; typedef struct _rtl_uString { } rtl_uString; void rtl_uString_release( rtl_uString * str ) throw (); } class OUString { rtl_uString * pData; public: OUString() {} ~OUString() { rtl_uString_release( pData ); } sal_Bool equalsIgnoreAsciiCas...
google
android
pr54735
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr54735.C
4,101
utf_8
bc202d330bb84df550bb0522780984e0
// { dg-do compile } class Gmpfr {}; class M : Gmpfr { public: Gmpfr infconst; M(int); }; template<typename>struct A; template<typename, int, int, int = 0 ? : 0, int = 0, int = 0>class N; template<typename>class O; template<typename>struct B; struct C { enum { value }; }; class D { public: enum { ret }; };...
google
android
pr34235
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr34235.C
203
utf_8
a236f1d6b976dcdc6d96e37d197d8bba
/* { dg-do run } */ extern "C" void abort (void); int main() { short x = -1; unsigned int c = ((unsigned int)x) >> 1; if (c != 0x7fffffff) abort(); return 0; }
google
android
pr44295
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr44295.C
7,766
utf_8
61a1cfe01bbf4dc4b73d344cd112a208
/* { dg-do compile } */ extern "C" { typedef __SIZE_TYPE__ size_t; typedef struct { } __sigset_t; typedef union { } pthread_barrierattr_t; } typedef unsigned short XMLCh; typedef unsigned long XMLSize_t; namespace xercesc_2_5 { class DOMNodeList; class DOMNode { }; class DOMDocumentRan...
google
android
pr41257
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr41257.C
182
utf_8
b2bf0f9adca2bf600320f6fbc03908cd
/* { dg-do compile } */ struct A { virtual void foo(); virtual ~A(); int i; }; struct B : virtual A {}; struct C : B { virtual void foo(); }; void bar() { C().foo(); }
google
android
pr45875
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr45875.C
268
utf_8
c635c5a94fbb9eab57437a32a25cbe1a
// { dg-do compile } struct c1 {}; struct c10 : c1 { virtual void foo (); }; struct c11 : c10, c1 // // { dg-warning "" } { virtual void f6 (); }; struct c28 : virtual c11 { void f6 (); }; void check_c28 () { c28 obj; c11 *ptr = &obj; ptr->f6 (); }
google
android
pr46469
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr46469.C
251
utf_8
a6bc67c38bd73046f786653410036b69
extern "C" __inline __attribute__ ((__gnu_inline__)) int pthread_equal () { } static __typeof (pthread_equal) __gthrw_pthread_equal __attribute__ ((__weakref__ ("pthread_equal"))); int identifierByPthreadHandle () { pthread_equal (); }
google
android
pr31579
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr31579.C
294
utf_8
488a053995c3999b7064677484855aad
/* { dg-do compile } */ // middle-end/31579 // Expand was crashing while expanding the tree for the initializer struct Industry { unsigned char produced_cargo[2]; }; unsigned int a = (((__SIZE_TYPE__)&reinterpret_cast<const volatile char&>((((Industry*)(char*)8)->produced_cargo[0]))) - 8);
google
android
pr36826
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr36826.C
7,484
utf_8
cf5d152ee553d0114e754f112878e09d
template <class T> T CoinMax(register const T x1, register const T x2); template <class T> T CoinMin(register const T x1, register const T x2); class CoinIndexedVector; class ClpModel { protected: double objectiveScale_; double rhsScale_; int numberRows_; int numberColumns_; double * rowActivity_; ...
google
android
pr45709
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr45709.C
302
utf_8
3602e5f346573cec2da3e7ddcadb3fb7
// { dg-do compile } struct Region { int storage[4]; int count; }; static inline Region subtract(int lhs) { Region reg; int* storage = reg.storage; if (lhs > 0) storage++; reg.count = storage - reg.storage; return reg; } void bar(int a) { const Region copyBack(subtract(a)); }
google
android
pr40492
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr40492.C
719
utf_8
38eb20fb2c768d3f2d8258601e427a27
typedef unsigned short ushort; class QChar { public: QChar( const QChar& c ); ushort ucs; }; inline QChar::QChar( const QChar& c ) : ucs( c.ucs ) { }; class QString { }; class KoAutoFormat { public: struct TypographicQuotes { QChar begin, end; }; TypographicQuotes getConfigTypographicDoubleQuotes() ...
google
android
builtin-location
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/builtin-location.C
517
utf_8
318bc94e0ad549681cfaba4d1ff517f8
// { dg-do run } #include <cstring> const char *gfile; const char *gfn; int gline; void bar (const char *file = __builtin_FILE (), const char *function = __builtin_FUNCTION (), int line = __builtin_LINE ()) { gfile = file; gfn = function; gline = line; } extern "C" void abort (void); int main() { int...
google
android
pr53602
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr53602.C
9,940
utf_8
b8f2cf4dbe33be3bb77d9ebf24ca264e
// { dg-do compile } // { dg-options "-std=c++11" } namespace std { template <class, class> struct pair { }; struct input_iterator_tag { }; struct forward_iterator_tag : public input_iterator_tag { }; template <typename, typename _Tp, typename = _Tp> struct iterator { }; } namespace __gnu_c...
google
android
pr37716
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr37716.C
636
utf_8
de29b40a08801f9b5e56f032d4682fb1
// PR tree-optimization/37716 // { dg-do compile } struct A { struct B { int a, b, c, d; void *e[1]; }; B *d; inline void **f1 (int i) const { return d->e + d->c + i; } }; template <typename T> struct C { struct D { void *v; inline T & f3 () { return *reinterpret_cast <...
google
android
pr36445
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr36445.C
669
utf_8
f117dae760330db0d2bea5b44a033809
/* { dg-do compile } */ /* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ // This used to fail as we would try to expand a VCE where one side had // a mode of BLKmode and the other side was a vector mode. #define vector __attribute__((vector_size(16) )) struct struct1 { union { float a[3]; } vmx; ...
google
android
pr42714
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr42714.C
1,087
utf_8
6faa0f1bae4672d5d1fe30b02b392da8
struct QVectorData { static QVectorData shared_null; }; template <typename T> class QVector { union { QVectorData *d; }; public: inline QVector() : d(&QVectorData::shared_null) { } inline QVector(const QVector<T> &v) : d(v.d) { } }; class QXmlStreamAttribute { }; class QXmlStreamAttributes :...
google
android
pr49644
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr49644.C
306
utf_8
70ba1d6e65ff77ad5205e068917704ba
// PR c/49644 // { dg-do run } extern "C" void abort (); int main () { _Complex double a[12], *c = a, s = 3.0 + 1.0i; double b[12] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 }, *d = b; int i; for (i = 0; i < 6; i++) *c++ = *d++ * s; if (c != a + 6 || d != b + 6) abort (); return 0; }
google
android
pr51959
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr51959.C
2,246
utf_8
fdbc45a1874d5e29ddb341f395fab8d3
// { dg-do compile } namespace std { typedef __SIZE_TYPE__ size_t; } inline void* operator new(std::size_t, void* __p) throw() { return __p; } template <typename T> class QTypeInfo { }; template<typename Enum> class QFlags { int i; inline QFlags(Enum f) : i(f) { } }; class __attribute__((visibility("def...
google
android
pr44492
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr44492.C
506
utf_8
1be5987e0648f5a325798384c799425c
// PR middle-end/44492 // { dg-do run } struct T { unsigned long p; }; struct S { T a, b, c; unsigned d; }; __attribute__((noinline)) void bar (const T &x, const T &y) { if (x.p != 0x2348 || y.p != 0x2346) __builtin_abort (); } __attribute__((noinline)) void foo (S &s, T e) { unsigned long a = e.p; unsigne...
google
android
pr51600
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr51600.C
371
utf_8
cde8ed97b7e6c3d7806a00c88c273ad4
template<class T> inline T min(T a, T b) { return a < b ? a : b; } double cornerbound(double *P, double (*m)(double, double)) { double b=m(P[0],P[3]); return m(b,P[12]); } void bound(double *P, double (*m)(double, double), double b) { m(b,cornerbound(P,m)); } void bounds(double fuzz, unsigned maxdepth) { double...
google
android
pr52582
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr52582.C
256
utf_8
cd96fe61efcf38e530d000644545eb65
// PR c++/52582 inline void *operator new (__SIZE_TYPE__, void *p) throw () { return p; } struct B { virtual ~B (); B (); }; struct A : B { A () : B () {} virtual void bar (); }; void foo () { char a[64]; B *b = new (&a) A (); b->~B (); }
google
android
str_empty
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/str_empty.C
268
utf_8
5afe578074ff640a77903318faea8e72
// PR c++/31617 // Segfault in integer_zerop // { dg-do compile } struct polynomial { ~polynomial (); }; void spline_rep1 () { new polynomial[0]; // { dg-bogus "allocating zero-element array" } }
google
android
pr40388
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr40388.C
144
utf_8
b6de7aac61c5d7ce80cf371bebc02c8a
void foo(); struct A { ~A() { try { foo(); foo(); } catch (...) { } } }; void bar() { A a1, a2; }
google
android
pr44972
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/pr44972.C
2,188
utf_8
9fdafaff42cd2c762720eba07a457ce9
/* { dg-do compile } */ #include<cassert> #include<new> #include<utility> namespace boost { template<class T> class optional; class aligned_storage { char data[ 1000 ]; public: void const* address() const { return &data[0]; } void * address() { return &data[0]; } } ; template<class T> class ...
google
android
unwind-5
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/unwind-5.C
704
utf_8
22f292e5d79a03f64a7536467d29b689
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "test-unwind.h" #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__ double g_f=1.0; /* Test situation 5: Stack realign dosn't really happen with DRAP reg CX */ void __attribute__ ((noinline)) __attribute__ ((regparm(2))) bar(int arg1,...
google
android
throw-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/throw-1.C
1,002
utf_8
232d8b13d1b4cce42c5539a1b50ac79e
/* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int t_align __attribute__((aligned(ALIGNMENT))); int global, global2; void bar() { volatile t_align a = 1; int i,j,k,l,m,n; ...
google
android
eh-alloca-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/eh-alloca-1.C
800
utf_8
a2640d6e02d5a97f0d7dcdb40222c450
/* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); int global; void bar (char *p, int size) { __builtin_strncpy (p, "good", size); } class Base ...
google
android
unwind-4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/unwind-4.C
392
utf_8
4d8c80bb64655e322537b863f0eb652b
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "test-unwind.h" #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__ volatile int __attribute__ ((aligned(32))) g_a=1; /* Test situation 4: no Drap and stack realign doesn't really happen */ void __attribute__ ((noinline)) foo() { int ...
google
android
eh-inline-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/eh-inline-1.C
539
utf_8
92dfcd813d20a9f35f2bfef2a248980d
/* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); int global; class Base {}; struct A : virtual public Base { A() {} }; struct B {}; static v...
google
android
throw-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/throw-3.C
796
utf_8
c488ee7de768d61350ad78cfd41ad3f9
/* { dg-do run } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int t_align __attribute__((aligned(ALIGNMENT))); int global, global2; void bar() { volatile t_align a = 1; int i,j,k; i=j=k=0; for (i=0; i < global; i++) for (j=0; j < i; j++) global2 = ...
google
android
unwind-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/unwind-3.C
734
utf_8
860e4d2471279287c9143a2b9bb0e563
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "test-unwind.h" #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__ /* Test situation 3: Stack realign really happen with DRAP reg DI */ void __attribute__ ((noinline)) __attribute__ ((regparm(3))) bar (int arg1, int arg2, int arg3) {...
google
android
throw-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/throw-2.C
873
utf_8
5ff41a020f8c55977a499ded1d20cd6a
/* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int t_align __attribute__((aligned(ALIGNMENT))); int global, global2; void bar() { volatile t_align a = 1; int i,j,k; i=j=...
google
android
unwind-6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/unwind-6.C
704
utf_8
2a4f41d0ba2571b1211bd73b3edb34d4
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "test-unwind.h" #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__ double g_f=1.0; /* Test situation 6: Stack realign dosn't really happen with DRAP reg DI */ void __attribute__ ((noinline)) __attribute__ ((regparm(3))) bar(int arg1,...
google
android
unwind-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/unwind-2.C
611
utf_8
6764e5471934a26fbf6d90847e9a6d8b
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "test-unwind.h" #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__ /* Test situation 2: stack really realign with DRAP reg CX */ void __attribute__ ((noinline)) foo () { int __attribute__ ((aligned(64))) a=4; char * s = (char *) _...
google
android
stdcall-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/stdcall-1.C
338
utf_8
b1433c47f1b3510e41343cb1176ab88e
// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } } // This case is to detect an assertion failure in stack branch development. bool f(); struct S { __attribute__ ((stdcall)) ~S(); }; void g() { for (;;) { S s1, s2, s3; if (f()) continue; if (f()) ...
google
android
unwind-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/unwind-1.C
387
utf_8
2aa74f86eb0a63ab07e4ff6ab3e3bec7
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "test-unwind.h" #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__ /* Test situation 1: Stack really realign without DRAP */ void __attribute__ ((noinline)) foo () { int __attribute__ ((aligned(64))) a=1; if (check_int (&a, __ali...
google
android
eh-fastcall-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/eh-fastcall-1.C
614
utf_8
65dae60ad793312834f42540e993be33
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); int global; class Base {}; struct A : virtual public Base { A() {} }; struct B {}; __attribute__ ((fastcall)) void foo (i...
google
android
eh-global-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/eh-global-1.C
495
utf_8
069fa26a1718a9edcb3339f15f230a93
/* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); int global; class Base {}; struct A : virtual public Base { A() {} }; struct B {}; void foo...
google
android
eh-vararg-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-2.C
1,140
utf_8
3ae2c582ce62f5faabf7d8602cf8d231
/* { dg-options "-Wno-abi" {target arm_eabi} } */ /* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include <stdarg.h> #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); int global; void bar (char...
google
android
eh-vararg-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/eh-vararg-1.C
1,048
utf_8
cc50573a10b6d39c7aa3927e2129fdc9
/* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include <stdarg.h> #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); int global; void bar (char *p, int size) { __builtin_strncpy (p, "good", s...
google
android
eh-inline-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/eh-inline-2.C
846
utf_8
7130a6732f64fb15d019de94d494c485
/* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); int global; void bar (char *p, int size) { __builtin_strncpy (p, "good", size); } class Base ...
google
android
throw-4
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/throw-4.C
893
utf_8
dd05e223c9a803ea6370d6be3a588f8f
/* { dg-do run } */ /* { dg-skip-if "Stack alignment is too small" { hppa*-*-hpux* } "*" "" } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int t_align __attribute__((aligned(ALIGNMENT))); int global, global2; void bar() { volatile t_align a = 1; int i,j,k; i=j=...
google
android
unwind-0
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/unwind-0.C
298
utf_8
d53f4a36bfd00298b6b687881aad6861
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "test-unwind.h" #if !defined __PIC__ && !defined __USING_SJLJ_EXCEPTIONS__ void __attribute__ ((noinline)) foo() { ALTER_REGS(); // Throw the except and expect returning to main throw 1; } #endif
google
android
eh-thiscall-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/torture/stackalign/eh-thiscall-1.C
614
utf_8
20732e9e6c32512ab126c67b332996bb
/* { dg-do run { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #include "check.h" #ifndef ALIGNMENT #define ALIGNMENT 64 #endif typedef int aligned __attribute__((aligned(ALIGNMENT))); int global; class Base {}; struct A : virtual public Base { A() {} }; struct B {}; __attribute__ ((thiscall)) void foo (i...
google
android
c++98
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/c++98.C
232
utf_8
731959b0908b124d4eee4dab104d68bb
/* { dg-do preprocess } */ /* { dg-options "-std=c++98" } */ /* This file is for testing the preprocessor in -std=c++98 mode. Neil Booth, 2 Dec 2000. */ #if 1LL #endif
google
android
truefalse
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/truefalse.C
470
utf_8
d80eeb1b5ab70a413bed1a37f44a69d6
/* Source: Neil Booth, 18 Apr 2003. */ /* { dg-do preprocess } */ /* { dg-options "-ansi -pedantic -Wundef" } */ /* Check that for C++ we handle true and false correctly, and do not treat them as undefined identifiers. */ #if true /* { dg-bogus "is not defined" } */ #error foo /* { dg-error "foo" } */ #endif #if...
google
android
string-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/string-1.C
292
utf_8
ead0ed22e4b6b79f8450b4a030173cbc
// Test location of diagnostics for interpreting strings. Bug 17964. // { dg-do compile } const char *s = "\q"; // { dg-error "unknown escape sequence" } const char *t = "\ "; // { dg-error "unknown escape sequence" } const char *u = "";
google
android
weak
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/weak.C
107
utf_8
388f26d66093d4cf51084fa41b5fbe6e
// { dg-options "-fno-weak" } #if __GXX_WEAK__ #error "__GXX_WEAK__ defined when -fno-weak in use" #endif
google
android
string-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/string-2.C
224
utf_8
f84dfddf756951bbf37a1a9e3972a445
// Test diagnostics for interpreting strings: This is a pedwarn. // { dg-do compile } // { dg-options "" } const char *s = "\q"; // { dg-warning "unknown escape sequence" }
google
android
pedantic-errors
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/pedantic-errors.C
158
utf_8
5e10de393d1872d51958157aa6257743
/* { dg-do preprocess } */ /* { dg-options "-std=c++98 -pedantic-errors" } */ #if 1 #endif 1 /* { dg-error "extra tokens at end of #endif directive" } */
google
android
c++_cmd_1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/c++_cmd_1.C
238
utf_8
7e8a47b64bd4b7100fb7912bb8130ffa
int main () { return 0; }
google
android
pragma-float-const-decimal64-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/pragma-float-const-decimal64-1.C
162
utf_8
3913be0d35b0c2d704cda15ffc55701e
// { dg-do compile } // { dg-options "-Wunknown-pragmas" } #pragma STDC FLOAT_CONST_DECIMAL64 ON // { dg-warning "not supported for C\\\+\\\+" } double d = 1.0;
google
android
syshdr3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/syshdr3.C
614
utf_8
7f78c2a96f75c80605950b24c40f72bf
/* Origin: PR preprocessor/7263 */ /* { dg-options "-pedantic -std=c++98 -ftrack-macro-expansion=1" } */ /* { dg-do compile } */ /* This tests the proprer suppression of warning coming from macro defined in system headers and expanded in a non-system header location. */ #include "syshdr3.h" static _Complex float...
google
android
limits
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/limits.C
841
utf_8
a3615298b94cdbe8ff910007797375ae
// { dg-options "-pedantic" } // { dg-do compile } #include <limits> // Compiling this with -pedantic was wrongly triggering this error: // libstdc++-v3/include/limits:1269:45: warning : use of C++0x long long integer constant [-Wlong-long] // min() _GLIBCXX_USE_NOEXCEPT { return -__LONG_LONG_MAX__ - 1; } // ...
google
android
ucnid-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/ucnid-1.C
577
utf_8
b84d9012b6465e41dff6383936a93a52
/* { dg-do preprocess } */ /* { dg-options "-std=gnu++98 -pedantic -fextended-identifiers" } */ \u00AA /* { dg-error "not valid in an identifier" } */ \u00AB /* { dg-error "not valid in an identifier" } */ \u00B6 /* { dg-error "not valid in an identifier" } */ \u00BA /* { dg-error "not valid in an identifier" } */ \u0...
google
android
stringop-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/stringop-1.C
863
utf_8
9b49b49677814c73da8c0db6d2d2811c
/* Test for buffer overrun stringizing named operators longer than 4 characters. */ /* { dg-do compile } */ #define str(x) #x #define var(v,a,b,c,d) static const char v##a##b##c##d[] = str(xor_eq) #define var1(v,a,b,c) \ var(v,a,b,c,0); var(v,a,b,c,1); var(v,a,b,c,2); var(v,a,b,c,3); \ var(v,a,b,c,4); v...
google
android
_Pragma1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/_Pragma1.C
257
utf_8
074cd02b7474e8119248041c10f08ad3
// PR c++/27748 // This is supposed to succeed only if // the target doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION. // { dg-do compile { target { ! { *-*-solaris2* } } } } #define push bar #define foo _Pragma ("pack(push)") foo int i; #pragma pack(pop)
google
android
c++98-pedantic
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/c++98-pedantic.C
288
utf_8
8ce78309bd631829da82f2798d24d628
/* { dg-do preprocess } */ /* { dg-options "-std=c++98 -pedantic" } */ /* This file is for testing the preprocessor in -std=c++98 -pedantic mode. Neil Booth, 2 Dec 2000. */ #if 1LL /* { dg-warning "long long" } */ #endif
google
android
ucn-1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/cpp/ucn-1.C
440
utf_8
2d4a7b99283dfb5d54412df06956412b
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html // { dg-options "-std=c++0x -fextended-identifiers" } int main() { "\u0041"; // 'A' UCN is OK in string literal '\u0041'; // also OK in character literal int c\u0041c; // { dg-error "not valid in an identifier" } int c\u0024c; ...
google
android
altivec-types-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-types-2.C
705
utf_8
388ac873a0dd6cda0acbd564876dc2e9
/* { dg-do compile { target powerpc*-*-linux* } } */ /* { dg-require-effective-target ilp32 } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-maltivec -mno-vsx" } */ /* These should get warnings for 32-bit code. */ __vector long vl; /* { dg-warning "deprecated" "" } */ __vector unsign...
google
android
pragmaweak1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/pragmaweak1.C
138
utf_8
ad117686eb16e680b29f2f5e45ebe0df
// PR c++/25999 // { dg-final { scan-assembler-not "_Z3Foov" } } extern "C" { void Foo(); } #pragma weak Random_Symbol void Foo() { }
google
android
selectany2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/selectany2.C
675
utf_8
af4cf9e10b51c0d0d85459ba3a539f33
// { dg-do compile { target i?86-pc-cygwin } } // { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } } // Check for errors with invalid usage of selectany attribute. extern int foo; __declspec (selectany) int foo = 1; // OK struct d { static int foo; }; __declspec (selectany) int d::foo = 1; // OK struct...
google
android
vla10
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vla10.C
318
utf_8
1449869695dee3efea51f4669b837c49
// PR c++/48446 // { dg-options "" } template<typename T> struct A { ~A (); T *operator-> () const; }; struct B { typedef A <B> P; static P foo (int); }; struct C { typedef A<C> P; static const int c = 80; }; C::P bar (); void baz () { char z[bar ()->c]; { B::P m = B::foo (sizeof (z)); } }
google
android
attrib22
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib22.C
105
utf_8
833f8e3e0d22842c6ce92cb71319b39f
// PR c++/27648 void f() { static_cast<float *__attribute((unused))>(0); // { dg-error "expected" } }
google
android
utf-badconcat2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/utf-badconcat2.C
669
utf_8
6b71871b35b91daf3926247b6baf86af
// Test unsupported concatenation of UTF-8 string literals. // { dg-do compile } // { dg-options "-std=c++0x" } const void *s0 = u8"a" "b"; const void *s1 = "a" u8"b"; const void *s2 = u8"a" u8"b"; const void *s3 = u8"a" u"b"; // { dg-error "non-standard concatenation" } const void *s4 = u"a" u8"b"; // { dg-erro...
google
android
alias-canon
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/alias-canon.C
741
utf_8
7dfd2972b1402d4103976b061d5cbcd3
// PR c++/34935 /* { dg-do compile } */ /* { dg-final { scan-assembler "_Z1fi" } } */ /* { dg-final { scan-assembler "_Z1fb" } } */ /* { dg-final { scan-assembler "_Z1fd" } } */ /* { dg-final { scan-assembler "_Z1ff" } } */ /* { dg-final { scan-assembler "_Z1fw" } } */ typedef int INT __attribute((may_alias)); void f...
google
android
has_nothrow_copy-3
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/has_nothrow_copy-3.C
191
utf_8
342fa7cf8c1da3204825904ac42f1aaa
// PR c++/36871 // { dg-do run } #include <cassert> struct F { F (const F&) throw () { } template <class T> F (T) throw () { } }; int main () { assert (__has_nothrow_copy (F)); }
google
android
stmtexpr1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/stmtexpr1.C
1,268
utf_8
40ecbac4d27075e4005c73ce57fc001d
// make sure statement expressions work properly // { dg-do run } // { dg-options "" } extern "C" int printf (char const *, ...); extern "C" void abort (); static unsigned order[] = { 1, 101, 2, 102, 3, 4, 104, 103, 5, 6, 105, 106, 7, 107, 8, 408, 9, 109, 108, 10, 11, 110, 411, 12, 112, 111, 13, 113, 14,...
google
android
packed7
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/packed7.C
322
utf_8
2e29b33d9b093b6a30a0e49d1b42c6c8
// PR c++/14124 // A packed enum uses the minimal underlying type. // { dg-do run } enum XXX { xyzzy = 3 } __attribute__((packed)); int main() { int enumsize = sizeof(xyzzy); return (enumsize == 1) ? 0 : 1; }
google
android
asm9
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/asm9.C
91
utf_8
80820bd76c1fd511cf9092d43ccb5baf
// PR 27451 // { dg-do compile } void foo() { asm("" ::: X); // { dg-error "before" } }
google
android
cleanup-8
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/cleanup-8.C
1,953
utf_8
f5d9bf9624bad7524ce9df9e72d33934
/* { 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 signal frames. */ #include <unwind.h> #include <stdlib.h> #include <signal.h> #include <string.h> s...
google
android
attrib44
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib44.C
216
utf_8
a9b531299f7c87d3798a11d5ed6f2ecb
// PR c++/52671 // { dg-do compile } __attribute__ ((deprecated)) enum E { E0 }; // { dg-warning "attribute ignored in declaration of" "ignored" } // { dg-message "must follow the" "must follow" { target *-*-* } 3 }
google
android
utf16-2
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/utf16-2.C
769
utf_8
71db346237651bdbae8361a57bfc4a21
/* Test the support for char16_t* string literals. */ /* { dg-do run } */ /* { dg-options "-std=c++0x -Wall -Werror" } */ extern "C" void abort (void); const static char16_t *s0 = u"ab"; const static char16_t *s1 = u"a\u0024"; const static char16_t *s2 = u"a\u2029"; const static char16_t *s3 = u"a\U00064321"; #define A...
google
android
mv10
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv10.C
204
utf_8
6146d7776788bf2e3abb4675eb20c010
// { dg-do assemble { target i?86-*-* x86_64-*-* } } // { dg-options "" } __attribute__((target ("popcnt"), used)) void foo (void) { } __attribute__((target ("popcnt","avx"), used)) void foo (void) { }
google
android
asm6
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/asm6.C
117
utf_8
0689b61a59bc7c15432dc6d704aebb9f
struct A { ~A(); }; int foo(A); void bar() { A a; asm("" : : "r"(foo(a)) );//<-- cleanup needed here. }
google
android
member-attr
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/member-attr.C
652
utf_8
76dc6abfdf7c1982462bb0cc9c44fb6f
/* Test to see if__attribute__'s are handled by inline member functions */ /* { dg-do compile } */ /* { dg-options "-fmessage-length=0" } */ /* Previously __attribute__'s were handled by the grammar but "dropped on the floor", these effectively ignoring them. This tests the fix to see that they are now handled....
google
android
asmspec1
.C
toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/asmspec1.C
166
utf_8
44f206100f55e5fc0a5d84d25bf00ce9
// PR c++/28343 // { dg-do compile } struct A { int i __asm__(int); // { dg-error "expected" } static int j __asm__(int); // { dg-error "expected" } };