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
pr53970
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr53970.C
262
utf_8
fbe94bcf48ad5e7374ea220cc3ae42c0
// { dg-do run } #pragma pack(1) struct mystruct { char c; unsigned long l[1024]; }; #pragma pack() int main(int argc, char **argv) { mystruct *a = new mystruct; unsigned long i; for (i = 0; i < 1024; ++i) a->l[i] = 0xdeadbeaf; return 0; }
google
android
20090329-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/20090329-1.C
2,215
utf_8
20692bddd18b7647f22a6248b9d7ec73
/* { dg-do compile } */ struct input_iterator_tag { }; template<typename _Category, typename _Tp, typename _Distance = long, typename _Pointer = _Tp*, typename _Reference = _Tp&> struct iterator { typedef _Category iterator_category; }; template<typename _Iterator> struct iterator_traits { typedef typename _It...
google
android
type-generic-1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/type-generic-1.C
286
utf_8
b38327bc402bd0a9700062fd709f9d5a
/* Do the type-generic tests. Unlike pr28796-2.c, we test these without any fast-math flags. */ /* { dg-do run } */ /* { dg-add-options ieee } */ /* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */ #include "../../gcc.dg/tg-tests.h" int main(void) { return main_tests (); }
google
android
vshuf-v8qi
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/vshuf-v8qi.C
414
utf_8
df339ecfea40b3567408fb14a1df077c
// { dg-do run { target c++11 } } typedef unsigned char V __attribute__((vector_size(8))); typedef V VI; #define A1 0x11 #define B1 0x12 #define C1 0x13 #define D1 0x14 #define E1 0x15 #define F1 0x16 #define G1 0x17 #define H1 0x18 #define A2 0xf1 #define B2 0xf2 #define C2 0xf3 #define D2 0xf4 #define E2 0xf5 #def...
google
android
pr58369
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58369.C
2,380
utf_8
02fb684462ac3e57497090f25742a61b
// { dg-do compile } // Reduced from boost-1.54 int pow(int, int); int sqrt(int); class PolicyA { }; template <class> int max_value() { return 0x7fffffff; } template <class> int min_value() { return 1; } void raise_denorm_error(); template <class T> void raise_domain_error(int, int, const T &, const PolicyA &); ...
google
android
pr45934
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr45934.C
225
utf_8
2277fc1457feb3eb95e1d4868983fd02
/* { dg-do run } */ extern "C" void abort (); struct B *b; struct B { virtual void f () { } ~B() { b->f(); } }; struct D : public B { virtual void f () { abort (); } }; int main () { D d; b = &d; return 0; }
google
android
pr54838
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr54838.C
2,139
utf_8
f567a9b738b1f9361d41a630cb3a201f
// { dg-do compile } // { dg-options "-ftracer -fno-tree-dce -fno-tree-sra" } struct bidirectional_iterator_tag {}; struct random_access_iterator_tag:bidirectional_iterator_tag {}; template < typename _Category, typename, typename _Distance, typename > struct iterator { typedef _Distance difference_type; }; template...
google
android
pr41257-2
.C
toolchain/gcc/gcc-4.9/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.9/gcc/testsuite/g++.dg/torture/vshuf-v2df.C
424
utf_8
0ffcb2f0c581a4922db467022ea57781
// // { dg-do run { target c++11 } } #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 #define X 3....
google
android
pr37354
.C
toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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
pr59265
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr59265.C
335
utf_8
bf351794745c9fb29f56c43bb8ff0589
// { dg-do compile { target c++11 } } // { dg-options "-fprofile-use" } class A { int m_fn1() const; unsigned m_fn2() const; }; class B { public: virtual void m_fn1(); }; class C final : B { C(); virtual void m_fn2() { m_fn1(); } }; int a; unsigned A::m_fn2() const { if (m_fn1()) return 0; a = m_fn2(...
google
android
pr30567
.C
toolchain/gcc/gcc-4.9/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
pr59918
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr59918.C
247
utf_8
21aecd85442ba133398fd8c88de6af7e
/* { dg-do compile } */ struct E { ~E(); virtual void f() const; }; struct B : E {}; struct G : virtual B {}; struct A { virtual ~A(); }; struct J : E { void f() const { E *p = 0; p->f(); } }; J h; struct I : A, G, virtual B {};
google
android
pr51344
.C
toolchain/gcc/gcc-4.9/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.9/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
pr60315
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60315.C
298
utf_8
6943ed174a1cd5f71e18756c9ec86b41
// PR ipa/60315 // { dg-do compile } // { dg-options "-std=c++11" } struct Base { virtual int f() = 0; }; struct Derived : public Base { virtual int f() final override { return 42; } }; extern Base* b; int main() { return (static_cast<Derived*>(b)->*(&Derived::f))(); }
google
android
pr33627
.C
toolchain/gcc/gcc-4.9/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
pr58380
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58380.C
5,290
utf_8
0beeff4e8bd02953482f92d8ad4f242e
// { dg-do compile } // { dg-options "-w" } class iplugin_factory; class idocument_plugin_factory { virtual idocument_plugin_factory *create_plugin(iplugin_factory &, int &); }; template <typename _Iterator, typename> class __normal_iterator { _Iterator _M_current; public: _Iterator iterator_type; __normal_it...
google
android
pr58555
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58555.C
2,427
utf_8
6966406e929cb33ef2cd6a3471cf58ad
/* { dg-do compile } */ template <typename _Tp> _Tp *__addressof(_Tp &) {} template <typename _Tp> class A { public: typedef _Tp *pointer; }; template <typename _Tp> class M : public A<_Tp> { public: typedef M other; ~M(); }; class B { public: B(int *); }; class C { public: void GetNext(); C *GetChildren();...
google
android
20080625-1
.C
toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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
pr58585
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58585.C
253
utf_8
52c2593086f27fcd55a01d4bf97b4d53
// { dg-do compile } // { dg-options "-fpic" { target fpic } } struct A { virtual void foo() {} void bar(); }; void A::bar() { foo(); } struct B : virtual A { virtual void foo() {} char c; }; struct C : virtual B { C(); }; C::C() { bar(); }
google
android
pr40492
.C
toolchain/gcc/gcc-4.9/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.9/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.9/gcc/testsuite/g++.dg/torture/pr53602.C
9,926
utf_8
21ab15fa7997b3106e5380c8003657f5
// { dg-do compile { target 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_cxx { templat...
google
android
pr37716
.C
toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/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
pr60474
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60474.C
268
utf_8
5a6a60dcc864dd55e3f68388ec4c5a86
// { dg-do compile } struct Layer; template <typename> struct A { Layer *m_fn1 (); Layer &operator[](int p1) { return m_fn1 ()[p1]; } }; struct Layer { }; void fn1 (A<int> &p1, int Layer::*p2, int p3) { for (int a = 0;; ++a, ++p3) p1[p3].*p2 = p1[a].*p2; }
google
android
pr44492
.C
toolchain/gcc/gcc-4.9/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
pr58201_0
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr58201_0.C
176
utf_8
1f56a692b545bbff0314a6e3861e243e
#include "pr58201.h" C::C2::C2(){ } C::C2::~C2() { } int main () { return 0; }
google
android
pr51600
.C
toolchain/gcc/gcc-4.9/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.9/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
pr60438-2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/torture/pr60438-2.C
103
utf_8
695cf880e03930568098d7e0a14f8f7a
// { dg-do compile } // { dg-options "-fomit-frame-pointer -fno-crossjumping" } #include "pr60438-1.C"
google
android
str_empty
.C
toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/gcc/testsuite/g++.dg/cpp/limits.C
841
utf_8
bb3c9b1e81779a43b584dae48604b8d1
// { 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++11 long long integer constant [-Wlong-long] // min() _GLIBCXX_USE_NOEXCEPT { return -__LONG_LONG_MAX__ - 1; } // ...
google
android
paste1
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp/paste1.C
237
utf_8
c41c3c60e8a193075ec6d307d58b6911
// PR preprocessor/57757 // { dg-do compile { target c++11 } } #define S(x) x extern S("C")void exit (int); int main () { (void) (S("foo")and 0); const wchar_t *p = S(L"foo")L"bar"; const char *a = S("foo")R"(bar)"; exit (0); }
google
android
ucnid-1
.C
toolchain/gcc/gcc-4.9/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.9/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.9/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
paste2
.C
toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp/paste2.C
305
utf_8
f42e713a259604dac363453f43ed7439
// PR preprocessor/57757 // { dg-do compile { target c++11 } } // { dg-options "-save-temps" } // { dg-final cleanup-saved-temps } #define S(x) x extern S("C")void exit (int); int main () { (void) (S("foo")and 0); const wchar_t *p = S(L"foo")L"bar"; const char *a = S("foo")R"(bar)"; exit (0); }
google
android
c++98-pedantic
.C
toolchain/gcc/gcc-4.9/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.9/gcc/testsuite/g++.dg/cpp/ucn-1.C
467
utf_8
f6cc8e4ed3d390ebeabfe0bc8a7dfcbf
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2170.html // { dg-do compile { target c++11 } } // { dg-options "-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 ident...