Searched refs:decltype (Results 1 - 25 of 363) sorted by relevance

1234567891011>>

/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp1y/
H A Dauto-fn24.C6 decltype(auto) qux() { return 42; }
11 static decltype(auto) bar()
H A Dlambda-generic-ice3.C3 auto a([](auto) -> decltype((void)0) {});
H A Dauto-fn21.C1 // N3638: decltype(auto) must stand alone
5 decltype(auto) g1() { return &f; }
6 decltype(auto)* g2() { return f; } // { dg-error "decltype.auto" }
H A Dauto-fn15.C10 decltype(auto) g() { return f(); }
11 decltype(auto) h1() { return i; }
12 decltype(auto) h2() { return (i); }
13 decltype(auto) h2a() { return 0,i; }
18 decltype(auto) h3() { return a.i; }
19 decltype(auto) h4() { return (a.i); }
22 decltype(auto) h5(T t) { return t.i; }
24 decltype(auto) h6(T t) { return (t.i); }
28 decltype(auto) i = f();
29 same_type<decltype(
[all...]
H A Dlambda-generic-variadic3.C6 return [&](auto&& f)->decltype(auto)
8 return f(static_cast<decltype(t)>(t)...);
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Dnullptr24.C4 template<decltype(nullptr)>
H A Dpr60249.C4 decltype(""_) x; // { dg-error "unable to find string literal operator" }
H A Dpr51786.C7 void foo() { decltype(E{}); } // { dg-error "does not declare anything" }
8 void bar() { decltype(A{}); } // { dg-error "does not declare anything" }
H A Ddecltype-call1.C8 decltype(f()) g1(); // OK
9 decltype(((f()))) g2b(); // OK
10 decltype(42,f()) g3(); // OK
11 decltype(42,45,f()) g3b(); // OK
12 decltype(42,45,(f())) g3c(); // OK
13 decltype(42,((45,(f())))) g3c(); // OK
15 decltype(f(),42) g4(); // { dg-error "" }
16 decltype(45,f(),42) g4b(); // { dg-error "" }
29 decltype(h()) g5a(); // OK
30 decltype(
[all...]
H A Ddecltype50.C7 decltype(zip) bar0; // { dg-error "invalid use of non-static member function" }
9 typedef decltype(this->A::zip) x; // { dg-error "invalid use of non-static member function" }
12 typedef decltype(A::zip) x; // { dg-error "invalid use of non-static member function" }
16 typedef decltype(A().zip) x; // { dg-error "invalid use of non-static member function" }
H A Dtrailing6.C5 auto a() const -> decltype(this) { return this; } function in struct:A
H A Dnullptr29.C5 void f(decltype(nullptr) &__restrict np) { }
H A Dudlit-string-literal.C9 decltype("Hello, World!"s) s;
10 decltype(u8"Hello, World!"s) s8;
11 decltype(L"Hello, World!"s) ws;
12 decltype(u"Hello, World!"s) s16;
13 decltype(U"Hello, World!"s) s32;
H A Ddecltype4.C25 CHECK_DECLTYPE(decltype(&A::x), int A::*); variable
26 decltype(&A::y) Ay; // { dg-error "cannot create pointer to reference member|invalid type" }
27 CHECK_DECLTYPE(decltype(&A::foo), int (A::*) (char)); variable
28 CHECK_DECLTYPE(decltype(&A::bar), int& (A::*) () const); variable
30 CHECK_DECLTYPE(decltype("decltype"), const char(&)[9]);
31 CHECK_DECLTYPE(decltype(1), int);
37 CHECK_DECLTYPE(decltype(i)&, int&);
38 CHECK_DECLTYPE(const decltype(j), const int);
41 CHECK_DECLTYPE(decltype(fo
[all...]
H A Dtrailing8.C10 auto test1() const -> decltype(this);
11 auto test2() const -> decltype(ref(x));
12 auto test3() const -> decltype(f());
15 auto A::test1() const -> decltype(this) { function
19 auto A::test2() const -> decltype(ref(x)) {
23 auto A::test3() const -> decltype(f()) {
H A Ddecltype3.C27 CHECK_DECLTYPE(decltype(a), int);
28 CHECK_DECLTYPE(decltype(this->a), int);
29 CHECK_DECLTYPE(decltype((*this).a), int);
30 CHECK_DECLTYPE(decltype(b), int&);
31 CHECK_DECLTYPE(decltype(c), int);
34 CHECK_DECLTYPE(decltype(a), int);
35 CHECK_DECLTYPE(decltype(b), int&);
36 CHECK_DECLTYPE(decltype(c), int);
43 CHECK_DECLTYPE(decltype(aa.a), int);
44 CHECK_DECLTYPE(decltype(a
[all...]
H A Ddecltype57.C7 decltype(i.I::~I())* p;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/lambda/
H A Dlambda-type.C5 // Every occurrence of decltype((x)) where x is a possibly parenthesized
11 // So, other appearances of 'x' within decltype do not refer to the closure
25 same_type<decltype(i),int>();
26 same_type<decltype((i)),int const&>();
28 same_type<decltype((i)),int const&>();
29 same_type<decltype(i),int>();
32 same_type<decltype(i),int>();
33 same_type<decltype((i)),int const&>();
34 same_type<decltype(i),int>();
37 same_type<decltype(
[all...]
H A Dlambda-nsdmi5.C6 int i = [] { return decltype(i)(); }();
H A Dlambda-uneval2.C6 decltype( [](){ return this; }() ) x; // { dg-error "unevaluated" }
H A Dlambda-ice8.C8 [i] { A<decltype(i)>(); }; // { dg-error "not declared|invalid" }
9 [i] { A<decltype(i)>(); }; // { dg-error "invalid" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/lto/
H A D20101010-3_0.C4 decltype(nullptr) a;
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/abi/
H A Dnullptr-align.C5 static_assert(alignof (decltype (nullptr)) == alignof (void *), "");
H A Dnullptr-align2.C6 decltype(nullptr) n;
7 decltype(nullptr) n2;
13 decltype(nullptr) n;
19 decltype(nullptr) n; // { dg-warning "alignment" }
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/
H A Dstmtexpr16.C9 decltype(({ int y = x; y; })+0) v1 = 0;

Completed in 210 milliseconds

1234567891011>>