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 | variadic59 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic59.C | 199 | utf_8 | b4aa4a64bff68a7a0219fdae7977ff33 | // { dg-do compile { target c++11 } }
template<class T, typename... VarArgs>
void print(T t, VarArgs args); // { dg-error "packs not expanded" }
// { dg-message "VarArgs" "note" { target *-*-* } 3 }
|
google | android | pr54318 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr54318.C | 341 | utf_8 | c5f3717677f94f92f6a25afd1b3fafa2 | // PR c++/54318
// { dg-do compile { target c++11 } }
template <typename T>
struct wrapped
{
typedef T type;
};
template <typename T>
typename T::type unwrap1(T);
int unwrap(int);
template <typename T>
auto unwrap(T t) -> decltype(unwrap(unwrap1(t)))
{
return unwrap(unwrap1(t));
}
int main()
{
unwrap(wrapped... |
google | android | constexpr-neg1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-neg1.C | 1,907 | utf_8 | 6cca2627aa49cb5cc5523fb6313c85e6 | // Negative examples from N3092 (FCD)
// { dg-do compile { target c++11 } }
// OK: declaration
constexpr int square(int x); // { dg-message "never defined" }
// error: pixel is a type
constexpr struct pixel {
int x;
int y;
// OK: declaration
constexpr pixel(int);
}; // { dg-error "constexpr" }
constexpr pi... |
google | android | defaulted8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted8.C | 196 | utf_8 | cbe0ba147a1df371f25c8ab8623476ef | // PR c++/38649
// { dg-do compile { target c++11 } }
struct A
{
A(...) = default; // { dg-error "cannot be defaulted" }
A(const A&, ...) = default; // { dg-error "cannot be defaulted" }
};
|
google | android | gen-attrs-55 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-55.C | 232 | utf_8 | 521123bd63091227c1498c5303ed24e6 | // PR c++/58584
// { dg-do compile { target c++11 } }
struct A
{
int i alignas(this); // { dg-error "17:invalid use of 'this'" }
};
template<int> struct B
{
int j alignas(this); // { dg-error "17:invalid use of 'this'" }
};
|
google | android | access02 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/access02.C | 666 | utf_8 | 40b47ed7e2a4054550c2b4f2cace869b | // PR c++/58954
// { dg-require-effective-target c++11 }
template<class T>
T&& declval();
template<class T>
struct foo_argument
{
template<class Ret, class C, class Arg>
static Arg test(Ret (C::*)(Arg));
typedef decltype(test(&T::template foo<>)) type;
};
template<class T, class>
struct dependent { typedef T ... |
google | android | nullptr20 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr20.C | 385 | utf_8 | f1f210112cd22398f4597d7ad0a84584 | // { dg-do run { target c++11 } }
// Test passing to ellipisis
#include <cstdio>
#include <cstring>
int main()
{
char buf1[64];
char buf2[64];
char buf3[64];
std::sprintf(buf1, "%p", (void*)0);
std::sprintf(buf2, "%p", nullptr);
decltype(nullptr) mynull = 0;
std::sprintf(buf3, "%p", nullptr);
return... |
google | android | forw_enum8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/forw_enum8.C | 644 | utf_8 | 53fe8450845f3f0d585706d8b0865348 | // { dg-do compile { target c++11 } }
//This instatiation is ok
template<typename T> struct S1
{
enum E : int;
enum E : T;
};
template struct S1<int>; //ok
//This error is diagnosed at instantiation time
template<typename T> struct S2
{
enum E : int; // { dg-error "previous definition" }
enum E : T;... |
google | android | initlist76 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist76.C | 117 | utf_8 | 17dc666d60c45aa84904ad515bee0392 | // PR c++/58812
// { dg-require-effective-target c++11 }
int i;
int&& j{{ i }}; // { dg-error "too many braces" }
|
google | android | decltype22 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype22.C | 205 | utf_8 | 1e5ad82eb4b3df587d42d9c9bdaf4332 | // PR c++/42761
// { dg-do compile { target c++11 } }
template<typename _Tp> _Tp* fn();
template <class T> struct A
{
template <class U,
class S = decltype(fn<T>())>
struct B { };
};
A<int> a;
|
google | android | pr34061 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr34061.C | 143 | utf_8 | 315b74486e5182761dc39c0fbf60027a | // PR c++/34061
// { dg-do compile { target c++11 } }
template<template<int> class ...T> struct A : T<0> {}; // { dg-error "not expanded|T" }
|
google | android | auto16 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/auto16.C | 202 | utf_8 | f4db78e3cc49c260449419b9cc6acbbf | // PR c++/40619
// { dg-do compile { target c++11 } }
template<typename U> struct X {};
template<typename T> auto f(T t) -> X<decltype(t+1)> {}
template<typename T> auto g(T t) -> X<decltype(t+1)> {}
|
google | android | range-for28 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for28.C | 225 | utf_8 | 77b10126820c465389095b2acb5dab1b | // PR c++/59165
// { dg-require-effective-target c++11 }
namespace std {
int* begin(int i) { return (int*)0; }
int* end(int i) { return (int*)0; }
}
int main() {
for (int a : 10) { } // { dg-error "was not declared" }
}
|
google | android | enum6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/enum6.C | 236 | utf_8 | 67ec15297186c0dc5b419618c460a2f2 | // PR c++/37946
// { dg-do compile { target c++11 } }
enum class E : char
{
e1,
e2
};
inline E operator| (E a1, E a2)
{
char ret = static_cast<char> (a1)
| static_cast<char> (a2);
return static_cast<E>(ret);
}
|
google | android | noexcept04 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/noexcept04.C | 560 | utf_8 | 2a0c2baa8007810de477502a427981b6 | // Make sure that we call terminate when a noexcept spec is violated.
// The function pointers are there to make sure that
// the compiler doesn't get clever about optimizing the calls based on
// knowledge about the called functions.
// { dg-do run { target c++11 } }
#include <exception>
#include <cstdlib>
void my_... |
google | android | elision_neg | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/elision_neg.C | 816 | utf_8 | 3917ed0302b49a9c9df8e4f312e81da1 | // I, Howard Hinnant, hereby place this code in the public domain.
// Test: Implicit cast to rvalue when eliding copy
// { dg-do compile { target c++11 } }
template <bool> struct sa;
template <> struct sa<true> {};
struct one {char x[1];};
struct two {char x[2];};
class move_only
{
move_only(const move_onl... |
google | android | constexpr-ice3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ice3.C | 149 | utf_8 | 8338efcd83a2b6552bc4ad1d47c18171 | // PR c++/46289
// { dg-do compile { target c++11 } }
struct A
{
int i;
};
struct B
{
A a;
constexpr B(): a({1,2}) { } // { dg-error "" }
};
|
google | android | gen-attrs-1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-1.C | 130 | utf_8 | 5142fbd8e81f930faa6dbc67f841e158 | // { dg-do compile { target c++11 } }
int **** [[gnu::format(printf, 1, 2)]] foo(const char *, ...); // { dg-warning "ignored" }
|
google | android | constexpr-delegating2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-delegating2.C | 442 | utf_8 | 7931d487bd0cfaf955fae2246fa72de9 | // PR c++/51723
// { dg-do compile { target c++11 } }
template <int... V>
struct A
{
static constexpr int a[sizeof...(V)] = { V... };
};
template <int... V> constexpr int A<V...>::a[];
struct B
{
const int* const b;
template <unsigned int N>
constexpr B(const int(&b)[N])
: b(b)
{ }
template <int... V... |
google | android | rv5p | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv5p.C | 44,462 | utf_8 | c22897158fbf4b61febeae7dea548c9c | // I, Howard Hinnant, hereby place this code in the public domain.
// Test overload resolution among reference types
// { dg-do compile { target c++11 } }
// { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
template <bool> struct sa;
template <> struct sa<tr... |
google | android | variadic-nondeduce1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-nondeduce1.C | 188 | utf_8 | 9965da4f62ae847ce666120789b29c79 | // { dg-do compile { target c++11 } }
template <class... T>
void f(T..., int, T...) { }
int main()
{
f(0);
f<int>(0,0,0);
f<int,int>(0,0,0,0,0);
f(0,0,0); // { dg-error "" }
}
|
google | android | alias-decl-12 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-12.C | 124 | utf_8 | 69442b8b23646bef7d3b25b4432cf379 | // Origin: PR c++/51027
// { dg-do compile { target c++11 } }
using INT = int // { dg-error "expected|;|at end of input" }
|
google | android | constexpr-ice13 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ice13.C | 125 | utf_8 | e008ea9800190f5aa711844cfa51e22a | // PR c++/59571
// { dg-do compile { target c++11 } }
template <class>
struct foo
{
static constexpr int bar{(int)-1};
};
|
google | android | constexpr-55432 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-55432.C | 250 | utf_8 | f89607f18b0bf238690c5efba99e738c | // PR c++/55432
// { dg-do compile { target c++11 } }
struct tag_t{} tag{};
constexpr tag_t const& pass(tag_t & t)
{
return t;
}
struct S
{
constexpr S(tag_t) {};
};
struct T
{
S mem;
T( tag_t & args ) : mem(pass(args)) {}
};
T t(tag);
|
google | android | gen-attrs-21 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-21.C | 351 | utf_8 | 7b1009d067c8727dea390c9869d7a0cb | // PR c++/20763
// { dg-do compile { target c++11 } }
typedef void *voidp;
struct S
{
char a;
voidp b [[gnu::aligned (16)]];
};
struct T
{
char a;
void * b [[gnu::aligned (16)]];
};
static_assert (sizeof (S) == sizeof (T),
"struct S and T should have the same size");
static_assert (sizeof (S) == 32... |
google | android | constexpr-51369 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-51369.C | 125 | utf_8 | 69387d7c268c12f5a7c3abe522df05bf | // PR c++/51369
// { dg-do compile { target c++11 } }
constexpr int x[2][2] = {};
template<int>
void
foo ()
{
x[0][0];
}
|
google | android | auto7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/auto7.C | 333 | utf_8 | a2ff527dcef7e9b2af2703655b2eda60 | // PR c++/37965
// Negative test for auto
// { dg-do compile { target c++11 } }
auto i = 6;
auto j; // { dg-error "has no initializer" }
template<int> struct A
{
static auto k = 7; // { dg-error "non-const" }
static auto l; // { dg-error "has no initializer" }
auto m; // { dg-error "non-static data member de... |
google | android | variadic71 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic71.C | 374 | utf_8 | df1724948cff2ef496b805fb76373296 | // { dg-do compile { target c++11 } }
template<typename...> struct list {};
template<typename Sequence, typename Head>
struct push_front;
template<typename... Elements, typename Head>
struct push_front<list<Elements...>, Head> {
typedef list<Head, Elements> type; // { dg-error "parameter packs not expanded" }
};
/... |
google | android | constexpr-virtual2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-virtual2.C | 435 | utf_8 | 74b6dc368af3203141184d90425c0b43 | // PR c++/54341
// { dg-do compile { target c++11 } }
template<typename T>
struct enable_shared_from_this
{
constexpr enable_shared_from_this(); // { dg-warning "used but never defined" }
private:
int mem;
};
class VTableClass {
public:
virtual void someVirtualMethod() { }
};
class SomeClass : public enable... |
google | android | gen-attrs-45 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-45.C | 120 | utf_8 | 8849387bb929004a2ffb108ee6698e48 | // PR c++/52906
// { dg-do compile { target c++11 } }
[[gnu::deprecated]]; // { dg-error "does not declare anything" }
|
google | android | defaulted15 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted15.C | 776 | utf_8 | c4548cdcae10e7c07a50154babf56f56 | // PR c++/38796
// { dg-do compile { target c++11 } }
#define SA(X) static_assert ((X), #X)
struct A
{
A (int);
A (const A& = 1) = default; // { dg-error "default argument" }
void operator= (const A&) = default; // { dg-error "defaulted|match" }
};
struct B
{
private:
B() = default;
};
SA(__has_trivial_construc... |
google | android | pr31431-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr31431-2.C | 282 | utf_8 | 441b1e83372cddbc4b0e605cd847d74a | // { dg-do compile { target c++11 } }
template<typename, typename..., typename> void foo(); // { dg-message "note" }
void bar()
{
foo<int>(); // { dg-error "no matching function" }
// { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } 6 }
}
|
google | android | alias-decl-39 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-39.C | 219 | utf_8 | 902dd9054e7ff8f682ef7c8748818ae8 | // PR c++/58856
// { dg-require-effective-target c++11 }
template <typename T>
struct U1 {};
template <typename T1, typename... Ts>
using U2 = U1<T1>;
template <typename T1, typename... Ts>
using U3 = U2<T1, Ts...>;
|
google | android | initlist-pure | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist-pure.C | 310 | utf_8 | fd02e573e3be3d0a146192cd840840a1 | // PR c++/54325
// { dg-do compile { target c++11 } }
class Base {
public:
Base() {};
virtual ~Base() {};
virtual void do_stuff() = 0;
};
class Derived: public Base {
public:
Derived() : Base{} {};
virtual ~Derived() {};
virtual void do_stuff() {};
};
int
main() {
Derived d;
return 0;
}
|
google | android | constexpr-53094-2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C | 384 | utf_8 | 078bfee59deaffd353bfcff62998aa9f | // { dg-do compile { target c++11 } }
// Ignore warning on some powerpc-ibm-aix configurations.
// { dg-prune-output "non-standard ABI extension" }
// { dg-prune-output "changes the ABI" }
typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4;
constexpr V4 build (float x, float y, float z) { return __ext... |
google | android | union3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/union3.C | 718 | utf_8 | 39e0408b5a8eba9b12dddc3f82f30f6c | // Runtime test for C++11 unrestricted unions
// { dg-do run { target c++11 } }
int c, d;
struct A
{
int i;
A(): i(1) { ++c; }
A(const A&): i(2) { ++c; }
~A() { ++d; }
};
union B
{
A a;
B() { }
B(const B& b) { }
~B() { }
};
struct C
{
union { A a; };
C() { }
C(const C&) { }
~C() { }
};
union... |
google | android | std_fext-numeric-literals | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/std_fext-numeric-literals.C | 4,391 | utf_8 | 8ad594629424d36b76265642e775265b | // { dg-do compile { target c++11 } }
// { dg-options "-fext-numeric-literals" }
// Integer imaginary...
constexpr unsigned long long
operator"" i(unsigned long long n) // { dg-warning "shadowed by implementation" }
{ return 4 * n + 0; }
constexpr unsigned long long
operator"" I(unsigned long long n) // { dg-warnin... |
google | android | defaulted32 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted32.C | 356 | utf_8 | 5d23c972a60619362f5274653c25bb5a | // PR c++/50531
// { dg-do compile { target c++11 } }
template <typename T>
class DataFilter
{
public:
inline virtual ~DataFilter();
};
template<typename T>
inline DataFilter<T>::~DataFilter() = default;
class ARCalculator : public DataFilter<ARCalculator>
{
public:
virtual void dataStart(int, int);
};
void A... |
google | android | noexcept03 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/noexcept03.C | 907 | utf_8 | e8f93e01da9927cda13331fc519bc797 | // Runtime test for noexcept-specification.
// { dg-options "-Wnoexcept" }
// { dg-do run { target nonpic } }
// { dg-require-effective-target c++11 }
#include <exception>
#include <cstdlib>
void my_terminate ()
{
std::exit (0);
}
void my_unexpected ()
{
throw;
}
void g() { throw 1; }
void (*p)() = g;
void f ()... |
google | android | rv6p | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv6p.C | 25,196 | utf_8 | cc8a2a7204c0e96da76accbe0459f841 | // I, Howard Hinnant, hereby place this code in the public domain.
// Test overload resolution among reference types
// { dg-do compile { target c++11 } }
// { dg-skip-if "packed attribute missing for struct one/three/five/seven" { "epiphany-*-*" } { "*" } { "" } }
template <bool> struct sa;
template <> struct sa<tr... |
google | android | vt-34753 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/vt-34753.C | 255 | utf_8 | 179351138970737df12dd5215ac8996a | // { dg-do compile { target c++11 } }
template<typename... T> struct A
{
template<T> struct B {}; // { dg-error "not expanded|T" }
};
A<int>::B<0> b;
template<typename... T> struct B
{
template<T> B(); // { dg-error "not expanded|T" }
};
B<int> c;
|
google | android | range-for14 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for14.C | 1,463 | utf_8 | 3982df26cef9ee27d82b753ea7cc8d36 | // Test for other range-based for loops with
// begin/end member functions
// { dg-do compile { target c++11 } }
//These should not be used
template<typename T> int *begin(T &t)
{
T::fail;
}
template<typename T> int *end(T &t)
{
T::fail;
}
//Test for defaults
struct default1
{
int *begin(int x); // { dg... |
google | android | gen-attrs-24 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-24.C | 127 | utf_8 | 68aa7e13490a93ced5b6694c44411070 | // PR c++/28387
// { dg-do compile { target c++11 } }
enum [[gnu::unused]] E; // { dg-error "without previous declaration" }
|
google | android | decltype4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype4.C | 1,947 | utf_8 | d19f09ec1e20cf899925e0ef73d57180 | // { dg-do compile { target c++11 } }
template<typename T, typename U>
struct is_same
{
static const bool value = false;
};
template<typename T>
struct is_same<T, T>
{
static const bool value = true;
};
#define CHECK_DECLTYPE(DECLTYPE,RESULT) \
static_assert(is_same< DECLTYPE , RESULT >::value, #DECLTYPE " s... |
google | android | temp_default3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp_default3.C | 213 | utf_8 | 95e548cc9dd00733a2cce9a2b36b4fe4 | // { dg-do compile { target c++11 } }
template<typename T, typename U = typename T::value_type>
void f(T);
void f(...);
struct X {
typedef int value_type;
};
void g()
{
f(X()); // okay
f(17); // okay?
}
|
google | android | error4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/error4.C | 419 | utf_8 | 03e85bfe79a36b0943412c8d86cc8b0a | // PR c++/49156
// { dg-do compile { target c++11 } }
template<typename T> T declval();
template<typename T>
struct S {
template<typename U>
static U get(const volatile T&);
template<typename U>
static decltype(*declval<U>()) get(...); // { dg-error "operator*" }
typedef decltype(get<T>(declval<T>())... |
google | android | gen-attrs-50 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-50.C | 750 | utf_8 | b4c26a59720e37c5813eadee19741bf0 | // { dg-do compile { target c++11 } }
typedef char layout_type;
template<class> struct A {
layout_type member alignas (double) alignas (int);
};
// Here, the spec says that A<int> should have the stricter alignment,
// so that would be the alignment of 'double', not 'int'.
static_assert (alignof (A<int>) == aligno... |
google | android | nsdmi-union5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-union5.C | 147 | utf_8 | b794058c040b66e8cda2a42b63b36a5b | // PR c++/58701
// { dg-require-effective-target c++11 }
// { dg-final { scan-assembler "7" } }
static union
{
union
{
int i = 7;
};
};
|
google | android | vt-34754 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/vt-34754.C | 189 | utf_8 | 253e3ba0e16d87a595fd943b27f51998 | // { dg-do compile { target c++11 } }
template<template<int> class... T> struct A
{
void foo(T<0>); // { dg-error "not expanded|T" }
void bar(T<0>); // { dg-error "not expanded|T" }
};
|
google | android | initlist43 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist43.C | 184 | utf_8 | 5fa788f00829abb2e6cfc1ad8bd9750b | // Test that using T{} at file scope doesn't create a static temporary.
// { dg-do compile { target c++11 } }
// { dg-final { scan-assembler-not "local" } }
struct A { };
A a = A{};
|
google | android | constexpr-ice14 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ice14.C | 201 | utf_8 | 110e9b1c0a4293275ee1db249d4bf74c | // PR c++/60305
// { dg-do compile { target c++11 } }
template<int I> int foo() { return I; }
template<int... I> void bar()
{
constexpr int (*X[])() = { foo<I>... };
}
template void bar<1,3,5>();
|
google | android | variadic-ex2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-ex2.C | 270 | utf_8 | 5f02e829ee34cc74ecb7394b34f00d1e | // { dg-do compile { target c++11 } }
template<class... Types> struct B { // { dg-error "declaration of" }
void f3();
void f4();
};
template<class... Types> void B<Types...>::f3() { } // OK
template<class... Types> void B<Types>::f4() { } // { dg-error "invalid" }
|
google | android | constexpr-46420 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-46420.C | 246 | utf_8 | d079e67f3b2be485ac7aed93b70984d2 | // PR c++/46420
// { dg-do compile { target c++11 } }
template<typename> class vector { };
struct A{};
template <class T1>
void complete_test(vector<T1> data1){
A drop=A();
}
int main(){
vector<double> vect1;
complete_test(vect1);
}
|
google | android | nsdmi-local | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-local.C | 197 | utf_8 | bb52d0707dea46cd2224e8f36c397c29 | // PR c++/55240
// { dg-do compile { target c++11 } }
int main()
{
int q = 1; // { dg-message "declared here" }
struct test { int x = q; } instance; // { dg-error "local variable" }
}
|
google | android | temp_default5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp_default5.C | 185 | utf_8 | 266c3dbde2e16a0e728fe8ba86f06698 | // { dg-do compile { target c++11 } }
template <class Z = void, class T>
void Foo(T)
{
struct X {};
}
template <class T = int, typename U>
void f(const U&)
{
auto g = [] () {};
}
|
google | android | udlit-nospace-neg | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-nospace-neg.C | 109 | utf_8 | 2ea771abd36fe1e9cd24889a0a651f4b | // { dg-do compile { target c++11 } }
float operator ""_abc(const char*);
int operator""_def(long double);
|
google | android | variadic43 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic43.C | 146 | utf_8 | e4ba44dfda80bab447405f49a08ef8a3 | // { dg-do compile { target c++11 } }
template<typename... Args>
int f(const Args&...);
void g()
{
int (*fp)(const int&, const float&) = &f;
}
|
google | android | variadic84 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic84.C | 894 | utf_8 | b632511fc13a35c280ea0a2e68b24b98 | // PR c++/32565
// { dg-do compile { target c++11 } }
template<typename...> struct A1;
template<template<int...> class T> struct A1<T<0> > {};
template<typename...> struct A2;
template<template<int...> class T> struct A2<T<0, 1> > {};
template<typename...> struct A3;
template<template<int, int...> class T> struct A3<T... |
google | android | ref-qual13 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/ref-qual13.C | 595 | utf_8 | 759a26dd15a061d3f5a982b5eb65098b | // PR c++/57388
// { dg-require-effective-target c++11 }
template<class> struct A
{
static constexpr bool value = false;
};
template<class Res, class... Args>
struct A<Res(Args...)>
{
static constexpr bool value = true;
};
template<class Res, class... Args>
struct A<Res(Args...) const &>
{
static constexpr boo... |
google | android | static_assert3 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/static_assert3.C | 284 | utf_8 | 940b05cdf7ecd38a50ba360280267bf8 | // { dg-do compile { target c++11 } }
static_assert(7 / 0, "X"); // { dg-error "non-constant condition" "non-constant" }
// { dg-warning "division by zero" "zero" { target *-*-* } 2 }
// { dg-error "division by zero is not a constant-expression" "not a constant" { target *-*-* } 2 }
|
google | android | alias-decl-27 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-27.C | 183 | utf_8 | e1f94c5d5ce902b721adf6ef6c7d0589 | // Origin: PR c++/54875
// { dg-do compile { target c++11 } }
template<typename T>
using AddConst = T const;
enum FwdEnum : int;
int main() {
AddConst<FwdEnum> *ptr = nullptr;
}
|
google | android | decltype36 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype36.C | 245 | utf_8 | 8a11d3d983e7acb1fa3f5c9f3970324d | // PR c++/51265
// { dg-do compile { target c++11 } }
struct Funny
{
int print(int);
};
template<typename X>
void c();
template<typename X, X ff>
void xx()
{
c<decltype(ff)>();
}
int main()
{
xx<int(Funny::*)(int), &Funny::print>();
}
|
google | android | udlit-nonempty-str-neg | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-nonempty-str-neg.C | 220 | utf_8 | b520ee398b84acd7a5bb1e971c30f63c | // { dg-do compile { target c++11 } }
// Test user-defined literals.
// Test error on non-empty string after 'operator' keyword.
double operator"hi" _badword(long double); // { dg-error "expected empty string after" }
|
google | android | variadic135 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic135.C | 151 | utf_8 | 344861e3b8ef5a5a44b0c60cb1f6ea14 | // { dg-do compile { target c++11 } }
template <typename ...> struct S;
int i = S<int,>::undefined; // { dg-error "template argument 2 is invalid" }
|
google | android | vt-34103 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/vt-34103.C | 252 | utf_8 | f75efa8325d3c21aa2e509046e84cd73 | // { dg-do compile { target c++11 } }
// PR c++/34103
template<typename> struct A {};
template<typename...T> void foo(A<T>, A<T>); // { dg-error "parameter packs|T" }
template<typename...T> void foo(A<T>, A<T>) {} // { dg-error "parameter packs|T" }
|
google | android | constexpr-defarg2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-defarg2.C | 333 | utf_8 | 5c903382221907648240624e2d83cc2f | // PR c++/46368
// { dg-do compile { target c++11 } }
class A;
class B
{
A foo ();
A bar ();
};
class C
{
};
struct D
{
};
struct A : D
{
A (const C & n) : D (n) {}
};
A baz (const char *, A = C ());
A
B::foo ()
{
try
{
baz ("foo");
}
catch (...)
{
}
}
A
B::bar ()
{
baz ("bar");
} |
google | android | rv-deduce2 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/rv-deduce2.C | 249 | utf_8 | f213598004dcfd0117fecc9593637790 | // PR c++/48313
// { dg-do compile { target c++11 } }
template<typename F>
void f(F&&) { }
void g() { }
template<typename T> void h() { }
int main()
{
f( g ); // OK
void (&p)() = h<int>;
f( p ); // OK
f( h<int> ); // ???
}
|
google | android | dyncast1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/dyncast1.C | 1,117 | utf_8 | d4426133b81413ad1d3051caa8d7c24a | // PR c++/57599
// { dg-do compile { target c++11 } }
struct A { };
struct B : public A { };
template<class, class>
struct is_same { static constexpr bool value = false; };
template<class T>
struct is_same<T, T> { static constexpr bool value = true; };
template<class T>
T val();
static_assert(is_same<decltype(dyna... |
google | android | nsdmi-virtual1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nsdmi-virtual1.C | 290 | utf_8 | 54a77ab9cbeaf8802273eefd6e7a3c55 | // PR c++/51611
// { dg-do run { target c++11 } }
struct A
{
A(): i(42) { }
int i;
int f() { return i; }
};
struct B : virtual A
{
int j = i + f();
int k = A::i + A::f();
};
struct C: B { int pad; };
int main()
{
C c;
if (c.j != 84 || c.k != 84)
__builtin_abort();
}
|
google | android | pr31434 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr31434.C | 330 | utf_8 | fe18d388f586e2da516cc721ad6f1979 | // { dg-do compile { target c++11 } }
template<typename... T> int foo(const T&) // { dg-error "not expanded with|T" }
{
union { T t; }; // { dg-error "not expanded with|T" }
return t;
}
void bar()
{
foo(0); // { dg-error "no matching" }
// { dg-message "(candidate|cannot convert)" "candidate note" { target *-*-*... |
google | android | nullptr10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/nullptr10.C | 396 | utf_8 | 12d51ea94930b3f4bda324025061e028 | // { dg-do compile { target c++11 } }
// Test arithmetic operations
void fun()
{
nullptr = 0; // { dg-error "lvalue required as left operand" }
nullptr + 2; // { dg-error "invalid operands of types " }
decltype(nullptr) mynull = 0;
mynull = 1; // { dg-error "cannot convert" }
mynull... |
google | android | noexcept18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/noexcept18.C | 142 | utf_8 | 720a77ff1704acced122db257cb746bd | // PR c++/54207
// { dg-do compile { target c++11 } }
typedef bool B;
constexpr B foo () { return true; }
void
bar () noexcept (foo ())
{
}
|
google | android | decltype-33838 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype-33838.C | 161 | utf_8 | f00b922129e053cd1f5ed688a35ee5f3 | // { dg-do compile { target c++11 } }
// PR c++/33838
template<typename T> struct A
{
__decltype (T* foo()); // { dg-error "expected|no arguments|accept" }
};
|
google | android | variadic116 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic116.C | 500 | utf_8 | 630d070698ca622a456acbda4935d02a | // Origin: PR c++/48320
// { dg-do compile { target c++11 } }
template<class... T>
struct tuple
{
typedef int type;
};
template<int... Indices>
struct indices
{
};
template<unsigned i, class Tuple>
struct tuple_element
{
typedef Tuple type;
};
template<class Tuple,
int... Indices,
class Re... |
google | android | auto18 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/auto18.C | 94 | utf_8 | fd8b4313cac23b2447fb99a794640ade | // { dg-do compile { target c++11 } }
void f()
{
auto val = val; // { dg-error "auto" }
}
|
google | android | variadic-ex8 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-ex8.C | 828 | utf_8 | b1ad3f6315dc1b540521f3bee80d1358 | // { dg-do compile { target c++11 } }
template<class> struct X { static const bool primary = true; };
template<class R, class... ArgTypes> struct X<R(int, ArgTypes...)> {
static const bool primary = false;
};
template<class... Types> struct Y { static const bool primary = true; };
template<class T, class... Types> s... |
google | android | variadic111 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic111.C | 347 | utf_8 | d04407d8de2d86d3cd126d23c323da2f | // PR c++/48424
// { dg-do compile { target c++11 } }
// { dg-options "-fabi-version=0" }
template<typename... Args1>
struct S
{
template<typename... Args2>
void f(Args1... args1, Args2&&... args2)
{
}
};
int main()
{
S<int, double> s;
s.f(1,2.0,false,'a');
}
// { dg-final { scan-assembler "_ZN1SIJ... |
google | android | gen-attrs-41 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-41.C | 417 | utf_8 | 77126c882ae6b13b5eaf6bdda66c4f26 | // PR c++/45267
// { dg-do compile { target c++11 } }
// { dg-options "-O" }
template<typename T> struct Vector {
Vector(long long x);
inline Vector<T> operator<< [[gnu::always_inline]] (int x) const;
};
long long bar (long long);
template<> inline Vector<int> Vector<int>::operator<<(int x) const {
return bar(x)... |
google | android | ref-qual9 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/ref-qual9.C | 178 | utf_8 | ed1433ae38ea49612a71ea6123c29d74 | // PR c++/57064
// { dg-require-effective-target c++11 }
template <class T> T&& move(T& t);
struct A {
void p() &;
int p() &&;
};
void g(A &&a)
{
int i = move(a).p();
}
|
google | android | pr58563 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr58563.C | 142 | utf_8 | 99345be72ff580dd3de1858994530c51 | // PR c++/58563
// { dg-do compile { target c++11 } }
template<int> void foo()
{
enum E {};
E().E::~T(); // { dg-error "not a class" }
}
|
google | android | noexcept11 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/noexcept11.C | 798 | utf_8 | f3a3c7fcffaa25563f84559c4cd9da4d | // PR c++/49107
// { dg-do compile { target c++11 } }
template<typename _Tp>
_Tp declval() noexcept;
template<typename _Tp , typename = decltype(_Tp(declval<_Tp&&>()))>
struct trait
{
static const bool value=true;
};
template<class _T2>
struct pair
{
_T2 second;
void swap(pair& __p)
noexcept(trait<_T2>::va... |
google | android | decltype-call1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype-call1.C | 689 | utf_8 | bdf3e0910d2051251708743eb6af558f | // PR c++/52748
// N3276
// { dg-do compile { target c++11 } }
struct A; // { dg-error "forward declaration" }
A f();
decltype(f()) g1(); // OK
decltype(((f()))) g2b(); // OK
decltype(42,f()) g3(); // OK
decltype(42,45,f()) g3b(); // OK
decltype(42,45,(f())) g3c(); // OK
decltype(42,((45,(f())))) g3c(); // O... |
google | android | variadic-ex5 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/variadic-ex5.C | 187 | utf_8 | f0cd9e26d9122c21922a970408586984 | // { dg-do compile { target c++11 } }
template<typename... Types> void f(Types... values);
void g()
{
f<int*, float*>(0, 0, 0); // Types is deduced to the sequence int*, float*, int
}
|
google | android | static_assert4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/static_assert4.C | 358 | utf_8 | 09c6459c722f7fda152e22ef59d4e30c | // { dg-do compile { target c++11 } }
// { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0 " }
// PR C++/30033
// Make sure that the static assert does not crash the GC.
template <class T>
struct default_delete
{
void
operator() (T * ptr) const
{
static_assert (sizeof (T) > 0, "Can't delete p... |
google | android | udlit-string-literal | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/udlit-string-literal.C | 336 | utf_8 | 467c7c4942281e55a4899183412276d8 | // { dg-do compile { target c++11 } }
// { dg-require-effective-target stdint_types }
// PR c++/55582
#include "udlit-string-literal.h"
using namespace my_string_literals;
decltype("Hello, World!"s) s;
decltype(u8"Hello, World!"s) s8;
decltype(L"Hello, World!"s) ws;
decltype(u"Hello, World!"s) s16;
decltype(U"Hello,... |
google | android | defaulted17 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted17.C | 172 | utf_8 | 117fed6575bb7c2c848426cd4cdad0fc | // { dg-do compile { target c++11 } }
struct A // { dg-error "const|operator=" }
{
const int i;
};
int main()
{
A a = { 0 };
a = a; // { dg-error "deleted" }
}
|
google | android | temp-constructor-bug | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/temp-constructor-bug.C | 145 | utf_8 | 20984e5b7381310a8855ddc725729c4a | // { dg-do compile { target c++11 } }
// { dg-options "" }
struct S { };
struct T
{
S s;
};
void f(T const &);
void g()
{
f((T){S()});
}
|
google | android | gen-attrs-20 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/gen-attrs-20.C | 618 | utf_8 | e197ae9afbdec5767245d3c86bca0231 | // { dg-do compile { target c++11 } }
// { 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 [[gnu::aligned(8)]]; // { dg-bogus "attribute" "attribute" }
t... |
google | android | sfinae16 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/sfinae16.C | 240 | utf_8 | e42416c037e170d224a51afb4edb5ba9 | // PR c++/48531
// { dg-do compile { target c++11 } }
template<class T,
class = decltype(T())
>
char f(int);
template<class>
double f(...);
struct B2 {
B2(...);
};
#define SA(X) static_assert ((X), #X)
SA(sizeof(f<B2[2]>(0)) != 1);
|
google | android | defaulted20 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted20.C | 319 | utf_8 | dce2be83b3ce1a90289a08f94d9393ac | // PR c++/46497
// { dg-do compile { target c++11 } }
struct A {
A(A&&) = default;
};
struct B {
const A a;
B(const B&) = default;
B(B&&) = default; // { dg-error "implicitly deleted|use of deleted" }
};
void g(B); // { dg-error "argument 1" }
B&& f();
int main()
{
g(f()); // { dg-error "deleted" }
}
|
google | android | initlist54 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist54.C | 148 | utf_8 | 3385dd64d1f5429e3ecd215344d5f025 | // PR c++/49355
// { dg-do compile { target c++11 } }
#include <string>
struct T {
std::string foobar;
};
int main()
{
T* x = new T({""});
}
|
google | android | inline-ns4 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/inline-ns4.C | 102 | utf_8 | b0c5ed66fb6bc8597e3d516e4ce3f396 | // { dg-options "-std=gnu++98 -pedantic" }
inline namespace { } // { dg-warning "inline namespaces" }
|
google | android | initlist49 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist49.C | 325 | utf_8 | fa1b568c2a6b67c0aef8139179850064 | // Test for non-trivial list-initialization with array new.
// { dg-do run { target c++11 } }
struct A
{
enum E { c_string, number } e;
A(const char *): e(c_string) {}
A(int): e(number) {}
};
int main()
{
A* ap = new A[2]{1, ""};
if (ap[0].e != A::number || ap[1].e != A::c_string)
return 1;
delete[] a... |
google | android | defaulted30 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/defaulted30.C | 262 | utf_8 | 6f72f3c29155129b0595309c15f5bc64 | // PR c++/49507
// { dg-do compile { target c++11 } }
template<typename T>
struct ConcretePoolKey
{
virtual ~ConcretePoolKey();
};
template<typename T>
ConcretePoolKey<T>::~ConcretePoolKey() = default;
int main()
{
ConcretePoolKey<int> foo;
}
|
google | android | alias-decl-10 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/alias-decl-10.C | 1,150 | utf_8 | b2dede644377fa2e0378d6263c6b4d8b | // { dg-do compile { target c++11 } }
template <class T> using Ptr = T*;
Ptr<unsigned>; // { dg-error "does not declare anything" }
Ptr<char><int>; // { dg-error "not a template|does not declare anything" }
template class Ptr<int>;//{ dg-error "alias template specialization\[^\n\r\]*after\[^\n\r\]*class" }
template <... |
google | android | constexpr-empty6 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-empty6.C | 215 | utf_8 | 5aec75a6c175a9667bce730fa0a5edb8 | // PR c++/55993
// { dg-do compile { target c++11 } }
struct A {};
struct B:A {};
struct C:A {};
struct D:B,C {};
constexpr D d {};
constexpr const C& e=d; // OK
constexpr auto f=static_cast<const C&>(d); // FAIL
|
google | android | initlist65 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist65.C | 103 | utf_8 | 2096f39c5a1b5c37ad3cbb9261cde051 | // Core 1270
// { dg-do compile { target c++11 } }
struct A
{
int i[2];
};
A f() { return {1,2}; }
|
google | android | decltype7 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/decltype7.C | 267 | utf_8 | c3626f3b26fbb53bd234a4e39649b63f | // PR c++/34268
// { dg-do compile }
struct A
{
__decltype (A); // { dg-error "must be an expression" }
__decltype (~A); // { dg-error "must be an expression" }
};
struct B
{
__typeof__ (B);
__typeof__ (~B); // { dg-error "expected primary-expression" }
};
|
google | android | noexcept07 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/noexcept07.C | 329 | utf_8 | 8e223037ac4f5b5907eb661c5bd71f47 | // Test that checking of a nothrow specification uses the one on the
// definition.
// { dg-do run { target c++11 } }
#include <exception>
#include <cstdlib>
void my_unexpected ()
{
std::exit (0);
}
void f() noexcept;
void f() throw()
{
throw 1;
}
int main()
{
std::set_unexpected (my_unexpected);
f();
ret... |
google | android | initlist-defarg1 | .C | toolchain/gcc/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist-defarg1.C | 548 | utf_8 | 164cef62ad37c1cf80ca6128f56094b2 | // PR c++/56614
// { dg-require-effective-target c++11 }
#include <initializer_list>
namespace std
{
template<typename T>
struct allocator
{ };
template<typename T, typename Alloc = std::allocator<T> >
struct vector
{
vector(std::initializer_list<T>, const Alloc& =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.