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 | is_final | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/is_final.C | 1,475 | utf_8 | f97f6c9ca5287718384b4e75531c54f2 | // PR c++/51365
// { dg-do compile { target c++11 } }
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 is final" );
... |
google | android | has_nothrow_assign_odr | .C | toolchain/gcc/gcc-4.9/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.9/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.9/gcc/testsuite/g++.dg/ext/utf-mangle.C | 437 | utf_8 | 72747967a7755c29f0f4f711affd6a47 | // Test the support for char16_t character constants.
// { dg-do compile { target c++11 } }
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-assembler "_Z2f2P... |
google | android | stmtexpr8 | .C | toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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 | is_base_of_incomplete-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/is_base_of_incomplete-2.C | 149 | utf_8 | 4d8cb6dc054c0275b7ee9ca0c033fb93 | struct T;
int check1[__is_base_of(T, T) ? 1 : -1];
int check2[__is_base_of(T, const T) ? 1 : -1];
int check3[__is_base_of(volatile T, T) ? 1 : -1];
|
google | android | asmgoto1 | .C | toolchain/gcc/gcc-4.9/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.9/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 | mv21 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/mv21.C | 232 | utf_8 | c84e884ca23e235ccf14108343325ee8 | /* Test case to check if Multiversioning works. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-ifunc "" } */
/* { dg-require-effective-target static } */
/* { dg-options "-O2 -static" } */
#include "mv1.C"
|
google | android | vla15 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vla15.C | 229 | utf_8 | 360895db3c1d93f3058f39a26cbf8a66 | // PR c++/44613
// { dg-do run }
// { dg-options "" }
void *volatile p;
int
main (void)
{
int n = 0;
lab:;
int x[n % 1000 + 1];
x[0] = 1;
x[n % 1000] = 2;
p = x;
n++;
if (n < 1000000)
goto lab;
return 0;
}
|
google | android | label3 | .C | toolchain/gcc/gcc-4.9/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.9/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 | mv18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/mv18.C | 232 | utf_8 | 86351bc247d8b3d2ef6b7ef85c995ab3 | /* Test case to check if Multiversioning works. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-ifunc "" } */
/* { dg-require-effective-target pie } */
/* { dg-options "-O2 -fPIE -pie" } */
#include "mv1.C"
|
google | android | mv16 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/mv16.C | 1,108 | utf_8 | 38ee544f974ea7ce30210269607806de | // Test that dispatching can choose the right multiversion
// for Intel CPUs with the same internal GCC processor id
// but slighly different sets of x86 extensions.
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-require-ifunc "" }
// { dg-options "-O2" }
#include <assert.h>
int __attribute__ ((target("defa... |
google | android | altivec-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-2.C | 603 | utf_8 | 0d2b8f9e1b8506c8de6da887d8b08add | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -Wall -Wno-unused-but-set-variable -Wno-deprecated" } */
/* This test checks if AltiVec builtins accept const-qualified
arguments. */
#include <altivec.h>
vector unsigned char use_l... |
google | android | mv13 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/mv13.C | 372 | utf_8 | 14e24cf7cd5ef306dd63dde81e792643 | // 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-message "previously defined here" }
{
return 0;
}
extern "C"
__attribute__ ((target ("sse4.2")))
int fo... |
google | android | utf-typedef-cxx0x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/utf-typedef-cxx0x.C | 318 | utf_8 | 35ee13d9399cc3d130229f7c601ee64b | /* Ensure that a typedef to char16_t/char32_t issues an error in c++0x. */
/* { dg-do compile { target c++11 } } */
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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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 | vector22 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector22.C | 504 | utf_8 | 6a5bfb68df045469c7a35b3c003c086b | /* { dg-do compile } */
/* { dg-options "-O -fdump-tree-gimple" } */
typedef unsigned vec __attribute__((vector_size(4*sizeof(int))));
/* Disabled after PR57286
void f(vec*a,vec*b){
*a=(*a)?-1:(*b<10);
*b=(*b)?(*a<10):0;
}
*/
void g(vec*a,vec*b){
*a=(*a)?(*a<*a):-1;
*b=(*b)?-1:(*b<*b);
}
void h(vec*a){
*a=(... |
google | android | is_pod_98 | .C | toolchain/gcc/gcc-4.9/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.9/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:;
}
}
}
|
google | android | label10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/label10.C | 315 | utf_8 | f998bc6ae0ded20824360d0b6074313e | // PR c++/33836
// { dg-do compile }
// { dg-options "" }
template<int N> struct A
{
enum { M = && N }; // { dg-error "referenced outside|cannot appear in|not an integer constant" }
};
A<0> a;
void foo ()
{
__label__ P;
enum { O = && P }; // { dg-error "cannot appear in|not an integer constant" }
P:;
}
|
google | android | stmtexpr9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr9.C | 106 | utf_8 | 1a8af85002e8ca32cf0c099dd5920e54 | // PR c++/28899
// { dg-options "" }
void f()
{
unsigned l, l1;
l1 = l = ({ unsigned __v; __v; });
}
|
google | android | anon-struct3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/anon-struct3.C | 831 | utf_8 | 5f70b0d4a3b1e3b8a10d06d54d63f427 | /* { dg-options "-fms-extensions" } */
/* Verify that enabling Microsoft mode doesn't twist C++ as much as
their corresponding C extensions. Checked vs
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
*/
struct A { char a; };
struct B {
struct A; /* forward decl of B::A. */
cha... |
google | android | attrib5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib5.C | 783 | utf_8 | ec01dbb0bb96c7cda806a516a5cf87d4 | // There were two related problems here, depending on the vintage. At
// one time:
//
// typedef struct A { ... } A __attribute__ ((aligned (16)));
//
// would cause original_types to go into an infinite loop. At other
// times, the attributes applied to an explicit typedef would be lost
// (check_b3 would have a ... |
google | android | mv12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/mv12.C | 437 | utf_8 | 29051ee7a7561ea2dc0ca96e1564563a | // Test case to check if multiversioning works as expected when the versions
// are defined in different files.
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-require-ifunc "" }
// { dg-options "-O2" }
// { dg-additional-sources "mv12-aux.cc" }
#include "mv12.h"
int main ()
{
if (__builtin_cpu_supports ("... |
google | android | vector23 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector23.C | 1,043 | utf_8 | 46f12c53d70d95057905df98baec0984 | /* { dg-do compile { target c++1y } } */
/* { dg-options "-Wsign-conversion" } */
// Ignore warning on some powerpc-linux configurations.
// { dg-prune-output "non-standard ABI extension" }
// Ignore warning on Linux/x86
// { dg-prune-output "changes the ABI" }
typedef double vecd __attribute__((vector_size(4*sizeof(d... |
google | android | bitfield2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/bitfield2.C | 485 | utf_8 | c96e03b84c7e1cbbeb5d28b361467e3f | /* { dg-do compile } */
/* Remove pedantic. Allow the GCC extension to use char for bitfields. */
/* { dg-options "" } */
/* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target { i?86-*-mingw* x86_64-*-mingw* } } } */
struct t /* { dg-message "note: offset of packed bit-field 't::b' has changed in ... |
google | android | has_nothrow_copy-6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/has_nothrow_copy-6.C | 159 | utf_8 | 624811b2fb70c021978d15185fa25400 | // { dg-do run }
#include <cassert>
struct S {
S (S&) throw ();
S (const S&, int) throw (int);
};
int main ()
{
assert (__has_nothrow_copy (S));
}
|
google | android | cleanup-dtor | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/cleanup-dtor.C | 330 | utf_8 | c710ca5bf9dfd62c6681f4709fc4d90a | // Check that destructors are run after cleanup functions.
// { dg-do run }
extern "C" void abort ();
int i;
struct S {
~S() {
if (i != 1)
abort ();
i = 2;
}
};
void f(void *) {
if (i != 0)
abort ();
i = 1;
}
int main () {
{
S s __attribute__((cleanup (f)));
}
if (i != 2)
ab... |
google | android | attrib12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib12.C | 222 | utf_8 | c460ffd02f4c4ad800649b58a60f30e1 | // PR c++/13791
template <typename T> struct O {
struct __attribute__((packed)) I {
int i;
char c;
};
I* foo();
};
template <typename T>
typename O<T>::I*
O<T>::foo() { return 0; }
template class O<int>;
|
google | android | utf-type | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/utf-type.C | 433 | utf_8 | 2b8ad58b6680c9eb294c4ae5021d1251 | /* Ensure that __CHAR16_TYPE__ and __CHAR32_TYPE__ exist, match the types they
are the underlying data type for. */
/* { dg-do run { target c++11 } } */
/* { dg-options "-Wall -Werror" } */
extern "C" void abort (void);
int main ()
{
if (sizeof (__CHAR16_TYPE__) != sizeof (char16_t))
abort();
if (sizeof (__... |
google | android | pr58834 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/pr58834.C | 121 | utf_8 | 4775bf0d01f776786eed6bd280ef69e1 | template<typename> void foo()
{
int i __attribute__((vector_size(2*sizeof(int))));
(void) __builtin_shuffle(i, i);
}
|
google | android | fnname1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/fnname1.C | 491 | utf_8 | b00280f53981a2f30c8d4b894c33962c | // Test whether __func__ works for namespace-scope C++ functions.
// { dg-do run }
namespace xyzzy
{
const char* ab6(double, void*)
{
return __func__;
}
}
int main()
{
const char* s = xyzzy::ab6(2.3, (void*) 0);
bool ok = true;
ok = ok && s[0] == 'a';
ok = ok && s[1] == 'b';
ok = ok && s[2] == '6';
... |
google | android | is_empty2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/is_empty2.C | 166 | utf_8 | 51590a59aaf8715b9fe4a7ae06414cb8 | // PR c++/36797
template <int> struct A { };
template <class T>
int foo (A<__is_empty (T)>* = 0); // { dg-error "built-in trait" }
int main ()
{
foo<int>();
}
|
google | android | vector20 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector20.C | 206 | utf_8 | 53102f32476804a4f2a504e03b0a88ef | /* { dg-do compile { target c++11 } } */
typedef long vec __attribute__((vector_size (2 * sizeof (long))));
constexpr vec v = { 3, 4 };
constexpr vec s = v + v;
constexpr vec w = __builtin_shuffle (v, v);
|
google | android | vla9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vla9.C | 663 | utf_8 | 9bb5caf7c99329edf52d7e4bc97626a1 | // PR c++/43555
// { dg-options "" }
// { dg-do run }
extern "C" void * malloc (__SIZE_TYPE__);
extern "C" int printf (const char *, ...);
extern "C" void abort(void);
int nx,ny;
void f(double *x1d,int choice)
{
double (*x2d)[nx][ny]=(double(*)[nx][ny])x1d;
unsigned long delta;
// (*x2d)[0][0]=123; // <- this l... |
google | android | altivec-7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-7.C | 1,393 | utf_8 | 7660d6ca0bb2815453a8a46cf5d11214 | /* Test for AltiVec type overloading and name mangling. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
#include <altivec.h>
void foo(vector unsigned char) { }
void foo(vector signed char) { }
void foo(vector bool char) ... |
google | android | label9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/label9.C | 190 | utf_8 | c510e07acd289ccbf9cf0ca2264c4ad7 | // PR c++/32121
// { dg-do compile }
int f (void)
{
while (1)
__label__ a; // { dg-error "not at the beginning" }
for (;;)
__label__ b; // { dg-error "not at the beginning" }
}
|
google | android | anon-struct4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/anon-struct4.C | 251 | utf_8 | 99db1626bc6cbccb4347365f13c4de18 | // PR c++/14401
struct { struct { int& i ; } bar ; } foo ; // { dg-error "deleted|uninitialized" "uninit" }
// { dg-warning "anonymous" "anon" { target { ! c++11 } } 3 }
// { dg-message "should be initialized" "ref-uninit" { target { ! c++11 } } 3 }
|
google | android | pr59378 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/pr59378.C | 229 | utf_8 | 866a91381ea9110f2679a3242dd39d16 | // { dg-do compile }
typedef int v4si __attribute__ ((vector_size (4*sizeof(int))));
template<int C>
void traverse(v4si& bounds){
v4si m = {0,1,2,3};
bounds = __builtin_shuffle(bounds, m);
}
template void traverse<0>(v4si&);
|
google | android | mv1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/mv1.C | 2,983 | utf_8 | b15c4a54b35713e848071222fc879d29 | /* Test case to check if Multiversioning works. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-ifunc "" } */
/* { dg-options "-O2 -fPIC" } */
#include <assert.h>
/* Default version. */
int foo (); // Extra declaration that is merged with the second one.
int foo () __attribute__ ((target("def... |
google | android | lvaddr | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/lvaddr.C | 192 | utf_8 | 92a7056cf4009e7b4513a036edcef967 | // { dg-do compile }
void f()
{
int n;
char* p = &(char) n; // { dg-error "lvalue" }
} |
google | android | attrib4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib4.C | 566 | utf_8 | 0689e86022776421672cfd3ac67e3153 | // Test for syntax support of various attribute permutations.
int
__attribute__((noreturn))
__attribute__((unused))
one(void); // OK
__attribute__((noreturn))
__attribute__((unused))
int
two(void); // OK
int
__attribute__((unused))
three (void)
__attribute__((noreturn)); // OK
__attribute__((unused))
int
four (voi... |
google | android | builtin-line1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/builtin-line1.C | 293 | utf_8 | 28c9dbe7fd0321641cd617b67234b425 | // __builtin_LINE gets the location where the default argument is expanded.
// { dg-do run }
#include <cassert>
struct Foo
{
int line;
Foo( int line = __builtin_LINE() )
: line( line )
{}
};
int main()
{
assert (Foo().line == __LINE__);
assert ((new Foo)->line == __LINE__);
}
|
google | android | vla5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vla5.C | 181 | utf_8 | cd0140e3425e97d1c4b919a0ef8b54c3 | // PR c++/37417
// { dg-do compile }
// { dg-options "-O" }
void
test (int a)
{
new (char[a]); // { dg-warning "parentheses" }
} |
google | android | attrib45 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib45.C | 95 | utf_8 | a73db09c380f6e6f784f26040b011488 | // PR c++/52906
__attribute__ ((__deprecated__)); // { dg-error "does not declare anything" }
|
google | android | complex5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/complex5.C | 136 | utf_8 | 053ce94c0ccf34dd5d9b0e28fb917d9b | /* PR c++/21210 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
typedef float __complex__ fcomplex;
fcomplex cplx = fcomplex(0);
|
google | android | attrib20 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib20.C | 622 | utf_8 | 50018a29376e01079f792e320c17f423 | // { dg-do compile }
// { dg-options "-g" }
// Origin: <jan at etpmod dot phys dot tue dot nl>
// PR c++/19508: avoid attributes for template parameters
template <typename T>
struct BVector
{
typedef T T2;
typedef T value_type __attribute__ ((aligned(8))); // { dg-bogus "attribute" "attribute" }
typedef T2 va... |
google | android | interface2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/interface2.C | 186 | utf_8 | 869c6cc33c04831bc61047af9a9ac5fc | // PR c++/26195
// { dg-do link }
// { dg-additional-sources "interface2b.cc" }
// { dg-options "-fno-inline" }
#pragma implementation "interface2-imaginary.h"
#include "interface2a.h"
|
google | android | cond1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/cond1.C | 95 | utf_8 | cfb1e3d3e6cedd5cd651ea51248b3822 | // PR c++/12515
// { dg-do compile }
// { dg-options "" }
template<int> void foo() { 0 ?: 0; }
|
google | android | vector5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector5.C | 105 | utf_8 | 3231264b4b96091ab8a2351e76707e8d | // PR c++/30022
// { dg-do compile }
void foo()
{
int __attribute__((vector_size(8))) v;
v = 1/v;
}
|
google | android | utf-gnuxx0x | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/utf-gnuxx0x.C | 321 | utf_8 | bb128ce7c4aa022f8046c469bbe3faa3 | /* Test parsing of u and U prefixes when also used as macros. */
/* { dg-do compile { target c++11 } } */
#define u L
#define U L
const unsigned short c2 = u'a';
const unsigned long c3 = U'a';
const void *s0 = u"a";
const void *s1 = U"a";
int main () {} |
google | android | altivec-cell-5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-cell-5.C | 1,368 | utf_8 | 29cab7a77633102be8f79fea8bd692b1 | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* Basic test for the new VMX intrinsics and error messages. */
#include <altivec.h>
int main(int argc, char **argv)
{
vector float t;
vec_promote(); /* {... |
google | android | strncpy-chk1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/strncpy-chk1.C | 583 | utf_8 | c6eae99ee50e15b4e020c36dbdac3f92 | // PR c++/40502
// { dg-do compile }
// { dg-options "-O2" }
// { dg-skip-if "packed attribute missing for struct A" { "epiphany-*-*" } { "*" } { "" } }
struct A { char x[12], y[35]; };
struct B { char z[50]; };
inline void
foo (char *dest, const char *__restrict src, __SIZE_TYPE__ n)
{
__builtin___strncpy_chk (des... |
google | android | cleanup-9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/cleanup-9.C | 2,131 | utf_8 | a953d4d67799b505e0722567b09482a7 | /* { dg-do run { target hppa*-*-hpux* *-*-linux* *-*-gnu* powerpc*-*-darwin* *-*-darwin[912]* } } */
/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
/* Verify that cleanups work with exception handling through realtime
signal frames. */
#include <unwind.h>
#include <stdlib.h>
#include <signal.h>
#inc... |
google | android | attrib18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib18.C | 213 | utf_8 | c6e397aab756018698174d40941ed448 | // PR c++/17542
// Test that we warn when an attribute preceding the class-key is ignored.
// { dg-do compile }
__attribute__ ((packed)) struct A // { dg-warning "attribute" }
{
char c;
int x;
void f();
};
|
google | android | bases | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/bases.C | 825 | utf_8 | eaf75750cddfa9e45aeb6ff3b41b6de2 | // { dg-options "-w" }
// { dg-do run { target c++11 } }
#include<typeinfo>
#include<cassert>
// A simple typelist
template<typename... _Elements> struct types {};
// Simple bases implementation
template<typename T> struct b {
typedef types<__bases(T)...> type;
};
// Simple direct_bases implementation
template<ty... |
google | android | dllimport12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/dllimport12.C | 545 | utf_8 | afc4278f4fe70314e5eae58b9633dfd1 | // PR target/27650
// Don't use dllimport semantics on virtual methods when initializing
// vtables
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
// Use import lib thunk for vtable entry of explicitly virtual method,
struct base
{
virtual void key_method();
__attribute__((dllimport))... |
google | android | utf32-3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/utf32-3.C | 1,294 | utf_8 | 5b7134f50579f9686c1ed0a58b8d936f | /* Test concatenation of char32_t* string literals. */
/* { dg-do run { target c++11 } } */
/* { dg-options "-Wall -Werror" } */
extern "C" void abort (void);
const static char32_t *s0 = U"a" U"b";
const static char32_t *s1 = U"a" "b";
const static char32_t *s2 = "a" U"b";
const static char32_t *s3 = U"a" "\u2029";
con... |
google | android | attrib41 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib41.C | 386 | utf_8 | 43c0336af5f4b4f8968c64cfc765d0cd | // PR c++/45267
// { dg-options "-O" }
template<typename T> struct Vector {
Vector(long long x);
inline Vector<T> operator<<(int x) const __attribute__((always_inline));
};
long long bar (long long);
template<> inline Vector<int> Vector<int>::operator<<(int x) const {
return bar(x);
}
bool b;
int main() {
Vect... |
google | android | altivec-10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/altivec-10.C | 706 | utf_8 | 285ca4465aa5835371c2ac366d888737 | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-save-temps -maltivec" } */
#include <altivec.h>
#define vector_float vector float
#define vector_float_foo vector float foo
#define vector_float_bar_eq vector float bar =
/* NB: Keep the following ... |
google | android | vector14 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector14.C | 517 | utf_8 | 44fd57e1c00243ca06f806db95d2e223 | // PR c++/35758
// { dg-do compile }
// { dg-options "-msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } }
// { dg-require-effective-target sse }
// Ignore warning on some powerpc-linux configurations.
// { dg-prune-output "non-standard ABI extension" }
// { dg-prune-output "mangled name" }
#define vector __attrib... |
google | android | asm3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/asm3.C | 318 | utf_8 | f25a72d1994945ee8d899c33d153dd11 | // { dg-do compile }
// PR 7015. ICE with asms
int two(int in)
{
register int out;
__asm__ ("" : "r" (out) : "r" (in));
return out;
}
// { dg-message "error:" "" { target *-*-* } 11 } |
google | android | complit12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/complit12.C | 861 | utf_8 | ab6acb4a7c8c1d0b3e7717da4ac42983 | // PR c++/40948
// { dg-do run }
// { dg-options "" }
int c;
struct M
{
M () { ++c; }
M (const M&) { ++c; }
~M () { --c; }
};
struct S
{
S ();
M m[1];
};
S::S () : m ((M[1]) { M () })
{
}
struct T
{
T ();
M m[4];
};
T::T () : m ((M[4]) { M (), M (), M (), M () })
{
}
typedef M MA[1];
MA &bar (MA, MA... |
google | android | fpreg1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/fpreg1.C | 3,866 | utf_8 | 60898b718df5cec3ef7222e3b1257e0f | // Test permitted and invalid uses of __fpreg, for C++.
// { dg-do compile { target ia64-*-* } }
// { dg-options "" }
__float80 f80;
double d;
// Default initialized __fpreg is OK.
__fpreg fpreg, fpreg2;
// But explicitly zero-initialized is an invalid conversion.
__fpreg fi = 0; // { dg-error "invalid conversion to '_... |
google | android | stmtexpr11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr11.C | 130 | utf_8 | 9b385207de7bf590c1ddd0d68c3ccea4 | // PR c++/31337
// { dg-options "" }
struct A
{
int i[0];
A();
A(const A&);
~A();
};
void foo()
{
A a = ({ A(); });
}
|
google | android | vla14 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vla14.C | 358 | utf_8 | 3e760473fcf2a6f52ce692a12b69f306 | // PR c++/21113
// { dg-options "" }
void
f (int n)
{
goto label; // { dg-error "from here" }
int a[n]; // { dg-error "crosses initialization" }
label: // { dg-error "jump to label" }
;
}
void
g (int n)
{
switch (1)
{
case 1:
int (*a)[n]; // { dg-error "crosses initialization" }
default: // { dg-err... |
google | android | pr57509 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/pr57509.C | 546 | utf_8 | 5c17b84b7378b1cb037b186e3716adc2 | /* { dg-do compile { target c++11 } } */
template <bool> struct enable_if {};
template <> struct enable_if<true> {typedef void type;};
template <class T> void f (T& v) { v = __builtin_shuffle (v, v); }
template <class T> void g (T const&) {}
template <class T> auto g (T const& x) -> typename enable_if<sizeof(__builtin... |
google | android | java-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/java-1.C | 498 | utf_8 | 6093ddc315b5e30bc17b5cc5bfdca3c7 | // { dg-do compile { target { ! { powerpc-ibm-aix* } } } }
// { dg-options "" }
// Test extern "java" and some throwing of the objects.
extern "Java"
namespace java
{
namespace lang
{
class Throwable;
class Class;
}
}
typedef class java::lang::Throwable* jthrowable;
typedef class java::lang::... |
google | android | label13 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/label13.C | 246 | utf_8 | 4e86ec3bb4f304de182ac66cef85c061 | // PR c++/41090
// { dg-do run }
// { dg-options "" }
int i;
struct C
{
C();
};
C::C() // { dg-bogus "can never be copied" "" }
{
static void *labelref = &&label;
goto *labelref;
label: i = 1;
}
int main()
{
C c;
return (i != 1);
}
|
google | android | attrib25 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib25.C | 184 | utf_8 | 5ccb252eb3cd362ba5a845c118004707 | // PR c++/28559
template<typename T> struct A
{
struct B;
};
struct C
{
template<typename T> friend struct __attribute__((packed)) A<T>::B; // { dg-warning "uninstantiated" }
};
|
google | android | vector24 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector24.C | 244 | utf_8 | 082d048149f2f298b6ae5f298da8ebe7 | // { dg-do compile { target c++11 } }
typedef long vec __attribute__((vector_size(2*sizeof(long))));
constexpr vec v = { 33, 42 };
constexpr auto l0 = v[0];
constexpr auto l1 = v[1];
static_assert(l0==33,"Fail");
static_assert(l1==42,"Fail");
|
google | android | complit7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/complit7.C | 81 | utf_8 | e710a424682710a7b643aeb0875d892d | // PR c++/27807
// { dg-options "" }
int i = (int()){0}; // { dg-error "type" }
|
google | android | attrib30 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib30.C | 166 | utf_8 | e44d460202c349fcf4bb0de15b410685 | // { dg-do compile }
// PR c++/35074
template<typename T> struct A
{
void foo() const;
} __attribute((aligned(4)));
template<typename T> void A<T>::foo() const {}
|
google | android | fnname2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/fnname2.C | 538 | utf_8 | a06d181d1f37ed4bbf17112c988f9608 | // Test whether __func__ works for ordinary member functions.
// { dg-do run }
struct y8a
{
const char* zqjx(int, char);
};
const char* y8a::zqjx(int, char)
{
return __func__;
}
int main()
{
y8a tmp;
const char* s = tmp.zqjx(16, 'x');
bool ok = true;
ok = ok && s[0] == 'z';
ok = ok && s[1] == 'q';
ok = ... |
google | android | gnu-inline-template-class | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/gnu-inline-template-class.C | 602 | utf_8 | 58f8a0136cdff73766d2255387d3090e | /* { dg-do compile } */
/* { dg-options "-O" } */ // such that static functions are optimized out
/* { dg-final { scan-assembler "func1" } } */
/* { dg-final { scan-assembler "func2" } } */
/* { dg-final { scan-assembler-not "func3" } } */
/* { dg-final { scan-assembler "func4" } } */
/* { dg-final { scan-assembler "fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.