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 | chromium | cond1 | .C | native_client/nacl-gcc/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 | chromium | label10 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/label10.C | 279 | utf_8 | 1e1b6873efd5860721a09d9df669d84f | // PR c++/33836
// { dg-do compile }
// { dg-options "-std=gnu++98" }
template<int N> struct A
{
enum { M = && N }; // { dg-error "referenced outside|cannot appear in" }
};
A<0> a;
void foo ()
{
__label__ P;
enum { O = && P }; // { dg-error "cannot appear in" }
P:;
}
|
google | chromium | anon-struct3 | .C | native_client/nacl-gcc/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 | chromium | altivec-11 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/altivec-11.C | 252 | utf_8 | 11e05978299d38b5d2b835ef7303988d | /* Test handling of literal constant for dss operation. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
#include <altivec.h>
void
foo ()
{
vec_dss (1);
}
|
google | chromium | attrib30 | .C | native_client/nacl-gcc/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 | chromium | altivec-6 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/altivec-6.C | 796 | utf_8 | e07c8449f69a0c34c2d5507377dc13c1 | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
#include <altivec.h>
void foo(void) {
const unsigned char *buf;
vector pixel vp = { 3, 4, 5, 6 };
vector bool int vbi = { 1, 0, 1, 0 };
vector bool short vbs = { 1, 0, 1, 0, ... |
google | chromium | utf-typedef-cxx0x | .C | native_client/nacl-gcc/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 | chromium | alias-canon | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/alias-canon.C | 741 | utf_8 | 7dfd2972b1402d4103976b061d5cbcd3 | // PR c++/34935
/* { dg-do compile } */
/* { dg-final { scan-assembler "_Z1fi" } } */
/* { dg-final { scan-assembler "_Z1fb" } } */
/* { dg-final { scan-assembler "_Z1fd" } } */
/* { dg-final { scan-assembler "_Z1ff" } } */
/* { dg-final { scan-assembler "_Z1fw" } } */
typedef int INT __attribute((may_alias));
void f... |
google | chromium | attrib18 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attrib18.C | 216 | utf_8 | 82aaa143ec3c9deb77fe0ca5f7aa646f | // 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 | chromium | case-range1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/case-range1.C | 358 | utf_8 | ea8708497444a8e8d07b540409207c48 | // { dg-do compile }
// Tests if case ranges (a GNU extension) are accepted
// { dg-options "" }
const int low = -2;
const int high = 15;
template <typename T>
T f2 (T i)
{
switch (i)
{
case low ... high : return i + 1;
default : return 0;
}
}
int f (int i)
{
switch (i) {
case 1 ... 10: return i +... |
google | chromium | vla3 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/vla3.C | 281 | utf_8 | f603634b7e2ab93b87e602f38ebcc397 | // PR c++/28903
// { dg-options "" }
template <class>
struct View
{
int n;
};
template <class ViewA>
struct ViewDom : View<ViewA>
{
using View<ViewA>::n;
ViewDom();
};
template <class ViewA>
ViewDom<ViewA>::ViewDom()
{
char a[n];
}
void element( )
{
ViewDom<int> a;
}
|
google | chromium | asm2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/asm2.C | 242 | utf_8 | 80a3695697c7262c931be9b1380fa283 | // Bug: in a template, we forgot that this was a simple asm, and decided
// that %edi was a malformed operand specifier.
template <class T> class I {
public:
void f() { asm ("# mov %edi, %esi" ); }
};
int main () {
I<int> x;
x.f();
}
|
google | chromium | va-arg-pack-2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/va-arg-pack-2.C | 1,002 | utf_8 | 95df36aad68d70ccb06176f4d6386b01 | // { dg-do compile }
// { dg-options "-O2" }
int bar (int, const char *, int, ...);
int baz (int, const char *, long int);
extern inline __attribute__((always_inline)) int
f2 (int y, ...)
{
return bar (y, "", __builtin_va_arg_pack ()); /* { dg-error "invalid use of" } */
}
extern inline __attribute__((always_inli... |
google | chromium | alignof1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/alignof1.C | 312 | utf_8 | ae6df71fd3bee2754f2c1b710ca23b88 | // { dg-do run }
// Bug PR/7363.
template<typename T>
int my_alignof()
{
return __alignof__ (T);
}
template<typename>
struct X { };
int main()
{
return !my_alignof<X<void> >();
} |
google | chromium | dllimport9 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/dllimport9.C | 604 | utf_8 | 4e6cf07be6d6bf7279e7d225d0bbfbba | // Handle dllimport attribute for functions declared inline.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
// { dg-options { -W } }
inline __attribute__((dllimport)) void bar() { } // { dg-warning "inline" }
struct __attribute__ ((dllimport)) Blah
{
void in_blah () { } // Don't warn if member decla... |
google | chromium | dllimport6 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/dllimport6.C | 639 | utf_8 | f5c966c608c86f79209e3c08c02b33b9 | // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
// Mark class static members as dllimport.
struct Baz
{
Baz(int a_ =0) : a(a_) {}
int a;
};
class __attribute__ ((dllimport)) Bar
{
public:
static const int two = 2;
static const int three;
static const Baz null_baz;
};
int foo()
{
Bar... |
google | chromium | bitfield1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/bitfield1.C | 262 | utf_8 | 923b176668f5084b5c9e372d30ecd044 | // PR c++/30328
// { dg-do link }
// { dg-options "" }
struct S
{
signed int a:17;
} x;
typedef typeof (x.a) foo;
template <class T>
T* inc(T* p) { return p+1; }
int main ()
{
foo x[2] = { 1,2 };
int y[2] = { 1,2 };
*inc(x);
*inc(y);
return 0;
}
|
google | chromium | has_trivial_assign | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/has_trivial_assign.C | 1,550 | utf_8 | e6fbd59c1203b67d851ec706fb76891f | // { dg-do "run" }
#include <cassert>
struct A
{
double a;
double b;
};
union U
{
double a;
double b;
};
struct B
{
B& operator=(const B&) { return *this;}
};
struct C
{
virtual int f() { return 1; }
};
struct D
: public B { };
struct E
: public A { };
struct F
{
A a;
};
struct G
{
B b;
};
template<typ... |
google | chromium | dllimport4 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/dllimport4.C | 924 | utf_8 | 778b9c82431c12fc046591da2d48366c | // Report error if dllimport attribute in definition itself.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
__attribute__((dllimport)) void bar () { } // { dg-error "definition" }
__attribute__((dllimport)) int foo = 1; // { dg-error "definition" }
void faz()
{
__attribute__((dllimport)) int faa = ... |
google | chromium | attrib24 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attrib24.C | 118 | utf_8 | 2f298883fda177e9d00832650a772b69 | // PR c++/28387
// { dg-do compile }
enum __attribute__((unused)) E; // { dg-error "without previous declaration" }
|
google | chromium | tmplattr5 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/tmplattr5.C | 773 | utf_8 | 0675b180ea1558119008645720d1da58 | // PR c++/19407
// { dg-do run }
typedef float global_vector_type __attribute__((vector_size(16)));
template <class T> struct A
{
typedef T type;
};
template < typename Val > struct S
{
typedef typename A<Val>::type vector_type __attribute__((vector_size(16)));
typedef Val vector_type2 __attribute__((vector_si... |
google | chromium | utf16-1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/utf16-1.C | 1,371 | utf_8 | 806467551ae476a32e74866fb9edbc6b | /* Test the support for char16_t character constants. */
/* { dg-do run } */
/* { dg-options "-std=c++0x -Wall -Werror" } */
extern "C" void abort (void);
const static char16_t c0 = u'a';
const static char16_t c1 = u'\0';
const static char16_t c2 = u'\u0024';
const static char16_t c3 = u'\u2029';
const static char16_t ... |
google | chromium | dllexport1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/dllexport1.C | 645 | utf_8 | 4bc15b43bea65ed1a02904869e0e19d5 | // Test that inline functions are exported with -fkeep-inline-functions.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
// { dg-options -fkeep-inline-functions }
__attribute__((dllexport)) inline int foo (int a) { return a;}
class __attribute__((dllexport)) Bar
{
public:
Bar(){};
int inline_b... |
google | chromium | is_base_of | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/is_base_of.C | 1,698 | utf_8 | 8377f48fc59543dda473a500a686a363 | // { dg-do "run" }
#include <cassert>
class A1
{
double a;
double b;
};
class A2
{
double a;
double b;
};
class B
: private A1 { };
class C
: private A1, private A2 { };
union U
{
double a;
double b;
};
template<typename T, typename U>
bool
f()
{ return __is_base_of(T, U); }
template<type... |
google | chromium | label7 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/label7.C | 225 | utf_8 | 895ee2546695c14f3c38c7a1b79fbac1 | // PR c++/32121
// { dg-do compile }
int f (void)
{
a:;
__label__ a; // { dg-error "not at the beginning" }
int b;
__label__ c; // { dg-error "not at the beginning" }
a:; // { dg-error "duplicate label" }
c:;
}
|
google | chromium | asm9 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/asm9.C | 91 | utf_8 | 80820bd76c1fd511cf9092d43ccb5baf | // PR 27451
// { dg-do compile }
void foo()
{
asm("" ::: X); // { dg-error "before" }
}
|
google | chromium | stmtexpr3 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/stmtexpr3.C | 93 | utf_8 | 15be25b1a07f94e4d65103bfb52d6406 | // PR c++/16112
// { dg-options "" }
struct A
{
A();
};
A foo() { return ({ A(); }); }
|
google | chromium | strncpy-chk1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/strncpy-chk1.C | 491 | utf_8 | e3ce25bc3f909c6ae86361551870e667 | // PR c++/40502
// { dg-do compile }
// { dg-options "-O2" }
struct A { char x[12], y[35]; };
struct B { char z[50]; };
inline void
foo (char *dest, const char *__restrict src, __SIZE_TYPE__ n)
{
__builtin___strncpy_chk (dest, src, n, __builtin_object_size (dest, 0)); // { dg-warning "will always overflow" }
}
voi... |
google | chromium | typeof7 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/typeof7.C | 112 | utf_8 | 0217210e867cc6de19f825b9e4b680d3 | // PR c++/13635
// { dg-options "" }
template<int n> class X {template<class Y> typeof(Y::y) foo();};
X<0> x;
|
google | chromium | altivec-types-2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/altivec-types-2.C | 696 | utf_8 | e26e88c7da8530b201f664e8f449b112 | /* { dg-do compile { target powerpc*-*-linux* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* These should get warnings for 32-bit code. */
__vector long vl; /* { dg-warning "deprecated" "" } */
__vector unsigned long v... |
google | chromium | altivec-types-3 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/altivec-types-3.C | 708 | utf_8 | 4f75a0595faca5d19b10840f23b3e5ac | /* { dg-do compile { target powerpc*-*-linux* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-require-effective-target lp64 } */
/* { dg-options "-maltivec" } */
/* These should be rejected for 64-bit code. */
__vector long vl; /* { dg-error "invalid for 64" "" } */
__vector unsigned long v... |
google | chromium | forscope1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/forscope1.C | 371 | utf_8 | ddff3d312dcb75275526c22a8eb2891b | // { dg-do compile }
// { dg-options -fno-for-scope }
// Bug 4206. We were nesting SCOPE_STMTs badly.
struct A
{
A ();
~A ();
};
void Go( )
{
for (int i = 1;;)
{
switch (1) {
default: {}
}
A d;
}
i;
} |
google | chromium | stmtexpr2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/stmtexpr2.C | 1,225 | utf_8 | e6bc1a09cf3c9d838c7ad4575c3d8740 | // { dg-do run }
// { dg-options "" }
extern "C" int printf (char const *, ...);
extern "C" void abort ();
// There are two alternate legal renderings.
static unsigned int alt1[] = { 11, 10, 21, 110, 111, 121 };
static unsigned int alt2[] = { 10, 11, 21, 111, 110, 121 };
static unsigned int pointer = 0;
static unsig... |
google | chromium | typeof2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/typeof2.C | 516 | utf_8 | d4a84aa4c28cc592a1e9f2cc414b0de8 | // Test typeof with __asm redirection
// { dg-do compile }
// { dg-options "-O2" }
extern "C" {
extern int foo1;
extern int foo1 __asm ("bar1");
int foo1 = 1;
extern int foo2 (int);
extern int foo2 (int) __asm ("bar2");
int foo2 (int x)
{
return x;
}
extern int foo3;
extern __typeof (foo3) fo... |
google | chromium | cleanup-8 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/cleanup-8.C | 1,953 | utf_8 | f5d9bf9624bad7524ce9df9e72d33934 | /* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]* } } */
/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
/* Verify that cleanups work with exception handling through signal
frames. */
#include <unwind.h>
#include <stdlib.h>
#include <signal.h>
#include <string.h>
s... |
google | chromium | attrib21 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attrib21.C | 229 | utf_8 | 79dfce253a854fcefcd1eb3bf7e60934 | // PR c++/20763
typedef void *voidp;
struct S
{
char a;
voidp __attribute__ ((aligned (16))) b;
};
struct T
{
char a;
void *__attribute__ ((aligned (16))) b;
};
int f[sizeof (struct S) != sizeof (struct T) ? -1 : 1];
|
google | chromium | attrib25 | .C | native_client/nacl-gcc/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 | chromium | fixed1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/fixed1.C | 231 | utf_8 | cfd6fca862458e42100b9df11b48ee9e | // PR c++/35325
// { dg-options "" }
template<int> struct A {};
template<typename> struct B : A<sizeof(0=0r)> {}; // { dg-error "not supported" }
template<typename> struct C : A<sizeof(0=0r)> {}; // { dg-error "not supported" }
|
google | chromium | packed3 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/packed3.C | 662 | utf_8 | 238ffa2ee564d6bf5c854871d9a259dd | // { dg-do compile }
// Packed fields are unsuitable for direct reference binding.
struct Unpacked { int i; };
void Ref (int &p);
void Ref (Unpacked &p);
struct __attribute__ ((packed)) Packed
{
char c;
int i;
Unpacked u;
};
void Foo (Packed &p)
{
Ref (p.i); // { dg-error "cannot bind packed field" "" { target... |
google | chromium | altivec-5 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/altivec-5.C | 298 | utf_8 | 355a9e23c60206207713180015d48356 | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* PR c++/14426 */
#include <altivec.h>
vector unsigned int splat0u()
{
return vec_splat_u32(0);
}
vector int splat0s()
{
return vec_splat_s32(0);
}
|
google | chromium | stmtexpr13 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/stmtexpr13.C | 135 | utf_8 | a35a509e151456af5b8cfb76d49c85ed | // PR c++/35747
// { dg-do compile }
// { dg-options "" }
void
foo ()
{
({ i; ({ i; }); 0; }); // { dg-error "was not declared" }
}
|
google | chromium | attrib34 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attrib34.C | 607 | utf_8 | 6ca90338cc7b2eaecb90e6f07f49d349 | // PR c/37171
// { dg-do compile }
// { dg-options "-O2 -fdump-tree-optimized" }
unsigned int f1 () __attribute__((const));
unsigned int f2 () __attribute__((__const));
unsigned int f3 () __attribute__((__const__));
unsigned int f4 ()
{
return f1 () + f1 () + f1 () + f1 ()
+ f2 () + f2 () + f2 () + f2 ()
+ f3 (... |
google | chromium | attrib20 | .C | native_client/nacl-gcc/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 | chromium | utf-array-short-wchar | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/utf-array-short-wchar.C | 1,697 | utf_8 | 346b5c51b85b9d0668c28671f92f6416 | /* Expected errors for char16_t/char32_t string literals. */
/* { dg-do compile } */
/* { dg-options "-std=c++0x -fshort-wchar" } */
const char s_0[] = "ab";
const char s_1[] = u"ab"; /* { dg-error "from wide string" } */
const char s_2[] = U"ab"; /* { dg-error "from wide string" } */
const char s_3[] = L"ab"; /* { dg-... |
google | chromium | pr34829 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/pr34829.C | 318 | utf_8 | d5eea1e0f08dca8eab2b57d02f7bc73a | // Test for PR c++/34829
// Placement new should be ok for non-aggregate Java types.
// { dg-do compile }
// { dg-options "" }
extern "Java"
{
typedef __java_byte jbyte;
}
typedef __SIZE_TYPE__ size_t;
void *operator new (size_t, void *m)
{
return m;
}
jbyte *f(void *memory)
{
return new (memory) jbyte;
}
|
google | chromium | utf-array | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/utf-array.C | 1,683 | utf_8 | 1b738e2aa49d357d5c68f897ec68f9f9 | /* Expected errors for char16_t/char32_t string literals. */
/* { dg-do compile } */
/* { dg-options "-std=c++0x" } */
const char s_0[] = "ab";
const char s_1[] = u"ab"; /* { dg-error "from wide string" } */
const char s_2[] = U"ab"; /* { dg-error "from wide string" } */
const char s_3[] = L"ab"; /* { dg-error "from wi... |
google | chromium | has_nothrow_constructor | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/has_nothrow_constructor.C | 1,557 | utf_8 | 10b4baea8b61334dbb5811330b8784ba | // { 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) { th... |
google | chromium | init1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/init1.C | 141 | utf_8 | 853c0d1bb8c4ec806df7ecfff1c64c10 | // PR c++/9623
// Test for trivial use of named initializer extension
// { dg-options "" }
struct S { int x; int y; };
S s = { x:1, y:2 };
|
google | chromium | restrict1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/restrict1.C | 81 | utf_8 | 171b60b2dd599842569025ee22f7703a | // PR c++/6392
// { dg-do compile }
struct A
{
int* __restrict__ data[10];
};
|
google | chromium | typeof9 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/typeof9.C | 312 | utf_8 | d7e6d10c23ed31b44c2e6c3268ab2b30 | // { dg-do compile }
// PR c++/14106: ICE with typeof of function template.
template<class T>
void j (T i)
{
}
template<typename T>
void instanciate () {
static void (*fp) (T) = j;
__typeof__ (j) *p; // { dg-error "unknown|invalid" }
}
template void instanciate<float>(); |
google | chromium | typeof3 | .C | native_client/nacl-gcc/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 | chromium | complit9 | .C | native_client/nacl-gcc/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 | chromium | forscope2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/forscope2.C | 451 | utf_8 | cd4fed30cd2d12ab7d7ed0fd114114fc | // { dg-do compile }
// { dg-options -fpermissive }
// Bug 4206. We were nesting SCOPE_STMTs badly.
struct A
{
A ();
~A ();
};
void Go( )
{
for (int i = 1;;) // { dg-warning "using obsolete binding" "" }
{
switch (1) {
default: {}
}
A d;
}
i; // { dg-warning "name lookup" "" }
} |
google | chromium | has_nothrow_copy-7 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/has_nothrow_copy-7.C | 188 | utf_8 | 0c9cfccbac08d5db735fb91842f0b08b | // { dg-do "run" }
// { dg-options "-std=c++0x" }
#include <cassert>
struct S {
S (const S&) throw ();
S (S&&) throw (int);
};
int main ()
{
assert (__has_nothrow_copy (S));
}
|
google | chromium | stmtexpr1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/stmtexpr1.C | 1,268 | utf_8 | 40ecbac4d27075e4005c73ce57fc001d | // make sure statement expressions work properly
// { dg-do run }
// { dg-options "" }
extern "C" int printf (char const *, ...);
extern "C" void abort ();
static unsigned order[] =
{
1, 101, 2, 102,
3, 4, 104, 103,
5, 6, 105, 106,
7, 107, 8, 408, 9, 109, 108,
10, 11, 110, 411, 12, 112, 111,
13, 113,
14,... |
google | chromium | packed6 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/packed6.C | 1,293 | utf_8 | 54fc351826d44abec62c9c7f09228d06 | // PR c++/15209
// { dg-options "-w" }
__extension__ typedef __SIZE_TYPE__ size_t;
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
__extension__ typedef unsigned long long int uint64_t;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t... |
google | chromium | spe1 | .C | native_client/nacl-gcc/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 | chromium | vector14 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/vector14.C | 443 | utf_8 | c96dec2f72294844f5ad12c23c748db0 | // PR c++/35758
// { dg-do compile }
// { dg-options "-msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
// Ignore warning on some powerpc-linux configurations.
// { dg-prune-output "non-standard ABI extension" }
#define vector __attribute__((vector_size(16)))
template<int N> vector signed int foo (vector fl... |
google | chromium | altivec-4 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/altivec-4.C | 263 | utf_8 | 4f6acab6c14678a58ab3251c4c5a0ce1 | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* PR c++/14425 */
#include <altivec.h>
vector unsigned int splat0(vector unsigned int x)
{
return vec_splat(x, 0);
}
|
google | chromium | gnu-inline-template-class | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/gnu-inline-template-class.C | 602 | utf_8 | 58f8a0136cdff73766d2255387d3090e | /* { dg-do compile } */
/* { dg-options "-O" } */ // such that static functions are optimized out
/* { dg-final { scan-assembler "func1" } } */
/* { dg-final { scan-assembler "func2" } } */
/* { dg-final { scan-assembler-not "func3" } } */
/* { dg-final { scan-assembler "func4" } } */
/* { dg-final { scan-assembler "fu... |
google | chromium | fnname1 | .C | native_client/nacl-gcc/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 | chromium | attribute-test-3 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attribute-test-3.C | 902 | utf_8 | 04060e02810f1cd111d917969c46a202 | // { dg-do run }
#define vector __attribute__((vector_size(16)))
extern "C" void abort();
class Star
{
public:
inline vector float foo() const;
Star()
{
data.f[0] = 1.0; data.f[1] = 2.0; data.f[2] = 3.0, data.f[3] = 4.0;
}
private:
union {
float f[4];
v... |
google | chromium | alias-mangle | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/alias-mangle.C | 184 | utf_8 | 3f2cd7f4b0f52c57ea6794f4ec24c54c | // PR c++/34936
// { dg-do compile }
/* { dg-final { scan-assembler "_ZN1AIdEC1Ev" } } */
typedef double X __attribute((may_alias)) ;
template<typename> struct A
{
A();
};
A<X> a;
|
google | chromium | dllimport8 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/dllimport8.C | 596 | utf_8 | bc4c347780b5d43286e86e8745fd1213 | // PR c++/8378
// Ignore dllimport of static members if marked inlined.
// or if definition follows declaration in dllimported class.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
// { dg-options { -Wall -W } }
struct __attribute__((dllimport)) Foo
{
static int static_int;
static void static_f... |
google | chromium | attrib1 | .C | native_client/nacl-gcc/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 | chromium | gnu-inline-anon-namespace | .C | native_client/nacl-gcc/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 | chromium | anon-struct1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/anon-struct1.C | 1,211 | utf_8 | 5080c1dcd67db52ba793867cc63ba3a3 | /* { dg-options "-ansi -pedantic -pedantic-errors" } */
/* In strict ISO C++ mode, we don't recognize the anonymous struct
extension or any Microsoft C extensions. */
struct A { char a; };
struct B {
struct A; /* forward decl of B::A. */
char b;
};
char testB[sizeof(B) == sizeof(A) ? 1 : -1];
struct C {
st... |
google | chromium | attrib32 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attrib32.C | 456 | utf_8 | 9dd60e46feb4216f1dac3c4779c9a6b4 | // PR c++/35315
typedef union { int i; } U __attribute__((transparent_union));
static void foo(U) {}
static void foo(int) {}
void bar()
{
foo(0);
}
typedef union U1 { int i; } U2 __attribute__((transparent_union));
static void foo2(U1) {}
static void foo2(U2) {}
void bar2(U1 u1, U2 u2)
{
foo2(u1);
foo2(u2);... |
google | chromium | vlm2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/vlm2.C | 153 | utf_8 | 678b0a6bbf7e0629efdf82de5e5ed01a | // { dg-options "" }
int n;
struct Y
{
void f () {
typedef int X[n];
struct Z {
X x; // { dg-error "variably modified" }
};
}
};
|
google | chromium | complit4 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/complit4.C | 119 | utf_8 | f2a3354acae823d1855d3f7820f78229 | // PR c++/23172
// { dg-do run }
// { dg-options "" }
int i = (int) {7};
int main () {
if (i != 7)
return 1;
}
|
google | chromium | asm7 | .C | native_client/nacl-gcc/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 | chromium | typeof1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/typeof1.C | 346 | utf_8 | 797d2045e8822a50b44635725cab1028 | // Test typeof template argument substitution
// { dg-do compile }
// { dg-options "" }
template <class T> struct A {
void f() {}
void g(T* t) {
A<typeof(t)> a;
a.f();
}
};
int main()
{
A<int> a;
int b;
a.g(&b);
} |
google | chromium | weak2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/weak2.C | 309 | utf_8 | d2a31eb19f78eba07ebeb256b409141a | // Test for #pragma weak with declaration not at file scope.
// { dg-do compile }
// { dg-require-weak "" }
// { dg-options "" }
// { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?_Z3foov" } }
#pragma weak _Z3foov
int
main (void)
{
extern int foo (void);
if (&foo)
return foo ();
return 0;
}
|
google | chromium | has_virtual_destructor | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/has_virtual_destructor.C | 1,363 | utf_8 | 89d24714780dd98ae3c2beaa0d7f2a82 | // { dg-do "run" }
#include <cassert>
#include <exception>
struct A
{
double a;
double b;
};
union U
{
double a;
double b;
};
class B
{
virtual ~B() { }
};
class C
: public B { };
class D
{
~D() { }
};
template<typename T>
bool
f()
{ return __has_virtual_destructor(T); }
template<typename T>
class ... |
google | chromium | always_inline-4 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/always_inline-4.C | 348 | utf_8 | 2ac7c8bbdf5a3e29d0fe098818a73c8c | // { dg-options "-O0" }
// { dg-do compile }
// PR C++/34715
template <class T>
const T& min123(const T& a, const T& b);
template <class T>
inline __attribute__ ((always_inline)) const T&
min123(const T& a, const T& b)
{
return a < b ? a : b;
}
int main()
{
int a, b;
return min123(a, b);
}
// { dg-final { scan... |
google | chromium | tmplattr7 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/tmplattr7.C | 210 | utf_8 | 3ebac9950d9d5de5060e8a708e6c45b8 | // PR c++/33620
template <typename T>
struct __attribute__((visibility("default"))) List {};
int bar(List<int> args);
bool test(const List<int> &);
int i = bar(List<int>());
bool test(const List<int> &) {}
|
google | chromium | vector10 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/vector10.C | 163 | utf_8 | 57968f25892a26e6c8c805a0122dda46 | // PR c++/34914
// { dg-do compile }
struct A { int __attribute ((vector_size (8))) x; };
void
foo ()
{
__attribute ((vector_size (8))) int A::*p;
p == 0;
}
|
google | chromium | altivec-15 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/altivec-15.C | 579 | utf_8 | 4fe6a72aa2023afeaf712490baff1723 | /* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec" } */
/* This test was added for an internal compiler error. The number and
content of error messages is irrelevant. */
struct SubData
{
inline const Float Clamp(Float f, Float ... |
google | chromium | asm10 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/asm10.C | 417 | utf_8 | 82e001dc60a8f36b8affdc7210de5b60 | // PR inline-asm/32109
// { dg-do compile }
// { dg-options "-O2" }
struct A { int i[3]; ~A (); };
struct A a;
struct B { struct A c; int i; B (); } b;
B::B ()
{
__asm ("" : : "r" (a)); // { dg-error "impossible constraint|non-memory input" }
__asm ("" : : "r" (b.c)); // { dg-error "impossible constraint|non-memory... |
google | chromium | bitfield2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/bitfield2.C | 438 | utf_8 | e1bd9330b40987e647d1626122d8d489 | /* { dg-do compile } */
/* Remove pedantic. Allow the GCC extension to use char for bitfields. */
/* { dg-options "" } */
/* { dg-options "-mno-ms-bitfields" { target i?86-*-netware } } */
struct t
{ /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matter... |
google | chromium | attrib7 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attrib7.C | 86 | utf_8 | 7af1e9265de26187b4a3a3880f99ac11 | // { dg-options "-Wunused-parameter" }
void f (int i __attribute__((__unused__))) {}
|
google | chromium | vla2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/vla2.C | 395 | utf_8 | 1a6b39e9b2ac0eb6646ffa34331be0ad | // { dg-do compile }
// { dg-options "" }
// PR 9708. We unified a VLA size as a constant. Then issued bogus
// errors.
template <unsigned int N>
char* begin(char (&a) [N] );
void bar(int i)
{
char d[i] ;
begin(d); // { dg-error "no matching function" "" }
} |
google | chromium | instantiate1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/instantiate1.C | 700 | utf_8 | 6cfdb6711dd7c538f7c4411216e0cc5b | // Test that 'extern template' suppresses instantiations.
// { dg-do compile }
// { dg-options "" }
template <class T> void f (T) { }
extern template void f (int);
template <class T> struct A {
void f ();
};
template <class T> void A<T>::f () { }
extern template struct A<int>;
// { dg-final { scan-assembler-not "\... |
google | chromium | pretty1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/pretty1.C | 1,396 | utf_8 | ae2794e104309a224e228d70e4cede48 | // PR c++/6794
// Test whether __PRETTY_FUNCTION__ works in templates, functions and
// in initializers at global scope
// { dg-do compile }
// { dg-options "" }
extern "C" void __assert_fail (const char *, const char *,
unsigned int, const char *)
throw() __attribute__((noreturn));
extern "C" void abort (v... |
google | chromium | utf-typespec | .C | native_client/nacl-gcc/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 | chromium | sync-2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/sync-2.C | 1,330 | utf_8 | 7d2ab13d9258d8fc570367eacc626bf6 | // Validate that the __sync builtins are overloaded properly in templates.
// { dg-do compile }
// { dg-options "-Werror" }
#define TEST1(BUILTIN) \
template<typename T> \
void f##BUILTIN(T *p) \
{ \
__typeof(BUILTIN(p, 1)) *pp; \
pp = p; \
}
TEST1(__sync_fetch_and_add)
TEST1(__sync_fetch_and_sub)
... |
google | chromium | interface4 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/interface4.C | 294 | utf_8 | 99a548af69d71a6aacd6a89ab7dcd013 | /* https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=227376 */
/* { dg-do compile } */
/* { dg-options "-g2" } */
/* We used to crash when emitting debug info for type N::A because its
context was a namespace, not a function. */
#include "interface4.h"
void f ( ) {
g ( );
}
|
google | chromium | label6 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/label6.C | 69 | utf_8 | ee824ccb1d507856d211f7e019df9eb0 | // PR c++/32108
__label__ L; // { dg-error "not at the beginning" }
|
google | chromium | packed10 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/packed10.C | 248 | utf_8 | 57293062af51d172446e19a8b1bd8167 | // PR c++/13983, c++/17519
// The typedef and the array were causing us to miss that A<int> is
// a packed type.
template <class T>
struct A {
A();
} __attribute__((packed));
typedef A<int> Ai;
struct B {
Ai a[2];
} __attribute__((packed));
|
google | chromium | cleanup-dtor | .C | native_client/nacl-gcc/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 | chromium | attribute-test-4 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attribute-test-4.C | 779 | utf_8 | 8e6e1312959fe9db5e04d5e0bfcacd37 | // { dg-do run }
#define vector __attribute__((vector_size(16)))
extern "C" void abort();
union U {
float f[4];
vector float v;
} data;
class Star
{
public:
static vector float foo();
Star()
{
data.f[0] = 1.0; data.f[1] = 2.0; data.f[2] = 3.0, data.f[3] = 4.0;
}
... |
google | chromium | cleanup-2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/cleanup-2.C | 342 | utf_8 | b225423f348683bb99a438ddffd8532e | /* { dg-do run } */
/* { dg-options "" } */
/* Verify that cleanup works in the most basic of ways. */
extern "C" void exit(int);
extern "C" void abort(void);
static void handler(void *p __attribute__((unused)))
{
exit (0);
}
static void doit(void)
{
int x __attribute__((cleanup (handler)));
}
int main()
{
d... |
google | chromium | gnu-inline-global | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/gnu-inline-global.C | 1,265 | utf_8 | 3e78535e0258846fa466a40475303131 | /* Test __attribute__((gnu_inline)).
Check that __attribute__((gnu_inline)) has no effect, in the
absence of extern and/or inline.
Check that we don't get out-of-line definitions for extern inline
gnu_inline functions, regardless of declarations or definitions.
Check that such functions can be overrid... |
google | chromium | cleanup-10 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/cleanup-10.C | 2,407 | utf_8 | e19e28a9f06a40685c797050b1c92de4 | /* { dg-do run { target hppa*-*-hpux* *-*-linux* powerpc*-*-darwin* *-*-darwin[912]* } } */
/* { dg-options "-fexceptions -fnon-call-exceptions -O2" } */
/* Verify that cleanups work with exception handling through signal frames
on alternate stack. */
#include <unwind.h>
#include <stdlib.h>
#include <signal.h>
#in... |
google | chromium | is_class_error1 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/is_class_error1.C | 118 | utf_8 | 00827fb723064c984bd82e533710599b | // PR c++/33212
template<int> void foo()
{
__is_class((int); // { dg-error "type-specifier|primary-expression" }
}
|
google | chromium | dllimport13 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/dllimport13.C | 407 | utf_8 | b74762bb31a06d65c9d372cc2b659eac | // PR c++/34749
// Ensure dllimport is handled correctly for friends
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw*} }
int __declspec (dllimport) bar();
int __declspec (dllimport) baz();
class Foo
{
// MS requires that the dllimport attribute be specified on each declaration
friend int __declspe... |
google | chromium | attrib23 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attrib23.C | 622 | utf_8 | 9bfb22dfd815b903874089bf6abde356 | // PR c++/28112
// { dg-do compile }
int i __attribute__((init_priority(;))); // { dg-error "before" }
int j __attribute__((vector_size(;))); // { dg-error "before" }
int k __attribute__((visibility(;))); // { dg-error "before" }
struct A {} __attribute__((aligned(;))); // { dg-error "... |
google | chromium | attribute-test-2 | .C | native_client/nacl-gcc/gcc/testsuite/g++.dg/ext/attribute-test-2.C | 1,362 | utf_8 | f0ce0b2e4fa6ff0bb09b0b27acf015dc | // { dg-do run }
// { dg-options "" }
// 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) {
ret... |
google | chromium | pr27019 | .C | native_client/nacl-gcc/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 | chromium | vla6 | .C | native_client/nacl-gcc/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>();
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.