/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp1y/ |
H A D | auto-fn24.C | 6 decltype(auto) qux() { return 42; } 11 static decltype(auto) bar()
|
H A D | lambda-generic-ice3.C | 3 auto a([](auto) -> decltype((void)0) {});
|
H A D | auto-fn21.C | 1 // N3638: decltype(auto) must stand alone 5 decltype(auto) g1() { return &f; } 6 decltype(auto)* g2() { return f; } // { dg-error "decltype.auto" }
|
H A D | auto-fn15.C | 10 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 D | lambda-generic-variadic3.C | 6 return [&](auto&& f)->decltype(auto) 8 return f(static_cast<decltype(t)>(t)...);
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/ |
H A D | nullptr24.C | 4 template<decltype(nullptr)>
|
H A D | pr60249.C | 4 decltype(""_) x; // { dg-error "unable to find string literal operator" }
|
H A D | pr51786.C | 7 void foo() { decltype(E{}); } // { dg-error "does not declare anything" } 8 void bar() { decltype(A{}); } // { dg-error "does not declare anything" }
|
H A D | decltype-call1.C | 8 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 D | decltype50.C | 7 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 D | trailing6.C | 5 auto a() const -> decltype(this) { return this; } function in struct:A
|
H A D | nullptr29.C | 5 void f(decltype(nullptr) &__restrict np) { }
|
H A D | udlit-string-literal.C | 9 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 D | decltype4.C | 25 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 D | trailing8.C | 10 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 D | decltype3.C | 27 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 D | decltype57.C | 7 decltype(i.I::~I())* p;
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/lambda/ |
H A D | lambda-type.C | 5 // 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 D | lambda-nsdmi5.C | 6 int i = [] { return decltype(i)(); }();
|
H A D | lambda-uneval2.C | 6 decltype( [](){ return this; }() ) x; // { dg-error "unevaluated" }
|
H A D | lambda-ice8.C | 8 [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 D | 20101010-3_0.C | 4 decltype(nullptr) a;
|
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/abi/ |
H A D | nullptr-align.C | 5 static_assert(alignof (decltype (nullptr)) == alignof (void *), "");
|
H A D | nullptr-align2.C | 6 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 D | stmtexpr16.C | 9 decltype(({ int y = x; y; })+0) v1 = 0;
|