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 | defaulted22 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted22.C | 254 | utf_8 | 761773e20736e514dc3f9f126c6b1284 | // Test that a virtual defaulted constructor is still virtual.
// { dg-do run { target c++11 } }
int r = 1;
struct A
{
virtual ~A() = default;
};
struct B: A
{
~B() noexcept { r = 0; }
};
A* ap = new B();
int main()
{
delete ap;
return r;
}
|
google | android | variadic23 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic23.C | 566 | utf_8 | 17b10bd620ae0751258483caf3dde0ae | // { dg-do compile { target c++11 } }
template<typename T, int... Dims>
struct array {
static const int value = 0;
};
template<>
struct array<int, 17> {
static const int value = 1;
};
template<int... Dims>
struct array<float, 1, Dims...> {
static const int value = 2;
};
template<typename T, int... Dims>
struc... |
google | android | fntmpdefarg1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/fntmpdefarg1.C | 109 | utf_8 | e719fc0782c02fa926744188563c8722 | // PR c++/37766
// { dg-do compile { target c++11 } }
int a = 1;
template<int& b = a> void f() {
f<>();
}
|
google | android | constexpr-delegating | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-delegating.C | 224 | utf_8 | b9f62d1adc6b6e0fe01886a17a69c102 | // PR c++/51526
// { dg-do compile { target c++11 } }
const int j = 42;
struct S {
int i;
constexpr S(int i) : i(i) {}
constexpr S() : S(j) {}
};
constexpr S s{};
#define SA(X) static_assert((X),#X)
SA(s.i == 42);
|
google | android | decltype34 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype34.C | 379 | utf_8 | bd08c6c7799c44db7137d5bdda4a4c33 | // PR c++/50870
// { dg-do compile { target c++11 } }
struct impl
{
template <class T> static T create();
};
template<class T, class U,
class = decltype(impl::create<T>()->impl::create<U>())>
struct tester{};
tester<impl*, int> ti;
template<class T, class U,
class = decltype(impl::create<T>()->impl::create<U>... |
google | android | defaulted48 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted48.C | 201 | utf_8 | c7e6cc6230f1d5b6c871906050eb4a8e | // PR c++/60108
// { dg-require-effective-target c++11 }
template<int> struct A
{
virtual ~A();
};
template<typename> struct B : A<0>, A<1>
{
~B() = default;
};
struct C : B<bool>
{
C() {}
};
|
google | android | variadic98 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic98.C | 21,072 | utf_8 | 961385cfacfb0d84fbeb98cc6fe5d5ca | // PR c++/42358
// { dg-do assemble { target c++11 } }
typedef __PTRDIFF_TYPE__ ptrdiff_t;
typedef __SIZE_TYPE__ size_t;
namespace std __attribute__ ((__visibility__ ("default"))) {
using ::size_t;
}
namespace std __attribute__ ((__visibility__ ("default"))) {
struct __sfinae_types {
typedef char __one;
ty... |
google | android | constexpr-ptrmem2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ptrmem2.C | 183 | utf_8 | 02a38a7d530d4818a0d8dbbb4225efd9 | // PR c++/61661
// { dg-do compile { target c++11 } }
struct Outer {
void Bar();
struct Foo {
void (Outer::*ptr)() ;
};
static constexpr Foo foo = { &Outer::Bar };
};
|
google | android | temp_default2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp_default2.C | 429 | utf_8 | 68a104498ee9ad3491b1b80604cfd50e | // { dg-do compile { target c++11 } }
template <class T, class U = double>
void f(T t = 0, U u = 0); // { dg-message "note" }
void g()
{
f(1, 'c'); // f<int,char>(1,'c')
f(1); // f<int,double>(1,0)
f(); // { dg-error "no matching function" }
// { dg-message "(candidate|deduce template parameter)" "candi... |
google | android | range-for11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for11.C | 730 | utf_8 | 5eec4a19463d582cbc114d93dbff246a | // Test for range-based for loop
// Test the loop with a custom iterator
// with begin/end as member functions
// { dg-do compile { target c++11 } }
struct iterator
{
int x;
explicit iterator(int v) :x(v) {}
iterator &operator ++() { ++x; return *this; }
int operator *() { return x; }
bool operato... |
google | android | initlist69 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist69.C | 819 | utf_8 | d0fee121db223a5055591a32f5294ffe | // PR c++/50261
// { dg-require-effective-target c++11 }
template <typename T>
struct ca {
T elem[1];
ca(const T (&s)[1]): elem{{s}} { } // { dg-error "braces" }
ca(const T (&s)[1],int): elem({{s}}) { } // { dg-error "paren|invalid" }
ca(const T (&s)[1],char): elem(s) { } // { dg-error "array" }
ca(co... |
google | android | initlist8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist8.C | 152 | utf_8 | 745c3a25cb48bd95f6daa8a7b67b1d9f | // PR c++/37740
// { dg-do compile { target c++11 } }
struct A
{
int i;
};
struct B
{
double d;
A i;
};
int main()
{
A a;
new B{3.2, a};
}
|
google | android | pr50491 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr50491.C | 264 | utf_8 | 755d99d9af0f79310b3bd8592d6e8e1e | // { dg-do compile { target c++11 } }
struct GrandParent {
void *get();
};
template<class OBJ>
struct Parent : public GrandParent{
};
template<typename T>
struct Child : public Parent<T> {
using GrandParent::get;
void Foo() {
void* ex = get();
}
};
|
google | android | gen-attrs-18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-18.C | 221 | utf_8 | 2047f919803fea7476bf82ee394e5bbe | // PR c++/17542
// Test that we warn when an attribute preceding the class-key is ignored.
// { dg-do compile { target c++11 } }
[[gnu::packed]] struct A // { dg-warning "attribute" }
{
char c;
int x;
void f();
};
|
google | android | rv-copy1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv-copy1.C | 208 | utf_8 | 889a7002f4d78b4abd44856da792f8dc | // PR c++/55017
// { dg-do compile { target c++11 } }
struct S { // { dg-error "rvalue ref" }
int&& rr;
S(int&& rr) : rr(static_cast<int&&>(rr)) {}
};
S s1(13);
S s2 = s1; // { dg-error "deleted" }
|
google | android | inh-ctor16 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/inh-ctor16.C | 182 | utf_8 | a7f67e0eab3d70e4f56823ba13a96ea4 | // PR c++/56285
// { dg-do compile { target c++11 } }
struct foo {
explicit foo(int&&) {}
};
struct bar: private foo {
using foo::foo;
};
int main()
{
bar b { 42 };
}
|
google | android | overload3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/overload3.C | 192 | utf_8 | 2f6751fd40a7a1a3b10c8f3dc4fbc55d | // PR c++/59823
// { dg-do compile { target c++11 } }
struct X { };
void f(X&&);
struct wrap
{
operator const X&() const;
};
int main()
{
wrap w;
f(w); // { dg-error "lvalue" }
}
|
google | android | decltype24 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype24.C | 154 | utf_8 | 56ffa39209db84ca2e62020843279adb | // PR c++/47068
// { dg-do compile { target c++11 } }
template <class T> struct broken {
int member;
typedef decltype(~ member) gcc_crashes_here;
};
|
google | android | sfinae28 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/sfinae28.C | 324 | utf_8 | d2289d1ff3f8204da0ff6408b96e179b | // PR c++/50324
// { dg-do compile { target c++11 } }
struct complete { };
struct incomplete;
template<class T> auto f(T *) -> decltype(T{}) *;
template<class T> char f(T);
int main()
{
complete *p = 0;
static_assert(sizeof(f(p)) == sizeof(void*), "");
incomplete *q = 0;
static_assert(sizeof(f(q)) == 1u, "")... |
google | android | nsdmi-defer6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-defer6.C | 158 | utf_8 | 97d9d170951fd1c5d28225ca2fcff54b | // { dg-do compile { target c++11 } }
struct A // { dg-error "non-static data member" }
{
int i = (A(), 42); // { dg-message "required here" }
};
A a;
|
google | android | local-targ1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/local-targ1.C | 723 | utf_8 | ceadcf043cb7e277e03b4160aab8102e | // PR c++/51884
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler "_ZN1BIZN3fooIivE3barILb1EEEvvE1CEC1ERKS4_" } }
template<typename TT>
struct test { static const int value = 0; };
template<int I>
struct enable_if { typedef void type; };
struct A { virtual void f() {} };
template<typename U> st... |
google | android | rv-cast | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv-cast.C | 92 | utf_8 | 82da21d14a2076c80f60b0fe3bae2177 | // { dg-do compile { target c++11 } }
void f(int i)
{
int&& r = static_cast<int&&>(i);
}
|
google | android | udlit-constexpr | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-constexpr.C | 150 | utf_8 | ed0ef4952555cafa9be322b45527bce5 | // { dg-do compile { target c++11 } }
constexpr unsigned long long
operator"" _grow(unsigned long long n)
{ return 2 * n; }
double buffer[25_grow];
|
google | android | sfinae32 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/sfinae32.C | 337 | utf_8 | 8ac4aa7709cb9382394f4fce56ed524a | // PR c++/51989
// { dg-do compile { target c++11 } }
template <typename T>
struct is_container
{
template <typename U, typename V = decltype(((U*)0)->begin())>
static char test(U* u);
template <typename U> static long test(...);
enum { value = sizeof test<T>(0) == 1 };
};
int main()
{
return is_container... |
google | android | forw_enum11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/forw_enum11.C | 441 | utf_8 | 2239f6a9c812e24f922b1e66f627e481 | // { dg-do compile { target c++11 } }
enum { A = 1 };
struct T
{
int i1, i2, i3, i4, i5, i6, i7;
enum E2 : int;
void f();
};
enum T::E2 : int { A1 = A, A2 = 23 };
static_assert(int(T::A1) == 1, "error");
static_assert(int(T::A2) == 23, "error");
void T::f()
{
static_assert(int(T::A1) == 1, "error");
stat... |
google | android | parse1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/parse1.C | 124 | utf_8 | 26d0ef7670ffa957c631afcafc36a903 | // PR c++/43509
// { dg-do compile { target c++11 } }
typedef int B; // { dg-message "" }
B::B() {} // { dg-error "" }
|
google | android | variadic96 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic96.C | 427 | utf_8 | c102f0d85fd6376a485fdc9c34b693bb | // Origin: PR c++/41785
// { dg-do compile { target c++11 } }
struct a {};
template < typename T, typename ENCLOSING >
struct base;
template < typename... T >
struct derived
: public base< T, derived< T... > >...
{};
template < typename... T>
struct base< a, derived< T... > >
{
typedef derived< T... >
Der... |
google | android | decltype9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype9.C | 202 | utf_8 | 4b13c00f57a3a7cb225369c29f8fd6f6 | // PR c++/34271
// { dg-do compile { target c++11 } }
template<int> struct A
{
static int i;
};
template<int N> int A<N>::i(decltype (A::i)); // { dg-error "member function|must be an expression" }
|
google | android | defaulted39 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted39.C | 199 | utf_8 | 57639fd293b3a46104c4fa3171c6ed79 | // DR 1402
// { dg-do compile { target c++11 } }
template <class T> T&& move(T& t);
struct A
{
A(const A&);
};
struct B
{
B(B&&);
};
struct C
{
A a;
B b;
};
extern C c1;
C c2(move(c1));
|
google | android | variadic-ex4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-ex4.C | 548 | utf_8 | e0e0d867102704ef6b86bc03731e05c1 | // { dg-do compile { target c++11 } }
template<class X, class Y, class Z> X f(Y,Z); // { dg-message "note" }
template<class... Args> void f2();
void g()
{
f<int,const char*,double>("aa",3.0);
f<int,const char*>("aa",3.0); // Z is deduced to be double
f<int>("aa",3.0); // Y is deduced to be char*, and
... |
google | android | constexpr-noexcept2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-noexcept2.C | 298 | utf_8 | 48555ea134a5bce8f9bbcab609ea86ff | // { dg-do compile { target c++11 } }
template<class T>
constexpr T value(T t) { return t; }
template<class T>
struct is_funny {
static constexpr bool value = false;
};
template<class T>
void eval() noexcept(value(is_funny<T>::value)) {}
constexpr bool ok = noexcept(eval<int>()); // line 12
|
google | android | constexpr-expinst | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-expinst.C | 280 | utf_8 | 19eb610e0af0918f7473197af97c60d4 | // { dg-do compile { target c++11 } }
// Error: Explicit instantiation of a function template shall not use the
// inline or constexpr specifiers
template<class T> constexpr inline T bar(T x) { return x; }
template constexpr inline float bar(float x); // { dg-error "specifier" }
|
google | android | decltype35 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype35.C | 335 | utf_8 | 95cd470ca6c72ab1ad4c4c00a9fd3dab | // PR c++/50870
// { dg-do compile { target c++11 } }
template <class V>
struct impl
{
template <class T> static T create();
};
template <class T, class U, class V, class
= decltype(impl<V>::template create<T>()
-> impl<V>::template create<U>())>
struct tester { };
tester<impl<float>*, i... |
google | android | constexpr-initlist5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-initlist5.C | 183 | utf_8 | 354e2f8086a449f7e43aa2c53f259902 | // PR c++/50024
// { dg-do compile { target c++11 } }
template< class T >
struct Container
{
Container(){
int* ptr = new int{};
}
};
int main() {
Container< int > c;
}
|
google | android | initlist56 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist56.C | 704 | utf_8 | ef6999b241e253a1b3dfd73e5d27940e | // PR c++/47453
// { dg-do compile { target c++11 } }
// invalid
int a({0}); // { dg-error "" }
// invalid
int const &b({0}); // { dg-error "" }
// invalid
struct A1 { int a[2]; A1(); };
A1::A1():a({1, 2}) { } // { dg-error "" }
struct A { explicit A(int, int); A(int, long); };
// invalid
A c({1, 2}); // { d... |
google | android | scoped_enum_98 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/scoped_enum_98.C | 164 | utf_8 | fd6131462c6e3edcb0e1d2d7c01ff384 | // { dg-do compile }
// { dg-options "-std=c++98" }
enum class E1 { e1 }; // { dg-warning "scoped enums" }
enum E2 : char { e2 }; // { dg-warning "scoped enums" }
|
google | android | enum28 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/enum28.C | 270 | utf_8 | 623a594b2fcf71561e5f8f847250edd2 | // PR c++/51912
// { dg-do compile { target c++11 } }
constexpr double g() { return 2.0; }
void f(int i)
{
switch (i)
{
case 1.0:; // { dg-error "could not convert" }
}
switch (i)
{
case g():; // { dg-error "could not convert" }
}
}
|
google | android | constexpr-99 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-99.C | 178 | utf_8 | 1bc1c995533b047ed8df6f6f24905cd1 | // Origin PR c++/51462
// { dg-do compile { target c++11 } }
struct A
{
int i = 0;
};
struct B
{
A a;
constexpr B() : a(0) {} // { dg-error "no matching function" }
};
|
google | android | inline-ns3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/inline-ns3.C | 214 | utf_8 | 9ac74ab89dc8edcde76b2e7628340a13 | // { dg-do compile { target c++11 } }
namespace C
{
void f();
}
namespace B
{
using namespace C;
inline namespace B1
{
void f();
}
}
namespace A
{
using namespace B;
}
int main()
{
A::f();
}
|
google | android | nsdmi6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi6.C | 216 | utf_8 | 0377526177a64efa5c57d6f2d595e620 | // Origin PR c++/51477
// { dg-do compile { target c++11 } }
struct A
{
typedef int int T; // { dg-error "two or more data types in declaration" }
struct T x[1] = { 0 }; // { dg-error "invalid|forward" }
};
|
google | android | rv-this | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv-this.C | 101 | utf_8 | 4cf744a9856d8f6620980a3a442fe6b3 | // PR c++/56701
// { dg-require-effective-target c++11 }
struct A
{
void f(){ A*&& a = this; }
};
|
google | android | enum24 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/enum24.C | 957 | utf_8 | 6e20f71280665d553eb0b07726a3453d | // PR c++/56749
// { dg-require-effective-target c++11 }
enum normal_enum
{
not_scoped1,
not_scoped2
};
enum class scoped_enum
{
scoped1,
scoped2
};
template <normal_enum N=not_scoped1>
class A
{
public:
template <typename T>
void fun ()
{
}
};
template <scoped_enum N=sco... |
google | android | decltype-1212 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype-1212.C | 243 | utf_8 | d20073ca1009509271524d321aea63b7 | // Core 1212
// { dg-do compile { target c++11 } }
template <class T, class U> struct assert_same_type;
template <class T> struct assert_same_type<T,T> {};
int main()
{
int i;
assert_same_type<int&&,decltype(static_cast<int&&>(i))>();
}
|
google | android | constexpr-value | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-value.C | 382 | utf_8 | b885b049e3f9cc2b8a54f221649dd08d | // { dg-do compile { target c++11 } }
struct HopefullyLiteral {
HopefullyLiteral() = default; // Should be a constexpr c'tor as of 12.1/6 and 8.4.2/4
};
constexpr HopefullyLiteral var1{}; // OK
constexpr HopefullyLiteral var2 = HopefullyLiteral{}; // #1
constexpr HopefullyLiteral var3 = HopefullyLiteral(); // #2
co... |
google | android | initlist10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist10.C | 997 | utf_8 | 56eb446b9a79a3e01433eed6090a0b6d | // PR c++/38380
// { dg-do compile { target c++11 } }
namespace std
{
struct atomic_bool
{
bool _M_i;
atomic_bool() = default;
~atomic_bool() = default;
atomic_bool(const atomic_bool&) = delete;
atomic_bool& operator=(const atomic_bool&) = delete;
explicit atomic_bool(bool __i) { _M_i = __... |
google | android | catch1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/catch1.C | 250 | utf_8 | c11fb9d024f89aea2e027172cee4bda2 | // PR c++/53371
// { dg-do compile { target c++11 } }
struct Abs
{
virtual void a() = 0;
};
void foo()
{
try {
} catch (Abs) { } // { dg-error "abstract class type" }
try {
} catch (int&&) { } // { dg-error "rvalue reference type" }
}
|
google | android | constexpr-delete | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-delete.C | 91 | utf_8 | 5b017b9ac3b68833449b967e43cba950 | // { dg-do compile { target c++11 } }
constexpr bool never() = delete; // useless, but OK
|
google | android | alias-decl-24 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-24.C | 311 | utf_8 | 66e0362e6fdca23202da3188f8e30ff8 | // Origin: PR c++/53540
// { dg-do compile { target c++11 } }
template <typename T>
struct context
{
typedef int type;
};
template <typename T>
void function()
{
using ctx1 = context<T>;
typename ctx1::type f1;
typedef context<T> ctx2;
typename ctx2::type f2;
}
int main()
{
function<int>();
}
|
google | android | constexpr-63241 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-63241.C | 172 | utf_8 | 7af50e5fd6105967ed29406e175316af | // PR c++/63241
// { dg-do compile { target c++11 } }
struct A {
constexpr A(int){}
};
int main() {
int i = 1;
A array[2][2] =
{{{0}, {i}},
{{0}, {0}}};
}
|
google | android | reinterpret_cast1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/reinterpret_cast1.C | 189 | utf_8 | c64ae67d31b051e49d0eb8f2c33f4819 | // PR c++/57869
// { dg-do compile { target c++11 } }
void* po = 0;
void (*pf)() = reinterpret_cast<decltype(pf)>(po);
static_assert(sizeof(po) >= sizeof(pf), "Conversion not supported");
|
google | android | alias-decl-11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-11.C | 168 | utf_8 | 88f20d33fbeb7f551c0948e8ade9c2df | // { dg-do compile { target c++11 } }
namespace N
{
template <class T> using U = T*;
}
void f(N::U<int>) { blah; } // { dg-error "void f(N::U<int>)|not declared" }
|
google | android | union4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/union4.C | 231 | utf_8 | 566ec8deaf0d4514e0f098efe055b913 | // PR c++/48537
// { dg-do compile { target c++11 } }
struct SFoo
{
SFoo() =delete; // { dg-message "declared" }
};
union UFoo // { dg-error "deleted" }
{
SFoo foo;
};
int main()
{
UFoo(); // { dg-error "deleted" }
}
|
google | android | auto19 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/auto19.C | 162 | utf_8 | 3f62281e4ace1fbe729122b650fd301f | // { dg-do compile { target c++11 } }
struct Explicit {
Explicit() = default; // Line 2
explicit Explicit(const Explicit&){}
} ex;
auto ex2(ex); // Line 6
|
google | android | pr52841 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr52841.C | 215 | utf_8 | d99b705d92b5a7195917ee59c6c04bc6 | // { dg-do compile }
struct Solvable;
namespace sat
{
class Solvable
{
public:
typedef bool bool_type;
};
}
class Resolvable : public sat::Solvable
{
public:
using sat::Solvable::bool_type;
};
|
google | android | enum21a | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/enum21a.C | 130 | utf_8 | 6c52dc0b8feff7c3403eed172bec2ebd | // { dg-do compile }
// { dg-options "-pedantic -std=c++98" }
enum x { y, }; // { dg-warning "comma at end of enumerator list" }
|
google | android | range-for26 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for26.C | 151 | utf_8 | 78610acc46556eefb8af9f998806f40c | // PR c++/58503
// { dg-require-effective-target c++11 }
template<int> void foo()
{
for (auto i : 0) {} // { dg-error "there are no arguments" }
}
|
google | android | alias-decl-19 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-19.C | 669 | utf_8 | 1b911a4120ed3620db20d9240dfd91ba | // PR c++/53567
// { dg-do compile { target c++11 } }
template <unsigned int, bool> struct IntegerType { typedef unsigned type; };
template <class EnumT>
using UnderlyingEnumType = typename IntegerType<sizeof(EnumT), (EnumT(-1) > EnumT(0))>::type;
template <class EnumT, class UnderlyingT = UnderlyingEnumType<EnumT>>... |
google | android | udlit-embed-quote | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-embed-quote.C | 487 | utf_8 | b12d8f1a221241fb17100ba981f84473 | // { dg-do run { target c++11 } }
// Make sure embedded quotes are not a problem for string and char literals.
#include <cstdint>
#include <cassert>
int operator"" _embedchar(char)
{ return 41; }
int operator"" _embedstr(const char*, std::size_t len)
{ return 42 + len; }
void
test()
{
int i = '\''_embedchar;
... |
google | android | static_assert8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/static_assert8.C | 274 | utf_8 | 8cae2b606ad47af14c0ca89c95671f51 | // { dg-do compile { target c++11 } }
static_assert (1 == 0); // { dg-error "expected (string-literal|',') before" }
static_assert (1 == 0,); // { dg-error "expected string-literal before '\\)'" }
static_assert (1 == 0, "oops"); // { dg-error "static assertion failed" }
|
google | android | constexpr-string | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-string.C | 157 | utf_8 | 8aa09292d141b644be1d02e05f3ecaaf | // { dg-do compile { target c++11 } }
constexpr char c1 = "hi"[1];
constexpr char c2 = "hi"[2];
constexpr char c3 = "hi"[3]; // { dg-error "out of bound" }
|
google | android | variadic72 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic72.C | 248 | utf_8 | 00da5cc622c7da92fca6cad428b91af7 | // { dg-do compile { target c++11 } }
struct A {};
struct B {};
struct C {};
template<typename... Mixins>
struct mixed_up : public Mixins...
{
};
void fA(A);
void fB(B);
void g()
{
mixed_up<A, B, C> m;
fA(m);
fB(m);
fC(m);
} |
google | android | deduce | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/deduce.C | 728 | utf_8 | 3b20b1750b2ca6ed0f61eed98be9416e | // { dg-do compile { target c++11 } }
template<typename T, typename U> struct same_type;
template<typename T> struct same_type<T, T> {};
int lval_int;
int rval_int();
int const lval_const_int=0;
int const&& rval_const_int();
template <typename T> void deduce_lval_int(T && t)
{
same_type<T, int &>();
}
template <ty... |
google | android | alias-decl-18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-18.C | 490 | utf_8 | b6ce67f1f7d551b377c87038485f4346 | // Origin: PR c++/51541
// { dg-do compile { target c++11 } }
template<typename Z> using ::T = void(int n); // { dg-error "" }
template<typename Z> using operator int = void(int n); // { dg-error "" }
template<typename Z> using typename U = void; // { dg-error "" }
template<typename Z> using typename ::V = void(int n)... |
google | android | variadic142 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic142.C | 206 | utf_8 | d5eb24623167120da95c6ae61f631659 | // Core 1609
// { dg-require-effective-target c++11 }
template<typename... T>
void f2(int a = 0, T... b, int c = 1);
int main(){
f2<>(); // parameter a has the value 0 and parameter c has the value 1
}
|
google | android | constexpr-pure | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-pure.C | 116 | utf_8 | c893e2388f9acef593b874b1e6b02071 | // { dg-do compile { target c++11 } }
struct A
{
virtual void f() = 0;
};
struct B: A
{
void f() { }
};
B b;
|
google | android | nsdmi-eh1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-eh1.C | 261 | utf_8 | 1c32502e9f3a2f60dac0e1bc5bedbf34 | // Core issue 1351
// { dg-do run { xfail *-*-* } }
// { dg-require-effective-target c++11 }
bool fail;
struct A
{
int i = fail ? throw "noooooooo" : 42;
};
int main()
{
A a1;
if (a1.i != 42) return 1;
fail = true;
try { A a2; }
catch (...) { }
}
|
google | android | nsdmi-union4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-union4.C | 137 | utf_8 | f306084dc287062131a42d269c3790f5 | // PR c++/59269
// { dg-require-effective-target c++11 }
union U
{
int& i = 0; // { dg-error "reference" }
};
void foo()
{
U();
}
|
google | android | variadic159 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic159.C | 253 | utf_8 | bf231bc932b6dcd397fde94abd58295c | // PR c++/61507
// { dg-do compile { target c++11 } }
struct A {
void foo(const int &);
void foo(float);
};
template <typename... Args>
void bar(void (A::*memfun)(Args...), Args... args);
void go(const int& i) {
bar<const int &>(&A::foo, i);
}
|
google | android | constexpr-55708 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-55708.C | 669 | utf_8 | 11393018085e26e2369482c620b5f870 | // PR c++/55708
// { dg-do compile { target c++11 } }
template<int N,int NNN>
struct AA { static constexpr int val = N; };
template<typename A,typename B>
//constexpr unsigned long long mymax(A a,B b){ // <-- compiles
constexpr unsigned long long mymax(A && a,const B& b){
return a<b?b:a;
}
template<char... List>
... |
google | android | initlist29 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist29.C | 179 | utf_8 | d52f65c0efc2ba0b9bcad9eaab6271d3 | // PR c++/42331
// { dg-do compile { target c++11 } }
class Mesh
{
public:
Mesh(const char*)
{ typele={0}; } // { dg-error "" }
private:
int typele[7][2];
};
Mesh m(0);
|
google | android | sfinae20 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/sfinae20.C | 413 | utf_8 | ad3d3d6081ba513e875605adc2e9a968 | // PR c++/48744
// { dg-do compile { target c++11 } }
template<class T>
struct add_rval_ref {
typedef T&& type;
};
template<>
struct add_rval_ref<void> {
typedef void type;
};
template<class T>
typename add_rval_ref<T>::type create();
template<class T, class Arg>
decltype(T{create<Arg>()}, char()) f(int);
temp... |
google | android | error5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/error5.C | 2,459 | utf_8 | 64ea5cb05e5207978b74d6f3c6293355 | // PR c++/49181
// { dg-do compile { target c++11 } }
namespace std
{
typedef __SIZE_TYPE__ size_t;
template<typename _Tp, _Tp>
struct integral_constant;
template<typename _Tp, _Tp __v>
struct integral_constant
{
static constexpr _Tp value = __v;
typedef _Tp value_type;
typedef in... |
google | android | constexpr-initlist4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-initlist4.C | 213 | utf_8 | 7c1370c4d6c885a372b2b5e19a8e3c26 | // { dg-do compile { target c++11 } }
struct A { int i; };
struct B: A { constexpr B(): A{} {} };
struct B2: A { constexpr B2(): A{1} {} };
struct C { protected: int i; };
struct D: C { constexpr D(): C{} {} };
|
google | android | range-for7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for7.C | 2,163 | utf_8 | cf6c66c2c1f26f78f53b3a006d996662 | // PR c++/46056
// Check that range-based for loop calls destructors
// when required
// { dg-do run { target c++11 } }
extern "C" void abort();
int value_counter = 0, it_counter = 0, seq_counter = 0;
struct Int
{
int x;
Int(int v)
:x(v)
{
++value_counter;
}
Int(const Int &o)
... |
google | android | variadic33 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic33.C | 285 | utf_8 | d3bf72936aea608b71bcc935e9677caa | // { dg-do compile { target c++11 } }
void print_all() {}
template<typename T, typename... Rest>
void print_all(const T& t, const Rest&... rest)
{
print_all(rest...);
}
void f()
{
print_all();
print_all(1);
print_all(1, 3.14159);
print_all("Hello, World!", 17, 3.14159);
}
|
google | android | constexpr-temp1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-temp1.C | 192 | utf_8 | 4b2c8215ad8bda62399e4c6ea49cb25b | // { dg-do compile { target c++11 } }
struct A { int i; };
constexpr A f2 (const A& a) { return a; }
constexpr int f1 (const A &a) { return f2(a).i; }
A g(const A &a)
{
return { f1(a) };
}
|
google | android | sfinae47 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/sfinae47.C | 409 | utf_8 | 0b14bcb0ad20e799b9c6fd3cfa9e0f13 | // Source: Comment 16 of PR51213
// { dg-do compile { target c++11 } }
template <class T>
T && declval();
template <class T>
constexpr auto hasSize(int) -> decltype(declval<T&>().size(), bool())
{ return true; }
template <class T>
constexpr bool hasSize(...)
{ return false; }
struct A
{
int size();
};
struct B :... |
google | android | variadic87 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic87.C | 409 | utf_8 | 3cce2ea2912fedac7b840de1b571b1c4 | // PR c++/33965
// { dg-do compile { target c++11 } }
template<typename T>
struct foo
{
static bool const value = false;
};
template<template<typename...> class T, typename... Args>
struct foo<T<Args...> >
{
static bool const value = true;
};
template<int I>
struct int_
{};
int main()
{
static_assert(foo<i... |
google | android | decltype32 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype32.C | 306 | utf_8 | a5461fc6dd11fbe5fd2efbec3af2ce95 | // PR c++/50075
// { dg-do compile { target c++11 } }
// { dg-options "-ftemplate-depth=10" }
template <typename T>
auto make_array(const T& il) ->
decltype(make_array(il)) // { dg-error "not declared|no matching|exceeds" }
{ }
int main()
{
int z = make_array(1); // { dg-error "no matching" }
}
|
google | android | rv1n | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv1n.C | 5,556 | utf_8 | 14e7575c6c6b64aa8b9a4052d4de0c18 | // I, Howard Hinnant, hereby place this code in the public domain.
// Test overload resolution among reference types
// { dg-do compile { target c++11 } }
template <bool> struct sa;
template <> struct sa<true> {};
struct one {char x[1];};
struct two {char x[2];};
struct three {char x[3];};
struct four {char x[... |
google | android | variadic89 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic89.C | 270 | utf_8 | d0421f6f76f8f9d022cb76e0bdb61476 | // { dg-do compile { target c++11 } }
// Contributed by Eric Niebler
template<typename T, typename U>
struct pair
{};
template<typename T>
struct test;
template<template<typename...> class T, typename... Args>
struct test<T<Args...> >
{};
test<pair<int, double> > t;
|
google | android | initlist73 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist73.C | 157 | utf_8 | 5cf8b2f84ab8fc8e89731cbd8b53f9ba | // PR c++/57682
// { dg-do compile { target c++11 } }
struct Class
{
Class (int func)
try
: f { func } { }
catch ( ... ) { }
private:
int f;
};
|
google | android | scoped_enum | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/scoped_enum.C | 1,521 | utf_8 | d2a48680a52815fe32ccc773a43bfb6d | // { dg-do compile { target c++11 } }
enum class Color1 {
Red,
Green,
Blue
};
enum struct Color2 {
Red, // { dg-message "previously declared here" }
Orange,
Yellow,
Green,
Blue,
Indigo = Green + 2,
Violet,
Red // { dg-error "redeclaration" }
};
enum Color {
Red, Green, Blue
};
enum class Col... |
google | android | constexpr-nullptr | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-nullptr.C | 172 | utf_8 | d4c1a5cc0803346fbc25f7a4d5748fd8 | // { dg-do compile { target c++11 } }
constexpr int zero() { return 0; }
void* ptr1 = zero(); // { dg-error "int" }
constexpr void* ptr2 = zero(); // { dg-error "int" }
|
google | android | bad_array_new2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/bad_array_new2.C | 302 | utf_8 | a8491f3e4ee92a8454ad6b7d6c1e4429 | // Test for throwing bad_array_new_length on invalid array length
// { dg-do run { target c++11 } }
#include <new>
void * f(int i)
{
return new int[i]{1,2,3,4};
}
int main()
{
f(4); // OK
try
{
f(3);
}
catch (std::bad_array_new_length) { return 0; }
__builtin_abort ();
}
|
google | android | gen-attrs-30 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-30.C | 206 | utf_8 | 9d9a674c8c3f641dbe8bf237e8c06c75 | // { dg-do compile { target c++11 } }
// PR c++/35074
template<typename T> struct A
{
void foo() const;
} [[gnu::aligned(4)]]; // { dg-warning "ignored" }
template<typename T> void A<T>::foo() const {}
|
google | android | initlist18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist18.C | 243 | utf_8 | 623523766fe125b2dc3781976daf5ac9 | // PR c++/40308, 40311
// { dg-do run { target c++11 } }
template< typename T >
struct test {
test() : data{} {}
T data;
};
int main()
{
test<int> x;
test<int*> y;
int * a = new int{};
int * b = new int{5};
return 0;
}
|
google | android | nullptr19 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr19.C | 505 | utf_8 | 1b661beb36e56446ca8bb6ce4039f504 | // { dg-do compile { target c++11 } }
// Test overload of pointer versus nullptr_t when applied on a literal 0/__null
typedef decltype(nullptr) nullptr_t;
char* k( char* ); /* { dg-message "note" } */
nullptr_t k( nullptr_t ); /* { dg-message "note" } */
void test_k()
{
k(0); /* { dg-error "is ambiguous" } */
... |
google | android | constexpr-98 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-98.C | 140 | utf_8 | de3d6255780c29f63df3f8d96932bd39 | // { dg-options "-std=c++98" }
constexpr int i = 42; // { dg-message "std=c\\+\\+11" }
// { dg-error "constexpr" "" { target *-*-* } 3 }
|
google | android | udlit-clink-neg | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-clink-neg.C | 147 | utf_8 | 78b30294a68e1286d77aecf27eb89dbe | // { dg-do compile { target c++11 } }
extern "C" {
int
operator"" _badclinkage(unsigned long long); // { dg-error "operator with C linkage" }
}
|
google | android | constexpr-48089 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-48089.C | 1,375 | utf_8 | eb391d797fd52a84309a7359e522ed3e | // PR c++/48089
// { dg-do compile { target c++11 } }
// bang is ill-formed (diagnostic required) because its initializer is
// non-constant, because it uses the value of an uninitialized object.
// s() is ill-formed (no diagnostic required) because there is no set of
// arguments that would produce a constant expres... |
google | android | variadic46 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic46.C | 183 | utf_8 | 3702efd4ff23ce8fa67e4e0b647c9e94 | // { dg-do compile { target c++11 } }
template<typename... Args>
int& f(Args&...);
template<typename... Args>
float& f(const Args&...);
int& g(int x, float y)
{
return f(x, y);
}
|
google | android | ref-qual4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/ref-qual4.C | 313 | utf_8 | 1bb06529f586a3e77263290dd006534e | // 12.1: A constructor shall not be declared with a ref-qualifier.
// 12.4: A destructor shall not be declared with a ref-qualifier.
// { dg-require-effective-target c++11 }
struct A {
A() & = default; // { dg-error "constructor" }
~A() & = default; // { dg-error "destructor" }
};
int main()
{
A a;
}
|
google | android | variadic-ex12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-ex12.C | 231 | utf_8 | 21472a0efaa3736f8d8d4b4a5a8a6241 | // { dg-do compile { target c++11 } }
template<typename... Types>
void f(Types... rest);
template<typename... Types>
void g(Types... rest) {
f(&rest...); // ``&rest...'' is a pack expansion, ``&rest'' is its pattern
}
|
google | android | constexpr-array-ptr5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr5.C | 667 | utf_8 | 76b49e548152de94f9aa28dfd665f8ea | // { dg-do compile { target c++11 } }
template<class T>
constexpr T do_last(T* x, int n) {
return x[n - 1]; //
}
template<class T, int N>
constexpr T last(T (&x)[N]) {
return do_last(x, N);
}
constexpr bool is_negative(int x) { return x < 0; }
template<class T>
struct IsNegative {
constexpr bool operator()(cons... |
google | android | decltype49 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype49.C | 251 | utf_8 | 05c31324b03072489fb3565ddf91700e | // PR c++/45282
// { dg-require-effective-target c++11 }
struct A { int i; };
int A::*ipm = &A::i;
template <class T, class U> class assert_same_type;
template <class T> class assert_same_type<T,T> { };
assert_same_type<decltype(A().*ipm),int> x2;
|
google | android | ref-qual1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/ref-qual1.C | 430 | utf_8 | d0d588806aef3922d92ee7fb7c632659 | // { dg-require-effective-target c++11 }
template <class,class> struct ST;
template <class T> struct ST<T,T> {};
struct A
{
int f() &;
char f() &&;
};
template <class T> struct B
{
int f() &;
char f() &&;
};
int main()
{
A a;
a.f();
A().f();
ST<decltype(a.f()), int>();
ST<decltype(A().f()), char>(... |
google | android | gen-attrs-31 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-31.C | 233 | utf_8 | d464ffbe0c0287db991fc6854490c130 | // PR c++/35097
// { dg-do compile { target c++11 } }
template<int> struct A;
template<> struct A<0>
{
typedef int X [[gnu::aligned(4)]];
};
template<typename T> void foo(const A<0>::X&, T);
void bar()
{
foo(A<0>::X(), 0);
}
|
google | android | alias-decl-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-1.C | 499 | utf_8 | 494bdfeaab84dab0e7afa29b43056b67 | // { dg-do compile { target c++11 } }
// These also represent tests for printing alias declarations and
// their instantiations.
template<class T, class U> struct A0 {};
template<class T, class U> using AA0 = A0<T, U>;
template<class T> struct AA0<int, T> {}; // { dg-error "specialization" }
template <class U> using... |
google | android | constexpr-ice9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ice9.C | 131 | utf_8 | a493c011ce3849fcada47c0a411641cf | // PR c++/58607
// { dg-do compile { target c++11 } }
struct A
{
constexpr A() { i; } // { dg-error "declared|empty body" }
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.