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 | underlying_type3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/underlying_type3.C | 1,147 | utf_8 | c3dc60fecd82cab7b2080a3b42016047 | // { dg-do compile { target c++11 } }
template<typename T1, typename T2>
struct is_same
{ static const bool value = false; };
template<typename T>
struct is_same<T, T>
{ static const bool value = true; };
enum E1 : unsigned { };
enum E2 : char { };
enum class E3 { };
enum class E4 : unsigned char { c = 1 };
... |
google | android | mv2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/mv2.C | 2,314 | utf_8 | 91704d1585e4b6dffc4ab7a347d3be5f | /* Test case to check if Multiversioning chooses the correct
dispatching order when versions are for various ISAs. */
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-ifunc "" } */
/* { dg-options "-O2" } */
#include <assert.h>
/* Default version. */
int foo () __attribute__ ((target ("default... |
google | android | stmtexpr16 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr16.C | 194 | utf_8 | 080f1c1312ba2fa63117d6a73efdabe4 | // PR c++/63455
// { dg-options "-std=gnu++11" }
int main()
{
int x = 0;
// without '+0', gcc 4.6 gives a different error (no ICE though)
decltype(({ int y = x; y; })+0) v1 = 0;
}
|
google | android | pr47213 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/pr47213.C | 209 | utf_8 | 188a8d2b9be2004a264afef6a0d937cb | // { dg-do compile }
// { dg-require-visibility "" }
// { dg-options "-fvisibility-ms-compat" }
#include <typeinfo>
template < typename T > void
bar ()
{
typeid (T);
}
void
foo ()
{
bar < int () > ();
}
|
google | android | attrib7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib7.C | 86 | utf_8 | 7af1e9265de26187b4a3a3880f99ac11 | // { dg-options "-Wunused-parameter" }
void f (int i __attribute__((__unused__))) {}
|
google | android | dllimport9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/dllimport9.C | 620 | utf_8 | 24e046aee349bd5ae33e22cd21cdfce5 | // Handle dllimport attribute for functions declared inline.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
// { dg-options { -W } }
inline __attribute__((dllimport)) void bar() { } // { dg-warning "inline" }
struct __attribute__ ((dllimport)) Blah
{
void in_blah () { } // Don't war... |
google | android | gnu-inline-template-func | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/gnu-inline-template-func.C | 562 | utf_8 | df8bb001c84f32307c935ddafd4b28e1 | /* { 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-not... |
google | android | attr-used-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attr-used-1.C | 429 | utf_8 | 5c2088defb983e68f4b6df2ee178d499 | // Attribute used on a member function or static data member
// of a template should cause them to be instantiated along
// with the class itself.
// { dg-final { scan-assembler "_ZN1AIiE1fEv" } }
// { dg-final { scan-assembler "_ZN1AIiE1tE" } }
template <class T> struct A
{
void f() __attribute ((used));
static ... |
google | android | dllimport5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/dllimport5.C | 698 | utf_8 | 58751097980640095ac4ec8e8278dbee | // { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
// Report error if static symbol definition has dllimport attribute.
__attribute__((dllimport))
int impvar; // OK, implicit "extern"
static __attribute__((dllimport))
int static_impvar; // { dg-error "external linkage" }
static __a... |
google | android | attrib15 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib15.C | 84 | utf_8 | 39e052366a96099f26b671796340eb37 | // PR c++/15317
struct A
{
A(char);
};
A::A(__attribute__((unused)) char i2)
{}
|
google | android | utf8-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/utf8-2.C | 1,013 | utf_8 | c1bb308a38a9b8c340a48b9783fb6cf5 | // { dg-do compile { target c++11 } }
// { dg-options "" }
const char s0[] = u8"ab";
const char16_t s1[] = u8"ab"; // { dg-error "from non-wide" }
const char32_t s2[] = u8"ab"; // { dg-error "from non-wide" }
const wchar_t s3[] = u8"ab"; // { dg-error "from non-wide" }
const char t0[0] = u8"ab"; // { ... |
google | android | altivec-6 | .C | toolchain/gcc/gcc-4.9/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 | android | complit14 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/complit14.C | 195 | utf_8 | 07cb245f4432f072b7263e83c675d2de | // PR c++/61614
// { dg-options "" }
int Fn (...);
void
Test ()
{
int j = Fn ((const int[]) { 0 }); // OK
unsigned long sz = sizeof Fn ((const int[]) { 0 }); // Error
}
|
google | android | case-range1 | .C | toolchain/gcc/gcc-4.9/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 | android | vla11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vla11.C | 178 | utf_8 | cbad9725e9e3f56b49dfadb14d4d71e3 | // Test that auto works with VLAs.
// { dg-do compile { target c++11 } }
// { dg-options "" { target { ! c++1y } } }
void bar(int n)
{
float loc2[n];
auto&& range = loc2;
}
|
google | android | vector15 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector15.C | 161 | utf_8 | 609de4a1bd102907e8c94926e720e269 | /* { dg-do compile } */
/* Check that we error out when using vector_size on the bool type. */
__attribute__((vector_size(16) )) bool a; /* { dg-error "" } */
|
google | android | vla13 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vla13.C | 98 | utf_8 | 29d6caf5110470674c8b7228eb8626f3 | // PR c++/54583
// { dg-options "-Wunused-value" }
void fred()
{
int n=10;
double (*x)[n];
}
|
google | android | vector2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vector2.C | 372 | utf_8 | a74f644ad1795f7b948fde6bec0f0e1e | // PR c++/23337; caused an ICE in component_ref_field_offset
// { dg-options "" }
// { dg-options "-mmmx" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
// { dg-prune-output "mangled name" }
typedef int vec __attribute__ ((vector_size (8)));
extern int bar (vec);
int
foo (int i)
{
vec a[] = { (vec) { 0, i }, (v... |
google | android | tmplattr4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/tmplattr4.C | 263 | utf_8 | 13a9bd280c5578a4d3a70a4e930438d1 | // PR c++/7586
// { dg-do run }
template<typename T>
int f()
{
typedef unsigned char type[sizeof (T)]
__attribute((aligned(__alignof(T))));
return __alignof (type);
}
int main()
{
if (f<int>() == __alignof (int))
return 0;
else
return 1;
}
|
google | android | anon-struct2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/anon-struct2.C | 1,026 | utf_8 | 0e1fc7f945fafc3c224a24b23c1c2a76 | /* { dg-options "" } */
/* In GNU C++ mode, we recognize the anonymous struct extension,
but not 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 {
struct D { char d; }; /* decl of C::D. */
... |
google | android | always_inline-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/always_inline-2.C | 373 | utf_8 | 44b18dc394b2fe02bfec7111c89c3315 | // { dg-options "-O0" }
// { dg-do compile }
// PR C++/34715
namespace X
{
template <class T>
const T& min123(const T& a, const T& b);
}
template <class T>
inline __attribute__ ((always_inline)) const T& X::min123(const T& a, const T& b)
{
return a < b ? a : b;
}
int main()
{
int a, b;
return X::min123(a, b);
... |
google | android | typeof10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/typeof10.C | 238 | utf_8 | 428a557c7b31bfbb8d1d1ff9a0f74017 | // PR c++/20552
template<int> struct A
{
void foo()
{
typedef int T; // { dg-message "previous" }
typedef __typeof__(*this) T; // { dg-error "conflicting" }
}
}; |
google | android | underlying_type8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/underlying_type8.C | 1,044 | utf_8 | e3920251c1881f799695cd65335b3cac | // { dg-do compile { target c++11 } }
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 T1, typename T2>
struct is_same
{ static cons... |
google | android | vla12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/vla12.C | 387 | utf_8 | e301c29c014339ad81955e68811b25cf | // VLA sizeof test
// { dg-do compile }
// { dg-options "" }
int
f1 (int i)
{
char a[sizeof (i) + 6 + i];
char b[sizeof (a) + 1];
return sizeof (b);
}
int
f2 (int i)
{
char a[sizeof (i) + 6 + i];
char b[sizeof (a)];
return sizeof (b);
}
int
f3 (int i)
{
char a[sizeof (i) + 6 + i];
char b[sizeof (i) + i]... |
google | android | utf16-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/utf16-1.C | 1,377 | utf_8 | 6686b865a1c599be2e092145038169cf | /* Test the support for char16_t character constants. */
/* { dg-do run { target c++11 } } */
/* { dg-options "-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 cha... |
google | android | weak3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/weak3.C | 305 | utf_8 | 1a7816a666c363e8410710411e40ce26 | // PR c++/20961
// Test for #pragma weak and __attribute__((weak)) being used together.
// { dg-do compile }
// { dg-require-weak "" }
// { dg-options "" }
// { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?_Z3foov" } }
int foo ();
#pragma weak foo
int
__attribute__((weak))
foo ()
{
return 0;
}
|
google | android | forscope2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/forscope2.C | 464 | utf_8 | fdf2778d6820c63532a48a3f3fcbd906 | // { dg-do compile }
// { dg-options "-fpermissive -std=c++98" }
// 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 l... |
google | android | dllexport1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/dllexport1.C | 683 | utf_8 | 5941af8a426305b84a6c76756f6dd8f7 | // Test that inline functions are exported with -fkeep-inline-functions.
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw*} }
// { dg-options -fkeep-inline-functions }
__attribute__((dllexport)) inline int foo (int a) { return a;}
class __attribute__((dllexport)) Bar
{
public:
Bar(){};
... |
google | android | dllimport13 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/dllimport13.C | 424 | utf_8 | efbae42fa05e476a0a19b9fd9847bdc5 | // PR c++/34749
// Ensure dllimport is handled correctly for friends
// { dg-do compile { target i?86-*-cygwin* i?86-*-mingw* x86_64-*-mingw* } }
int __declspec (dllimport) bar();
int __declspec (dllimport) baz();
class Foo
{
// MS requires that the dllimport attribute be specified on each declaration
frie... |
google | android | builtin3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/builtin3.C | 384 | utf_8 | 2c3efda13a896fee107d939ea59c8e75 | // Verify that declaring builtin in namespace std doesn't give us
// declaration in global namespace
// { dg-do compile }
// { dg-options "" }
namespace std {
extern "C" int printf(char*, ...); // { dg-message "std::printf" }
}
void foo() {
printf("abc"); // { dg-error "not declared" }
// { dg-message "suggest... |
google | android | utf32-4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/utf32-4.C | 745 | utf_8 | b9405f9e69ba93125655233ee721769d | /* Expected errors for char32_t character constants. */
/* { dg-do compile { target c++11 } } */
const static char32_t c0 = U''; /* { dg-error "empty character" } */
const static char32_t c1 = U'ab'; /* { dg-warning "constant too long" } */
const static char32_t c2 = U'\U00064321';
const static char32_t c3 = 'a';
con... |
google | android | attrib42 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attrib42.C | 211 | utf_8 | b4b156653c1283c46a83946c6b05b01d | // { dg-do compile { target { i?86-*-* && ilp32 } } }
struct A {
__attribute__((fastcall))
void f();
};
int main()
{
typedef void (A::*FP)();
FP fp[] = {&A::f}; // { dg-error "cannot convert" }
}
|
google | android | cleanup-6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/cleanup-6.C | 286 | utf_8 | d9e45b781a97ee5ac71b788011eae52c | /* { dg-do compile } */
/* { dg-options "-O" } */
/* Verify that a cleanup marked "inline" gets inlined. */
static inline void xyzzy(void *p __attribute__((unused)))
{
}
void doit(void)
{
int x __attribute__((cleanup (xyzzy)));
}
/* { dg-final { scan-assembler-not "xyzzy" } } */
|
google | android | attr-aligned01 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/attr-aligned01.C | 646 | utf_8 | a3dcae3117181f6c86c4ec4f9e0eeaa8 | // PR c++/48138
#define ALIGNED(x) __attribute__((aligned(x)))
#define SA(X) int ar[(X)?1:-1];
template<typename T>
void type_alignment(const T&) {
struct { char c; T t; } s;
SA((char*)&s.t - (char*)&s.c == 1);
}
template <class T> struct A { char c; T t; };
int main() {
typedef char unaligned[15];
typedef ... |
google | android | stmtexpr7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/stmtexpr7.C | 156 | utf_8 | 7e2b298f25a70913e3a563f97e4cf5b7 | // PR c++/24686
// { dg-options "" }
struct A
{
~A();
};
bool h(int, const A&);
int f();
int i;
void g()
{
i && (A(), ({ static int l = f(); l; }));
}
|
google | android | vlm2 | .C | toolchain/gcc/gcc-4.9/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 | android | tmplattr7 | .C | toolchain/gcc/gcc-4.9/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 | android | attrib40 | .C | toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/gcc/testsuite/g++.dg/ext/underlying_type1.C | 625 | utf_8 | b56af9a8974b21c26c4d8df3e75c33dd | // { 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|type" }
__underlying_... |
google | android | has_trivial_constructor | .C | toolchain/gcc/gcc-4.9/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.9/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.9/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 | restrict2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/ext/restrict2.C | 101 | utf_8 | fe03ec285c8ec98dfe8ce3f8fe391cf8 | // PR c++/60872
// { dg-options "" }
typedef double *__restrict T;
void f(T* p)
{
void *p2 = p;
}
|
google | android | complex7 | .C | toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/gcc/testsuite/g++.dg/ext/utf-typespec.C | 1,041 | utf_8 | 40fefd9ab85c5982e47c425ca05da983 | /* Ensure that type specifiers are not allowed for char16_t/char32_t. */
/* { dg-do compile { target c++11 } } */
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 "unsigned" } */
... |
google | android | is_base_of_incomplete | .C | toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/gcc/testsuite/g++.dg/ext/underlying_type7.C | 515 | utf_8 | e3709256966316466e563d0784165ece | // { dg-do compile { target c++11 } }
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_type(T)) // { dg... |
google | android | c99struct1 | .C | toolchain/gcc/gcc-4.9/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.9/gcc/testsuite/g++.dg/ext/has_nothrow_constructor-2.C | 182 | utf_8 | 03de00c47fa1299568fc9448844b0a4a | // PR c++/55842
// { dg-do compile { target 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.9/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.9/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.9/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.9/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.9/gcc/testsuite/g++.dg/ext/vla1.C | 516 | utf_8 | d03b9a9d68a2b0f690c9be93cf0abc56 | // { 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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/gcc/testsuite/g++.dg/ext/vla8.C | 227 | utf_8 | ce18ce908630287c7dc7c4377eadc1b0 | // PR c++/42387
// { dg-options "" }
template<class PF>
struct AvlTreeIter
{
int Num();
AvlTreeIter()
{
new (void* [Num()]); // { dg-warning "parentheses" }
}
};
AvlTreeIter<int> a; // { dg-message "from here" }
|
google | android | complit5 | .C | toolchain/gcc/gcc-4.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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.9/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 "" } */
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.