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 | attrib40 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib40.C | 159 | utf_8 | ce5067f997b2079a62b48ddd5f212db9 | // PR c++/46803
int strftime(char *, int, const char *, const struct tm *)
__attribute__ ((__bounded__(__string__,1,2))); // { dg-warning "ignored" }
|
google | android | complit1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complit1.C | 189 | utf_8 | 5163e6d885c069c6cf53f4a8afd5e3c8 | // PR c++/11063
// { dg-options "" }
class Foo
{
private:
const int val_[2];
public:
Foo(int, int);
};
Foo::Foo(int v0, int v1)
: val_((int[]) {v0, v1}) // { dg-error "" "" }
{
}
|
google | android | label1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/label1.C | 226 | utf_8 | 81d5dcb570c603e51795c99355ec35f2 | // { dg-options "" }
int main(void) {
static const void* lbls[2][2] = {{&&lbl0, &&lbl0}, {&&lbl0, &&lbl0}};
goto *lbls[0][0];
goto *lbls[0][0][0]; // { dg-message "" }
goto *lbls[0]; // { dg-error "" }
lbl0:
;
}
|
google | android | int128-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/int128-2.C | 78 | utf_8 | 32e47d9edd5e9de41660e6f8d0faa6c8 | // PR c++/50454
// { dg-do compile { target int128 } }
#include "int128-2.h"
|
google | android | underlying_type1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/underlying_type1.C | 620 | utf_8 | 2d00fabaabfea70460cb4cf6b8746dd6 | // { dg-do compile }
struct B { };
union U { };
template<typename T>
struct underlying_type
{ typedef __underlying_type(T) type; }; // { dg-error "not an enumeration" }
__underlying_type(int) i1; // { dg-error "not an enumeration|invalid" }
__underlying_type(A) i2; // { dg-error "expected" }
__underlying_type(... |
google | android | has_trivial_constructor | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/has_trivial_constructor.C | 1,426 | utf_8 | 74cd33bd9a4a20798b22a38804c96e73 | // { dg-do run }
#include <cassert>
struct A
{
double a;
double b;
};
union U
{
double a;
double b;
};
struct B
{
B() { }
};
struct C
: public B { };
struct D
: public A { };
struct E
{
A a;
};
struct F
{
B b;
};
template<typename T>
bool
f()
{ return __has_trivial_constructor(T); }
template<typ... |
google | android | complex4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complex4.C | 199 | utf_8 | 35b7aa6c0d6fc7e40536c9546a810234 | // { dg-do compile }
// This code used to be rejected as there was no conversion from int to float __complex__
#include <vector>
typedef float __complex__ fcomplex;
std::vector<fcomplex> vfc(10);
|
google | android | builtin-object-size2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/builtin-object-size2.C | 11,176 | utf_8 | 88b60ec42eecbed410b21afccf5a7be3 | // { dg-do run }
// { dg-options "-O2" }
typedef __SIZE_TYPE__ size_t;
extern "C" void abort ();
extern "C" void exit (int);
extern "C" void *malloc (size_t);
extern "C" void free (void *);
typedef struct A
{
char a[10];
int b;
char c[10];
static int d;
} AT;
int A::d = 6;
void
__attribute__ ((noinline))
te... |
google | android | complex7 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complex7.C | 126 | utf_8 | a2e70aa0695a209f89997a3a585cda4e | // { dg-options "" }
class A
{
static const _Complex double x = 1.0 + 2.0i;
};
// { dg-prune-output "constexpr. needed" }
|
google | android | cleanup-1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/cleanup-1.C | 1,344 | utf_8 | 0c56ff67a69ab8b3f9882da4e899114e | /* { dg-do compile } */
/* { dg-options "-Wall -ftrack-macro-expansion=0" } */
/* Validate expected warnings and errors. */
#define U __attribute__((unused))
#define C(x) __attribute__((cleanup(x)))
static int f1(void *x U) { return 0; }
static void f2() { } /* { dg-message "note: declared here" } */
static void f3(... |
google | android | attrib3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib3.C | 439 | utf_8 | 7d022bc15e4179e83cb22834a71091af | // Test that attributes work in a variety of situations.
// { dg-options -O }
// { dg-do run }
#define attrib __attribute ((mode (QI)))
attrib signed int a; // attributes before type are broken
static attrib unsigned int b;
int foo(attrib int o) // attribute arguments are broken
{
return (sizeof (a) != 1
|| s... |
google | android | pr27019 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/pr27019.C | 154 | utf_8 | f5e4ea70b45a11c5323da18215d95112 |
// { dg-do compile }
// { dg-options "" }
struct A
{
int i;
int z[1];
};
A a = { z:{} }; // { dg-message "unimplemented" }
|
google | android | java-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/java-2.C | 1,278 | utf_8 | 2484bd8763c28e930db150903973ca92 | // PR c++/30293
// PR c++/30294
// { dg-do compile { target { ! { powerpc-ibm-aix* } } } }
// { dg-options "" }
extern "Java" {
typedef __java_byte jbyte;
namespace java {
namespace lang {
class Object {};
class Class {};
}
}
typedef struct java::lang::Object* jobject;
typedef java::lang::Class *jclass;
}
extern "... |
google | android | gnu-inline-class | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/gnu-inline-class.C | 508 | utf_8 | 3e9228fd78fc3a72b584e4e2eaab7d3f | /* { 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 | spe1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/spe1.C | 423 | utf_8 | 7b2492885bdb495f9b56b0ffe57b987a | /* { dg-do compile } */
/* { dg-options "-mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single -O0" } */
/* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */
typedef int v2si __attribute__ ((vector_size (8)));
/* The two specializations must be considered different. */
template <class T> class ... |
google | android | packed9 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/packed9.C | 330 | utf_8 | 0932ad5ce3e0455a61e5bd35e5ed587a | // DR21166. unnecessary error on packed char
struct s1 {
char c1;
} __attribute__((packed));
char&
f(struct s1 *s)
{
return s->c1;
}
char *
g(struct s1 *s)
{
return &s->c1;
} |
google | android | mv8 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv8.C | 157 | utf_8 | 71756d5a370200272e4677b59eccf9c5 | // { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-options "" }
__attribute__((target (11,12)))
void foo (void) // { dg-error "not a string" }
{
}
|
google | android | pr28291 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/pr28291.C | 201 | utf_8 | 120e689afda3dc7576257e6a7ec0d8ae |
// Test to make sure we do not ICE on this invalid program.
// { dg-do compile }
// { dg-options "" }
struct A
{
static int i;
int j;
};
A a = { i:0 }; // { dg-error "non-static data member" }
|
google | android | complex9 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complex9.C | 72 | utf_8 | 98da94d26821375de5aaa405c1b2a98a | // PR c++/28501
struct A
{
operator int();
};
int i = __real__ A();
|
google | android | asm5 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/asm5.C | 759 | utf_8 | e5f9fb7d1c25afe2ab0823f495d251e5 | void f (int i)
{
__asm__("" : );
__asm__("" : "+g" (i));
__asm__("" :: );
__asm__("" :: "g" (i));
__asm__("" : : );
__asm__("" : "+g" (i) : );
__asm__("" : : "g" (i));
__asm__("" : "+g" (i) : "g" (i));
__asm__("" ::: );
__asm__("" ::: "memory");
__asm__("" : :: );
__asm__("" : "+g" (i) :: );
__asm__("... |
google | android | utf-typespec | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/utf-typespec.C | 1,058 | utf_8 | 827eb384ed0ae8689adfb8a0084fcf06 | /* Ensure that type specifiers are not allowed for char16_t/char32_t. */
/* { dg-do compile } */
/* { dg-options "-std=c++0x" } */
signed char16_t c0; /* { dg-error "signed" } */
signed char32_t c1; /* { dg-error "signed" } */
unsigned char16_t c2; /* { dg-error "unsigned" } */
unsigned char32_t c3; /* { dg-error... |
google | android | is_base_of_incomplete | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/is_base_of_incomplete.C | 193 | utf_8 | 692933b331734768b72041a3582162cf | // PR c++/50732
template <typename T>
struct non_instantiable
{
typedef typename T::THIS_TYPE_CANNOT_BE_INSTANTIATED type;
};
int check[__is_base_of(non_instantiable<int>, void) ? -1 : 1];
|
google | android | packed5 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/packed5.C | 124 | utf_8 | 16a931c57f92231bf11258bf8610b8ca | // PR c++/14173
struct A;
void foo(const A&);
struct A
{
A(const A&);
};
struct B
{
A a;
A bar() { return a; }
};
|
google | android | lvalue1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/lvalue1.C | 179 | utf_8 | 4d2204ac6e2ce03af82e6431536be376 | // Test that we complain about the gcc cast-as-lvalue extension.
int main ()
{
char c;
return c != 2;
} |
google | android | has_nothrow_constructor_odr | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/has_nothrow_constructor_odr.C | 218 | utf_8 | 9ab0d0de30743cb9e3866cc5d6e0bea8 | // PR c++/36870
// { dg-do run }
#include <cassert>
struct S { S (); };
bool f ();
int main ()
{
assert (__has_nothrow_constructor (S) == f ());
}
S::S () { }
bool f () { return __has_nothrow_constructor (S); }
|
google | android | underlying_type7 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/underlying_type7.C | 529 | utf_8 | cb75a3df5066178d38badf1b14c08775 | // { dg-do compile }
// { dg-options "-std=c++0x" }
enum E1 : unsigned { E1_en = 1 };
enum E2 : char { E2_en = 1 };
enum class E3 { a = -1 };
enum class E4 : unsigned char { c = 1 };
enum class E5 : int { a = -1, b = 1 };
enum class E6 : long { c = __LONG_MAX__ };
template<typename T>
void
test(T, __underlying_ty... |
google | android | c99struct1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/c99struct1.C | 155 | utf_8 | 584e264d76b42642e1d520318920eb9c | // { dg-options "" }
// C99 anon struct variable with array accesses.
struct s { int a[1]; };
void
foo5 (void)
{
((struct s) { { 0 } }).a[0] = 1;
}
|
google | android | has_nothrow_constructor-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/has_nothrow_constructor-2.C | 173 | utf_8 | 2c70d511b8b1cd2eb4c60f6d1f3497bd | // PR c++/55842
// { dg-options -std=c++11 }
template <class=void> struct number {
number() noexcept(noexcept(0)) { }
};
const int z=__has_nothrow_constructor(number<>);
|
google | android | cleanup-4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/cleanup-4.C | 573 | utf_8 | 95a700f1b361b8b7247dd036428905d7 | /* { dg-do run } */
/* { dg-options "" } */
/* Verify cleanup execution on non-trivial exit from a block. */
extern "C" void exit(int);
extern "C" void abort(void);
static int counter;
static void
handler(int *p)
{
counter += *p;
}
static void __attribute__((noinline))
bar(void)
{
}
static void doit(int n, int ... |
google | android | vector17 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vector17.C | 157 | utf_8 | 59cf8ffe4e1021dbdaf3ab1660eb5357 | /* { dg-do compile } */
typedef double __attribute__((vector_size(1024) )) vec;
template <class T>
void f (T *p)
{
p->~T();
}
void g (vec *p)
{
f(p);
}
|
google | android | atomic-1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/atomic-1.C | 181 | utf_8 | 50fb8b6924b95bd4f52f0db40ed5d5ec | // PR c++/52215
// { dg-do compile }
enum E { ZERO };
int
main ()
{
E e = ZERO;
__atomic_compare_exchange_n (&e, &e, e, true, __ATOMIC_ACQ_REL,
__ATOMIC_RELAXED);
}
|
google | android | typeof3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/typeof3.C | 78 | utf_8 | 72bb88847c07dea00da2dd0ccfca39ac | double f(double);
float f(float);
void h(typeof(f) g) {} // { dg-error "" }
|
google | android | vla1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vla1.C | 532 | utf_8 | 1683fdde3c7877ca168f824f7b1eaedf | // { dg-do compile }
// Crash tests from PR middle-end/6994. See also gcc.dg/vla-2.c.
// A::A is acceptable extended C++ (VLA types brought over from C99);
// B::B is not, but is closely related to acceptable extended C, though
// not to acceptable C99.
class A { A (int); };
A::A (int i)
{
int ar[1][i]; // { d... |
google | android | injected-ttp | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/injected-ttp.C | 333 | utf_8 | 04cb5500126619139ae126fdc51c8a1f | // Test for doing the right thing with injected-class-name used as template
// type argument. This is an extension from DR 176.
// { dg-options "-pedantic -std=c++98" }
template <class T>
struct A { };
template <template <class> class TTP>
struct B { };
struct C: A<int>
{
B<A> b; // { dg-warning "injected-clas... |
google | android | desig4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/desig4.C | 478 | utf_8 | afa06d112f4da44d8346101b535c599a | // PR c++/51458
// { dg-options "" }
char g[] = { [7] = "abcd" }; // { dg-error "designator" }
int a = { .foo = 6 }; // { dg-error "designator" }
int b = { [0] = 1 }; // { dg-error "designator" }
_Complex float c = { .foo = 0, 1 }; // { dg-error "designator" }
_Complex float d = { [0] = 0, 1 }; // ... |
google | android | int128-1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/int128-1.C | 259 | utf_8 | 64c2566bddee53ad391dac93f9ac20f8 | // PR c++/50454
// { dg-do compile { target int128 } }
template<typename T>
struct limits;
template<>
struct limits<__int128> { }; // { dg-error "does not support" }
template<>
struct limits<unsigned __int128> { }; // { dg-error "does not support" }
|
google | android | sync-1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/sync-1.C | 874 | utf_8 | e4a78d4631d98dda8d34b1baf828c158 | // Validate that the __sync builtins are overloaded properly.
// { dg-do compile }
// { dg-options "-Werror" }
#define TEST1(TYPE, BUILTIN) \
void t_##TYPE##BUILTIN(TYPE *p) \
{ \
__typeof(BUILTIN(p, 1)) *pp; \
pp = p; \
}
#define TEST2(BUILTIN) \
TEST1(int, BUILTIN) \
TEST1(long, BUILTIN)
TEST2(... |
google | android | has_nothrow_copy-4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/has_nothrow_copy-4.C | 171 | utf_8 | a3e7fc4be8c0fa57bcda92f8875040a2 | // PR c++/36872
// { dg-do run }
#include <cassert>
struct S {
S (const S&) throw ();
S (...) throw (int);
};
int main ()
{
assert (__has_nothrow_copy (S));
}
|
google | android | vla6 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vla6.C | 148 | utf_8 | 4cff2904bf7edbed976d3dd3f67c25ba | // PR c++/28879
// { dg-options "" }
struct A
{
int i;
A(): i(1) {}
};
template<int> void foo()
{
int x[A().i];
}
void f()
{
foo<1>();
}
|
google | android | has_nothrow_constructor | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C | 1,555 | utf_8 | 6bec7beb4547ddc44d475b8b6d7545a5 | // { dg-do run }
#include <cassert>
struct A
{
double a;
double b;
};
struct B
{
A a;
};
struct C
: public A { };
struct D
{
D() throw() { }
};
struct E
{
E() throw(int) { }
};
struct E1
{
E1() throw(int) { throw int(); }
};
struct F
{
F(const F&) throw() { }
};
struct G
{
G(const G&) throw(int) { thro... |
google | android | vla8 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vla8.C | 237 | utf_8 | 243cd782cd6ca8d873f54889889e807f | // PR c++/42387
// { dg-options "" }
template<class PF>
struct AvlTreeIter
{
int Num();
AvlTreeIter()
{
new (void* [Num()]); // { dg-warning "variable-length array" }
}
};
AvlTreeIter<int> a; // { dg-message "from here" }
|
google | android | complit5 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complit5.C | 142 | utf_8 | 5caaf9e2321715eb7f6a18ff81d49dda | // PR c++/25417
// { dg-options "" }
struct object {
int a;
int b;
};
void f (int c, int d)
{
object o = ((object){ a : c, b : d});
}
|
google | android | mv11 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv11.C | 333 | utf_8 | 654813b8a7aadab5734f9708f9c74fb0 | // { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-options "-msse2" }
int foo () __attribute__ ((target("default")));
int foo () __attribute__ ((target("sse2")));
int
main ()
{
return foo ();
}
int __attribute__ ((target("default")))
foo ()
{
return 0;
}
int __attribute__ ((target("sse2")))
foo ()
{
... |
google | android | instantiate2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/instantiate2.C | 565 | utf_8 | 5e54f0ef2e625e228e1d382cd9aa24b3 | // Test that 'static template' instantiates statics.
// { dg-do compile }
// { dg-options "-fno-implicit-templates" }
template <class T> struct A {
static T t;
};
template <class T> T A<T>::t = 0;
static template struct A<int>;
// { dg-final { scan-assembler "\n_?_ZN1AIiE1tE(:|\n|\t)" { target { ! *-*-darwin* } } }... |
google | android | altivec-cell-1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-cell-1.C | 1,476 | utf_8 | dd9c52efe2c8d9b6297333f40984600a | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* Basic test for the new VMX intrinsics. */
#include <altivec.h>
int f(vector int a, int b)
{
return vec_extract (a, b);
}
short f1(vector short a, int b)
{
return vec_extrac... |
google | android | pr17577 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/pr17577.C | 150 | utf_8 | 210171cdbd9571de1bfd894e6c809efa | // Test for PR c++/17577.
/* { dg-do compile } */
#include "pr17577.h"
#pragma implementation "pr17577.h" /* { dg-warning "appears after file" } */
|
google | android | altivec-17 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-17.C | 512 | utf_8 | e7b8730e35adae22637664edfdba084d | // { dg-do compile { target powerpc*-*-* } }
// { dg-require-effective-target powerpc_altivec_ok }
// { dg-options "-maltivec" }
// Make sure that bool vectors have distinct names to int vectors
#define vector__ __attribute__((altivec (vector__)))
#define bool__ __attribute__((altivec(bool__)))
typedef vector__ unsi... |
google | android | gnu-inline-global-redecl | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/gnu-inline-global-redecl.C | 371 | utf_8 | 83baade7989ec401bd49db5363e07e77 | /* Test __attribute__((gnu_inline)).
Check that we don't get out-of-line definitions for extern inline
gnu_inline functions, regardless of redeclaration.
*/
/* { dg-do link } */
/* { dg-options "-O" } */ // such that static functions are optimized out
#include "gnu-inline-common.h"
decl(extern, fn)
gnuindef... |
google | android | bitfield3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/bitfield3.C | 310 | utf_8 | 7f576a1821fbfcaac12d0427c7c95262 | /* { dg-do compile } */
/* { dg-options "-Wno-packed-bitfield-compat" } */
/* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target { i?86-*-mingw* x86_64-*-mingw* } } } */
struct t
{
char a:4;
char b:8;
char c:4;
} __attribute__ ((packed));
int assrt[sizeof (struct t) == 2 ? 1 : -1];
|
google | android | builtin-object-size1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/builtin-object-size1.C | 11,134 | utf_8 | 8de123d2034c7e35f3a466e763cbefc8 | // { dg-do run }
// { dg-options "-O2" }
typedef __SIZE_TYPE__ size_t;
extern "C" void abort ();
extern "C" void exit (int);
extern "C" void *malloc (size_t);
extern "C" void free (void *);
struct A
{
char a[10];
int b;
char c[10];
};
void
__attribute__ ((noinline))
test1 (A *p)
{
char *c;
if (__builtin_ob... |
google | android | attrib48 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib48.C | 115 | utf_8 | ca699314b91eb8b52392070eaa448db1 | // PR c++/54652
typedef unsigned L __attribute__ ((aligned));
typedef unsigned L __attribute__ ((aligned));
L l;
|
google | android | mv5 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv5.C | 436 | utf_8 | 0b7e6be63f874371a065af141e94dc40 | /* Test case to check if multiversioned functions are still generated if they are
marked comdat with inline keyword. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-ifunc "" } */
/* { dg-options "-O2" } */
/* Default version. */
inline int __attribute__ ((target ("default")))
foo ()
{
r... |
google | android | altivec-3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-3.C | 3,484 | utf_8 | d3261ef497bef041056bc7661e3a3686 | /* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */
/* { dg-do compile { target { powerpc*-*-* && { ! vmx_hw } } } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* Test for correct handling of AltiVec constants passed
through '...' (va_arg). */
#include <stda... |
google | android | vector9 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vector9.C | 186 | utf_8 | 584dd0c1839de7f43f066aa14b317137 | // PR c++/34891
typedef float v4f __attribute__((vector_size(8)));
typedef int v4i __attribute__((vector_size(8)));
void foo()
{
v4f v;
!(v4i)v; // { dg-error "v4i|argument" }
}
|
google | android | complit9 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/complit9.C | 284 | utf_8 | 03aa93fc2e77be0f240d8cb0b1d19cb7 | // PR c++/35708
// { dg-options "" }
struct object { int one_o; int allocstamp; };
int pgci_pointable (object obj);
void foo(void);
int main (int argc, char *argv[])
{
if (pgci_pointable((object){7,100}))
{
bad_rehash_size:
foo();
}
goto bad_rehash_size;
}
|
google | android | asm7 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/asm7.C | 251 | utf_8 | 8afca39f01d4d9fd0f55e2cf279c5c77 | /* { dg-do compile } */
const int i = 0;
void f(void)
{
__asm__ __volatile__ ("" : "=m" (i)); /* { dg-error "read-only variable" } */
}
void g(const int set)
{
__asm__ __volatile__ ("" : "=r" (set)); /* { dg-error "read-only parameter" } */
}
|
google | android | label14 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/label14.C | 267 | utf_8 | 5fcb8b661da167170f88e74541df18b0 | // PR c++/53812
// { dg-do compile }
// { dg-options "" }
struct T { T () : t(0) {}; int t; ~T (); };
struct S { void *operator [] (T); };
void bar (S &, void *, void *);
void
foo (S &x, T &y)
{
bar (x, &&l1, &&l2);
l1:
goto *x[y];
l2:
bar (x, &&l1, &&l2);
}
|
google | android | attrib10 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib10.C | 155 | utf_8 | 7e9f8e5acd7da503c63f6342955e1873 | // PR c++/12795
// { dg-require-alias "" }
void foo()
{
extern void bar () __attribute__ ((__alias__ ("BAR"))); // { dg-warning "ignored" }
bar ();
}
|
google | android | selectany1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/selectany1.C | 505 | utf_8 | 9b5ee55248ed64a182e8649894580ade | // { dg-do compile { target i?86-pc-cygwin } }
// { dg-do compile { target i?86-*-mingw* x86_64-*-mingw* } }
// Check that selectany attribute puts symbols into link-once sections.
// { dg-final { scan-assembler "\.section\t\.data\\\$foo\[^\n\]*\n\t\.linkonce discard" } }
// { dg-final { scan-assembler "\.section\t\.... |
google | android | dllimport2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/dllimport2.C | 678 | utf_8 | e66ac85f71f28ce1288c2b47423d944a | // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
// PR c++/9738 Dllimport attribute is overriden by later definition/redeclaration
void __attribute__((dllimport)) Bar(void);
void __attribute__((dllimport)) Baz(void);
__attribute__((dllimport)) int Biz;
__attribute__((dllimport)) int Boz;
... |
google | android | unary_trait_incomplete | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/unary_trait_incomplete.C | 3,224 | utf_8 | 68a19095b850fb2e14a578d917192e92 | // PR c++/39475
struct I; // { dg-error "forward declaration" }
struct C { };
bool nas1 = __has_nothrow_assign(I); // { dg-error "incomplete type" }
bool nas2 = __has_nothrow_assign(C[]);
bool nas3 = __has_nothrow_assign(I[]); // { dg-error "incomplete type" }
bool nas4 = __has_nothrow_assign(void);
bool nas5 = __has... |
google | android | uow-3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/uow-3.C | 144 | utf_8 | ff4b76f68e947fcc25cacffe86927e92 | /* { dg-do compile } */
/* { dg-options "-Wall" } */
typedef int UOW; /* { dg-error "" } */
struct ABC {
UOW UOW; /* { dg-error "" } */
};
|
google | android | is_final | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/is_final.C | 1,489 | utf_8 | 32ecf1b0de7be9e453036b5f3a488ed4 | // PR c++/51365
// { dg-do compile }
// { dg-options "-std=c++0x" }
struct A { };
static_assert( ! __is_final (A), "A not final" );
struct Af final { };
static_assert( __is_final (Af), "Af is final" );
class B { };
static_assert( ! __is_final (B), "B not final" );
class Bf final { };
static_assert( __is_final (Bf), "Bf... |
google | android | has_nothrow_assign_odr | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/has_nothrow_assign_odr.C | 258 | utf_8 | 0c4a4d6a159a48a564551033ebb89c18 | // PR c++/36870
// { dg-do run }
#include <cassert>
struct S { const S& operator= (const S&); };
bool f ();
int main ()
{
assert (__has_nothrow_assign (S) == f ());
}
const S& S::operator= (const S&) { }
bool f () { return __has_nothrow_assign (S); }
|
google | android | attrib43 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib43.C | 115 | utf_8 | eb7c01a3c27870b31eff78eaff0e6292 | template <class T> struct A { };
template
__attribute__ ((packed))
struct A<int>; // { dg-warning "attribute" }
|
google | android | utf-mangle | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/utf-mangle.C | 451 | utf_8 | e162aed6c35e0fca8944455ebdfca829 | // Test the support for char16_t character constants.
// { dg-do compile }
// { dg-options "-std=c++0x" }
void f0 (char16_t c) {}
void f1 (char32_t c) {}
void f2 (char16_t *s) {}
void f3 (char32_t *s) {}
// { dg-final { scan-assembler "_Z2f0Ds:" } }
// { dg-final { scan-assembler "_Z2f1Di:" } }
// { dg-final { scan-ass... |
google | android | stmtexpr8 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/stmtexpr8.C | 317 | utf_8 | c24c0fb32082543dfc7b57bd392ba008 | // PR c++/27115
// { dg-do run }
// { dg-options "" }
struct A
{
int i;
A (int j) : i(j) {}
A (const A &j) : i(j.i) {}
A& operator= (const A &j) { i = j.i; return *this; }
};
A foo(int j)
{
return ({ j ? A(1) : A(0); });
}
int main()
{
return foo(1).i-1;
}
void foo2()
{
A b = ({ A a(1); a; });
}
|
google | android | attribute-test-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attribute-test-2.C | 1,414 | utf_8 | e2de938850cd9962c18c0007baaec934 | // { dg-do run }
// { dg-options "-Wno-abi" }
// PR c++/9844
extern "C" void abort();
#define vector __attribute__((vector_size(16)))
class vector_holder
{
char __attribute__((vector_size(16))) vec;
char __attribute__((vector_size(16))) vec1;
public:
operator __attribute__((vector_size(16))) short (void) {
... |
google | android | stmtexpr14 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/stmtexpr14.C | 147 | utf_8 | e5c3a36ac53e4069367fadc126c6b8d9 | // PR c++/51714
template <typename T>
void Foo()
{
true || !__extension__ ({ int verbose = 2; verbose <= 3; });
}
int main()
{
Foo<int>();
}
|
google | android | mv4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv4.C | 531 | utf_8 | 0325cf2cc1aeb1a8da1bbfea76b78c02 | /* Test case to check if the compiler generates an error message
when the default version of a multiversioned function is absent
and its pointer is taken. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-require-ifunc "" } */
/* { dg-options "-O2" } */
int __attribute__ ((target ("sse")))
foo... |
google | android | asmgoto1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/asmgoto1.C | 381 | utf_8 | 168fada4ecf90eb5b3e4cd3b681d8255 | // PR middle-end/44102
// { dg-do compile }
// { dg-options "-O2" }
void baz (void);
struct A { A (); ~A (); };
static inline int
foo (void)
{
asm goto ("" : : : : l1, l2);
__builtin_unreachable ();
l1:
return 1;
l2:
return 0;
}
int
bar (int x)
{
if (x == 5)
{
A a, b;
baz ();
}
if (... |
google | android | packed8 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/packed8.C | 536 | utf_8 | 92e127333ad0ef733158621f0c931974 | // PR c++/18378
// NOTE: This test assumes packed structure layout differs from unpacked
// structure layout. This isn't true, e.g., with the default
// arm-none-elf options.
// { dg-options "-mstructure-size-boundary=8" { target arm*-*-* } }
class A
{
public:
int i;
A() {}
A(const A& a) { i = a.i;... |
google | android | label3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/label3.C | 656 | utf_8 | 2f937b0172f68361eedae818d69b598b | // Bug: we were removing the p = q assignment in dce, and then reinserting
// it *after* the try/catch in out-of-ssa. Oops.
// testcase reduced from libjava/interpret.cc.
// { dg-do run }
// { dg-options "-O2" }
extern "C" int printf (const char *, ...);
bool b;
int main()
{
__label__ one, two, done;
void *la... |
google | android | builtin-object-size3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/builtin-object-size3.C | 672 | utf_8 | 40741adc7f2c6007d3a4b1ea58cbdfc8 | // { dg-do compile }
// { dg-options "-O2" }
void baz (int *, int *);
#define MEMCPY(d,s,l) __builtin___memcpy_chk (d, s, l, __builtin_object_size (d, 0))
int
foo ()
{
int *p = new int;
int *q = new int[4];
MEMCPY (p, "abcdefghijklmnopqrstuvwxyz", sizeof (int));
MEMCPY (q, "abcdefghijklmnopqrstuvwxyz", 4 * s... |
google | android | altivec-2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-2.C | 587 | utf_8 | 6ef75cee4c5638ff83921803b755cae6 | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -Wall -Wno-unused-but-set-variable" } */
/* This test checks if AltiVec builtins accept const-qualified
arguments. */
#include <altivec.h>
vector unsigned char use_lvsl;
int main (... |
google | android | mv13 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv13.C | 370 | utf_8 | dddc6c1b87c39a9862f845627a78babd | // Test case to check if multiversioning functions that are extern "C"
// generates errors.
// { dg-do compile { target i?86-*-* x86_64-*-* } }
extern "C"
__attribute__ ((target ("default")))
int foo () // { dg-error "previously defined here" }
{
return 0;
}
extern "C"
__attribute__ ((target ("sse4.2")))
int foo ... |
google | android | utf-typedef-cxx0x | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/utf-typedef-cxx0x.C | 335 | utf_8 | 58799b3aa8571ac409dd3334b50cd95e | /* Ensure that a typedef to char16_t/char32_t issues an error in c++0x. */
/* { dg-do compile } */
/* { dg-options "-std=c++0x" } */
typedef short unsigned int char16_t; /* { dg-error "redeclaration" } */
typedef unsigned int char32_t; /* { dg-error "redeclaration" } */ |
google | android | dllexport-MI1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/dllexport-MI1.C | 1,477 | utf_8 | b599bb18b6845feb89174012bf64bcf1 | // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw*} }
// Test that non-virtual MI thunks are exported.
// To build the dll and client app:
// g++ -shared -o MI.dll dllexport-MI1.C
// g++ -o MItest.exe dllimport-MI1.C -L. MI.dll
#define BUILDING_MI_DLL
#include "dll-MI1.h"
MBase::~MBase(){}
i... |
google | android | asmspecInvalid | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/asmspecInvalid.C | 534 | utf_8 | 81d7f5132402c3b9c67ba05f4d092697 | // tests that the asm directive is correctly handled for static fields
// in structures and classes. This only applies to C++; such
// directives generate errors in C. Assembler directives for local
// variables should be tested by the C test suite.
//
// { dg-do compile }
struct Foo {
// This should reference a ... |
google | android | vector13 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/vector13.C | 156 | utf_8 | 0b89905c123e9d47c7e0b5514f4c50e2 | // PR c++/35096
// { dg-do compile }
typedef const int X __attribute((vector_size(8)));
extern const int x[] __attribute((vector_size(8)));
X x[] = { 5 };
|
google | android | attrib13 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib13.C | 189 | utf_8 | 3c5631b027ef64c7af2375ff8239a83f | // PR c++/13854
extern char *rindex (__const char *__s, int __c) throw () __attribute__ ((__pure__));
extern char *rindex (__const char *__s, int __c) throw () __attribute__ ((__pure__));
|
google | android | dllexport4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/dllexport4.C | 1,470 | utf_8 | e0548d55cf542bb860163081ae3f480c | // { dg-do link }
// { dg-require-dll "" }
// { dg-additional-sources "dllexport4a.cc" }
// { dg-options "-O2 -fno-keep-inline-dllexport" }
// { dg-prune-output .*undefined.* }
// { dg-xfail-if "link failure expected" { *-*-* } }
/* Test that inline functions declared "dllexport" appear in object files,
even if the... |
google | android | construct1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/construct1.C | 176 | utf_8 | 10abc828e1142ff735666c5c8f9d280f | // PR c++/16717
// { dg-options "-O2" }
int i;
void hello (void) __attribute__ ((constructor));
void hello (void) { i = 1; }
int main (void) {
if (i != 1)
return 1;
}
|
google | android | is_class | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/is_class.C | 1,094 | utf_8 | ed1c6dd1affd38da6f57f4982d15f9ec | // { dg-do run }
#include <cassert>
struct A
{
double a;
double b;
};
class B
{
B() { }
};
union U
{
double a;
double b;
};
template<typename T>
bool
f()
{ return __is_class(T); }
template<typename T>
class My
{
public:
bool
f()
{ return !!__is_class(T); }
};
template<typename... |
google | android | case-range3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/case-range3.C | 488 | utf_8 | 72c6bbae7ce0172b481cbf43eacbad4a | // { dg-do compile }
// Tests if case ranges (a GNU extension) emit errors in ISO mode
// { dg-options "-pedantic" }
const int low = -2;
const int high = 15;
template <typename T>
T f2 (T i)
{
switch (i)
{
case low ... high : return i + 1; // { dg-warning "non-standard" }
default : return 0;
}
}
int f (... |
google | android | restrict1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/restrict1.C | 81 | utf_8 | 171b60b2dd599842569025ee22f7703a | // PR c++/6392
// { dg-do compile }
struct A
{
int* __restrict__ data[10];
};
|
google | android | is_class_error2 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/is_class_error2.C | 1,552 | utf_8 | 35547c60a5cca63fa7784b899fd77954 | // PR c++/33464
template<int> void foo()
{
__has_nothrow_assign(int)(); // { dg-error "'__has_nothrow_assign\\(int\\)' cannot be used" }
__has_trivial_assign(int)(); // { dg-error "'__has_trivial_assign\\(int\\)' cannot be used" }
__has_nothrow_constructor(int)(); // { dg-error "'__has_nothrow_constructor\\(int\... |
google | android | dllimport4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/dllimport4.C | 941 | utf_8 | 4ac210b2576450d208b7e75f4745bf45 | // Report error if dllimport attribute in definition itself.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
__attribute__((dllimport)) void bar () { } // { dg-error "definition" }
__attribute__((dllimport)) int foo = 1; // { dg-error "definition" }
void faz()
{
__attribute__((dllim... |
google | android | altivec-12 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/altivec-12.C | 397 | utf_8 | ce4ff2095f5aadd1429d75f9964e3068 | /* Test vec_dst* functions with float pointer as first argument. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
#include <altivec.h>
extern int i;
extern float *fp;
extern vector float vf;
void
foo ()
{
vec_dst (fp, i, 1... |
google | android | attr-ifunc-4 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attr-ifunc-4.C | 717 | utf_8 | bd27697247540ba2feb467794ccaa56d | /* { dg-do run } */
/* { dg-require-ifunc "" } */
/* { dg-options "-Wno-pmf-conversions" } */
#include <stdio.h>
struct Klass
{
virtual int magic () = 0;
};
struct Klassier : Klass
{
int implementation ();
int magic ();
static void *resolver ();
};
int Klassier::implementation (void)
{
printf ("'ere I am... |
google | android | attrib39 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib39.C | 158 | utf_8 | 1da29ca3a8314b01760d953e1dd3e965 | // PR debug/43370
// { dg-options "-g" }
int fragile_block(void) {
typedef __attribute__ ((aligned (16))) struct {
int i;
} XmmUint16;
return 0;
}
|
google | android | gnu-inline-anon-namespace | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/gnu-inline-anon-namespace.C | 394 | utf_8 | 653367c82c3f5a9a42dfc8ce52f23ec3 | /* { dg-do compile } */
/* { dg-options "-O" } */ // such that static functions are optimized out
/* { dg-final { scan-assembler-not "func1" } } */
/* { dg-final { scan-assembler-not "func2" } } */
/* { dg-final { scan-assembler-not "func3" } } */
/* { dg-final { scan-assembler-not "func4" } } */
/* { dg-final { scan-a... |
google | android | mv3 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/mv3.C | 794 | utf_8 | 2b4e2d15e1832a5dbed5e118061271d2 | /* Test case to check if a call to a multiversioned function
is replaced with a direct call to the particular version when
the most specialized version's target attributes match the
caller.
In this program, foo is multiversioned but there is no default
function. This is an error if the call has to ... |
google | android | attrib1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib1.C | 560 | utf_8 | 6ce972d5686790fe9c2f5bbd08661b2f | // Test for interpretation of attribute immediately before function name.
// { dg-do compile }
// An attribute immediately before the function name should in this
// case properly apply to the return type, but compatibility with
// existing code using this form requires it to apply to the function
// type instead in th... |
google | android | attrib19 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/attrib19.C | 133 | utf_8 | 156cb04363d25c08db71f92c962b39d7 | // PR c++/19739
void Dummy() __attribute__(( , ));
void Dummy() {}
int main (int argc, char **argv)
{
Dummy();
return 0;
}
|
google | android | cleanup-5 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/cleanup-5.C | 1,292 | utf_8 | 5163d55058f3e9b1c2787f0e8f021dff | /* HP-UX libunwind.so doesn't provide _UA_END_OF_STACK */
/* { dg-do run } */
/* { dg-options "-fexceptions" } */
/* { dg-skip-if "" { "ia64-*-hpux11.*" } { "*" } { "" } } */
/* Verify that cleanups work with exception handling. */
#include <unwind.h>
#include <stdlib.h>
#include <string.h>
static _Unwind_Reason_Co... |
google | android | typeof5 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/typeof5.C | 133 | utf_8 | 894af6b53e421663726a15c3ffb4145c | // { dg-options "" }
int foo;
template <class T> struct Base {};
template <class T>
struct Derived : public Base<typeof(foo)> {};
|
google | android | no-asm-1 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/no-asm-1.C | 339 | utf_8 | fdf69832bb7a9ef593c8792a2660355e | // { dg-do compile }
// { dg-options "" }
// Verify that asm and the GNU extension typeof are recognized as
// keywords.
int asm; // { dg-error "before .asm." }
int typeof; // { dg-error "expected" "expected" }
// { dg-error "multiple types" "multiple" { target *-*-* } 8 }
// { dg-error "declaration" "declaration" { ... |
google | android | is_pod_98 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/is_pod_98.C | 232 | utf_8 | 84c3a14b6222536e4f6c6bb7519b5400 | // PR c++/43333
// { dg-options "-std=c++98" }
// { dg-do run }
struct strPOD
{
const char *const foo;
const char *const bar;
};
extern "C" void abort (void);
int main ()
{
if (!__is_pod (strPOD))
abort ();
return 0;
}
|
google | android | label8 | .C | toolchain/gcc/gcc-4.8.3/gcc/testsuite/g++.dg/ext/label8.C | 204 | utf_8 | 2028776db2296e4738fb6927ced8ac18 | // PR c++/32121
// { dg-do compile }
int f (void)
{
__label__ a, b;
__label__ c;
a:;
b:;
c:;
{
__label__ d;
d:;
if (0)
{
__label__ e;
__label__ f;
f:;
e:;
}
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.