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

123456789

/external/clang/test/Parser/
H A Dbracket-crash.cpp3 decltype(;
9 decltype(
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp7-1y.cpp21 decltype(auto) x3d = i;
22 using Int = decltype(x3a);
23 using Int = decltype(x3d);
26 decltype(auto) x4d = (i);
27 using Int = decltype(x4a);
28 using IntLRef = decltype(x4d);
31 decltype(auto) x5d = f();
32 using Int = decltype(x5a);
33 using IntRRef = decltype(x5d);
36 decltype(aut
[all...]
H A Dp3-1y.cpp6 decltype(auto) a = a; // expected-error{{variable 'a' declared with 'auto' type cannot appear in its own initializer}}
7 if (decltype(auto) b = b) {} // expected-error {{variable 'b' declared with 'auto' type cannot appear in its own initializer}}
8 decltype(auto) c = ({ decltype(auto) d = c; 0; }); // expected-error {{variable 'c' declared with 'auto' type cannot appear in its own initializer}}
12 decltype(auto) a; // expected-error{{declaration of variable 'a' with type 'decltype(auto)' requires an initializer}}
14 decltype(auto) *b; // expected-error{{cannot form pointer to 'decltype(auto)'}} expected-error{{declaration of variable 'b' with type 'decltype(auto) *' requires an initializer}}
16 if (decltype(aut
[all...]
/external/clang/test/CXX/expr/expr.post/expr.type.conv/
H A Dp1-0x.cpp10 decltype(foo())();
11 f = (decltype(foo()))5;
12 return decltype(3)(5);
/external/clang/test/CodeGenCXX/
H A Ddebug-info-nullptr.cpp4 decltype(nullptr) t = 0;
7 // CHECK: [ DW_TAG_unspecified_type ] [decltype(nullptr)]
H A Dmangle-ms-cxx11.cpp13 namespace std { typedef decltype(__nullptr) nullptr_t; }
43 decltype(Enum) *UseEnum() { return &Enum; }
44 decltype(BoolEnum) *UseBoolEnum() { return &BoolEnum; }
45 decltype(CharEnum) *UseCharEnum() { return &CharEnum; }
46 decltype(SCharEnum) *UseSCharEnum() { return &SCharEnum; }
47 decltype(UCharEnum) *UseUCharEnum() { return &UCharEnum; }
48 decltype(SShortEnum) *UseSShortEnum() { return &SShortEnum; }
49 decltype(UShortEnum) *UseUShortEnum() { return &UShortEnum; }
50 decltype(SIntEnum) *UseSIntEnum() { return &SIntEnum; }
51 decltype(UIntEnu
100 decltype(a) fun(decltype(a) x, decltype(a)) { return x; } function in namespace:PR18022
[all...]
H A Dnew-alias.cpp3 using size_t = decltype(sizeof(0));
/external/clang/test/SemaCXX/
H A Ddecltype-crash.cpp6 decltype(a()) c; // expected-warning {{'decltype' is a keyword in C++11}} expected-error {{use of undeclared identifier 'decltype'}}
H A Ddecltype-pr4444.cpp6 typedef decltype(t+2) sum_type;
H A Dcxx11-ast-print.cpp3 // CHECK: auto operator "" _foo(const char *p, decltype(sizeof(int))) -> decltype(nullptr);
4 auto operator"" _foo(const char *p, decltype(sizeof(int))) -> decltype(nullptr);
6 // CHECK: decltype(""_foo) operator "" _bar(unsigned long long);
7 decltype(""_foo) operator"" _bar(unsigned long long);
9 // CHECK: decltype(42_bar) operator "" _baz(long double);
10 decltype(42_bar) operator"" _baz(long double);
12 // CHECK: decltype(4.5_baz) operator "" _baz(char);
13 decltype(4.
[all...]
H A Ddecltype.cpp6 decltype(0, f0()) i = 0;
24 auto call(F&& fn) -> decltype(fn(T())) {
29 auto then(F&& fn) -> decltype(call(fn))
42 A(decltype(nullptr) param);
47 template<typename T> auto f(T t) -> decltype(S<int>(t)) {
48 using U = decltype(S<int>(t));
54 B(decltype(undeclared)); // expected-error {{undeclared identifier}}
57 C(decltype(undeclared; // expected-error {{undeclared identifier}} \
64 static decltype(T{}, U{}) &f();
72 decltype(
[all...]
/external/clang/test/SemaTemplate/
H A Dextension-sfinae.cpp5 decltype(short{123456}) a;
10 template<typename T> int f(decltype(T{123456})); // expected-note {{cannot be narrowed}}
/external/clang/test/CXX/conv/conv.prom/
H A Dp2.cpp11 extern decltype(+L'a') promoted_wchar;
14 extern decltype(+u'a') promoted_char16;
17 extern decltype(+U'a') promoted_char32;
/external/clang/test/CXX/expr/expr.prim/expr.prim.general/
H A Dp8-0x.cpp23 operator decltype(outer::middle::inner()) ();
24 operator decltype(outer::middle())::inner2 ();
25 operator decltype(outer())::middle::inner3 ();
26 str(int (decltype(outer::middle::inner())::*n)(),
27 int (decltype(outer::middle())::inner::*o)(),
28 int (decltype(outer())::middle::inner::*p)());
31 decltype(outer::middle::inner()) a;
33 a.decltype(outer::middle())::mfunc(); // expected-error{{'PR10127::outer::middle::mfunc' is not a member of class 'decltype(outer::middle::inner())'}}
34 a.decltype(oute
[all...]
/external/clang/test/CXX/special/class.dtor/
H A Dp10-0x.cpp8 x->~decltype(T())();
9 x->~decltype(*x)(); // expected-error{{the type of object expression ('const int') does not match the type being destroyed ('decltype(*x)' (aka 'const int &')) in pseudo-destructor expression}} \
11 x->~decltype(int())(); // expected-error{{no member named '~int' in 'A'}}
13 y->~decltype(*y)(); // expected-error{{destructor type 'decltype(*y)' (aka 'const A &') in object destruction expression does not match the type 'const A' of the object being destroyed}}
14 y->~decltype(T())(); // expected-error{{destructor type 'decltype(T())' in object destruction expression does not match the type 'const A' of the object being destroyed}}
15 y->~decltype(A())();
20 x->~decltype(
[all...]
/external/clang/test/CXX/class.derived/
H A Dp1.cpp12 // class-or-decltype:
14 // decltype-specifier
16 // class-or-decltype
24 struct Derived : decltype(Base()) { };
27 struct Derived2 : decltype(func()) { }; // expected-error {{base specifier must name a class}}
30 struct Derived3 : decltype(T().foo()) { };
34 struct Derived4 : :: decltype(Base()) { }; // expected-error {{unexpected namespace scope prior to decltype}}
36 struct Derived5 : PR11216:: decltype(Base()) { }; // expected-error {{unexpected namespace scope prior to decltype}}
[all...]
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
H A Dp18.cpp21 static_assert(is_same<decltype(((r))), float const&>::value,
23 static_assert(is_same<decltype(x), float>::value, "should be float");
24 static_assert(is_same<decltype((x)), const float&>::value,
26 static_assert(is_same<decltype(r), float&>::value, "should be float&");
27 static_assert(is_same<decltype(ir), int&>::value, "should be int&");
28 static_assert(is_same<decltype((ir)), int&>::value, "should be int&");
29 static_assert(is_same<decltype(irc), const int&>::value,
31 static_assert(is_same<decltype((irc)), const int&>::value,
37 static_assert(is_same<decltype(x), float>::value, "should be float");
38 static_assert(is_same<decltype((
[all...]
H A Dp3.cpp5 decltype(lambda) foo = { 1 }; // expected-error{{no matching constructor}}
H A Dp19.cpp13 decltype(lambda1) lambda2; // expected-error{{call to implicitly-deleted default constructor of 'decltype(lambda1)' (aka '(lambda}}
22 decltype(lambda1) lambda3 = lambda1;
23 decltype(lambda1) lambda4(lambda1);
26 decltype(lambda1) lambda5 = move(lambda1);
27 decltype(lambda1) lambda6(move(lambda1));
/external/clang/test/Driver/
H A Dstd.cpp15 decltype(n)();
19 // CXX98: undeclared identifier 'decltype'
22 // GNUXX98: undeclared identifier 'decltype'
25 // CXX11-NOT: undeclared identifier 'decltype'
28 // GNUXX11-NOT: undeclared identifier 'decltype'
31 // CXX1Y-NOT: undeclared identifier 'decltype'
34 // GNUXX1Y-NOT: undeclared identifier 'decltype'
37 // CXX1Z-NOT: undeclared identifier 'decltype'
40 // GNUXX1Z-NOT: undeclared identifier 'decltype'
/external/libcxx/test/depr/depr.c.headers/
H A Dmath_h.disabled.cpp20 static_assert((std::is_same<decltype(acos((double)0)), double>::value), "");
21 static_assert((std::is_same<decltype(acosf(0)), float>::value), "");
22 static_assert((std::is_same<decltype(acosl(0)), long double>::value), "");
28 static_assert((std::is_same<decltype(asin((double)0)), double>::value), "");
29 static_assert((std::is_same<decltype(asinf(0)), float>::value), "");
30 static_assert((std::is_same<decltype(asinl(0)), long double>::value), "");
36 static_assert((std::is_same<decltype(atan((double)0)), double>::value), "");
37 static_assert((std::is_same<decltype(atanf(0)), float>::value), "");
38 static_assert((std::is_same<decltype(atanl(0)), long double>::value), "");
44 static_assert((std::is_same<decltype(atan
[all...]
H A Dstdlib_h.pass.cpp42 static_assert((std::is_same<decltype(atof("")), double>::value), "");
43 static_assert((std::is_same<decltype(atoi("")), int>::value), "");
44 static_assert((std::is_same<decltype(atol("")), long>::value), "");
45 static_assert((std::is_same<decltype(atoll("")), long long>::value), "");
46 static_assert((std::is_same<decltype(getenv("")), char*>::value), "");
47 static_assert((std::is_same<decltype(strtod("", endptr)), double>::value), "");
48 static_assert((std::is_same<decltype(strtof("", endptr)), float>::value), "");
49 static_assert((std::is_same<decltype(strtold("", endptr)), long double>::value), "");
50 static_assert((std::is_same<decltype(strtol("", endptr,0)), long>::value), "");
51 static_assert((std::is_same<decltype(strtol
[all...]
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/
H A Dp5-cxx0x.cpp8 template<class T> auto f(T) -> decltype(i(h<T>())); // #1
13 template<class T> auto q(T) -> decltype((h<T>()));
37 decltype(pd()) s; // ok
38 decltype(pd())::n n; // ok
39 decltype(dd()) *p = new decltype(dd()); // ok
43 // Two errors here: one for the decltype, one for the variable.
44 decltype(
47 decltype(dd(), // expected-error {{deleted function}}
49 decltype(
[all...]
H A Dp4-cxx0x.cpp18 static_assert(is_same<decltype(foo()), const int&&>::value, "");
19 static_assert(is_same<decltype(i), int>::value, "");
20 static_assert(is_same<decltype(a->x), double>::value, "");
21 static_assert(is_same<decltype((a->x)), const double&>::value, "");
22 static_assert(is_same<decltype(static_cast<int&&>(i)), int&&>::value, "");
27 decltype(f0) f0_a; // expected-error{{reference to overloaded function could not be resolved; did you mean to call it?}}
/external/libcxx/test/numerics/c.math/
H A Dcmath.disabled.cpp26 static_assert((std::is_same<decltype(std::abs((float)0)), float>::value), "");
27 static_assert((std::is_same<decltype(std::abs((double)0)), double>::value), "");
28 static_assert((std::is_same<decltype(std::abs((long double)0)), long double>::value), "");
34 static_assert((std::is_same<decltype(std::acos((float)0)), float>::value), "");
35 static_assert((std::is_same<decltype(std::acos((bool)0)), double>::value), "");
36 static_assert((std::is_same<decltype(std::acos((unsigned short)0)), double>::value), "");
37 static_assert((std::is_same<decltype(std::acos((int)0)), double>::value), "");
38 static_assert((std::is_same<decltype(std::acos((unsigned int)0)), double>::value), "");
39 static_assert((std::is_same<decltype(std::acos((long)0)), double>::value), "");
40 static_assert((std::is_same<decltype(st
[all...]

Completed in 4363 milliseconds

123456789