/external/clang/test/Parser/ |
bracket-crash.cpp | 3 decltype(; 9 decltype(
|
/external/clang/test/CXX/expr/expr.post/expr.type.conv/ |
p1-0x.cpp | 10 decltype(foo())(); 11 f = (decltype(foo()))5; 12 return decltype(3)(5);
|
/external/clang/test/CodeGenCXX/ |
debug-info-nullptr.cpp | 4 decltype(nullptr) t = 0;
|
debug-info-method.cpp | 18 void foo(int, A, decltype(u)); 21 void A::foo(int, A, decltype(u)) {
|
/external/clang/test/SemaCXX/ |
decltype-crash.cpp | 6 decltype(a()) c; // expected-warning {{'decltype' is a keyword in C++11}} expected-error {{use of undeclared identifier 'decltype'}}
|
decltype-pr4444.cpp | 6 typedef decltype(t+2) sum_type;
|
decltype.cpp | 6 decltype(0, f0()) i = 0; 21 A(decltype(nullptr) param); 26 template<typename T> auto f(T t) -> decltype(S<int>(t)) { 27 using U = decltype(S<int>(t)); 33 B(decltype(undeclared)); // expected-error {{undeclared identifier}} 36 C(decltype(undeclared; // expected-error {{undeclared identifier}} \ 44 void foo(conditional<decltype((1),int>) { // expected-note 2 {{to match this '('}} expected-error {{expected ')'}}
|
cxx11-ast-print.cpp | 3 // 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.5_baz) operator"" _baz(char) [all...] |
decltype-overloaded-functions.cpp | 5 decltype(f) a; // expected-error{{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}} expected-error {{variable has incomplete type 'decltype(f())' (aka 'void')}} 8 decltype(T::f) * f; // expected-error {{call to non-static member function without an object argument}} 18 template<typename T> struct S { decltype(1) f(); }; 19 template<typename T> decltype(1) S<T>::f() { return 1; } 21 // This case is ill-formed (no diagnostic required) because the decltype 24 template<typename T> struct U { struct A {}; decltype(A{}) f(); }; 25 template<typename T> decltype(typename U<T>::A{}) U<T>::f() {} 28 template<typename T> struct V { struct A {}; decltype(typename V<T>::A{}) f(); }; 29 template<typename T> decltype(typename V<T>::A{}) V<T>::f() { [all...] |
/external/clang/test/CXX/conv/conv.prom/ |
p2.cpp | 11 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/ |
p8-0x.cpp | 23 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(outer::middle::inner())::func() [all...] |
/external/clang/test/CXX/special/class.dtor/ |
p10-0x.cpp | 8 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(A())() [all...] |
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p18.cpp | 21 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((x)), float&>::value, [all...] |
p3.cpp | 5 decltype(lambda) foo = { 1 }; // expected-error{{no matching constructor}}
|
/external/clang/test/CXX/dcl.decl/dcl.meaning/ |
p1-0x.cpp | 3 // The nested-name-specifier of a qualified declarator-id shall not begin with a decltype-specifier. 9 int decltype(foo())::i; // expected-error{{'decltype' cannot be used to name a declaration}} 10 void decltype(foo())::func() { // expected-error{{'decltype' cannot be used to name a declaration}} 21 int decltype(tfoo<T>())::i; // expected-error{{nested name specifier 'decltype(tfoo<T>())::' for declaration does not refer into a class, class template or class template partial specialization}} 23 void decltype(tfoo<T>())::func() { // expected-error{{nested name specifier 'decltype(tfoo<T>())::' for declaration does not refer into a class, class template or class template partial specialization}}
|
/external/clang/test/Driver/ |
std.cpp | 13 decltype(n)(); 17 // CXX98: undeclared identifier 'decltype' 20 // GNUXX98: undeclared identifier 'decltype' 23 // CXX11-NOT: undeclared identifier 'decltype' 26 // GNUXX11-NOT: undeclared identifier 'decltype' 29 // CXX1Y-NOT: undeclared identifier 'decltype' 32 // GNUXX1Y-NOT: undeclared identifier 'decltype'
|
/external/clang/test/CXX/class.derived/ |
p1.cpp | 12 // 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...] |
/ndk/sources/cxx-stl/llvm-libc++/test/depr/depr.c.headers/ |
math_h.pass.cpp | 20 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(atan2((double)0, (double)0)), double>::value), "") [all...] |
stdlib_h.pass.cpp | 42 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(strtoll("", endptr,0)), long long>::value), "") [all...] |
string_h.pass.cpp | 26 static_assert((std::is_same<decltype(memcpy(vp, vpc, s)), void*>::value), ""); 27 static_assert((std::is_same<decltype(memmove(vp, vpc, s)), void*>::value), ""); 28 static_assert((std::is_same<decltype(strcpy(cp, cpc)), char*>::value), ""); 29 static_assert((std::is_same<decltype(strncpy(cp, cpc, s)), char*>::value), ""); 30 static_assert((std::is_same<decltype(strcat(cp, cpc)), char*>::value), ""); 31 static_assert((std::is_same<decltype(strncat(cp, cpc, s)), char*>::value), ""); 32 static_assert((std::is_same<decltype(memcmp(vpc, vpc, s)), int>::value), ""); 33 static_assert((std::is_same<decltype(strcmp(cpc, cpc)), int>::value), ""); 34 static_assert((std::is_same<decltype(strncmp(cpc, cpc, s)), int>::value), ""); 35 static_assert((std::is_same<decltype(strcoll(cpc, cpc)), int>::value), "") [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.simple/ |
p5-cxx0x.cpp | 8 template<class T> auto f(T) -> decltype(i(h<T>())); // #1 13 template<class T> auto q(T) -> decltype((h<T>())); 34 decltype(PD()) s; // ok 35 decltype(PD())::n n; // ok 36 decltype(DD()) *p = new decltype(DD()); // ok 39 // Two errors here: one for the decltype, one for the variable. 40 decltype( 43 decltype(DD(), // expected-error {{deleted function}} 45 decltype( [all...] |
p4-cxx0x.cpp | 18 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?}}
|
/ndk/sources/cxx-stl/llvm-libc++/test/numerics/c.math/ |
cmath.pass.cpp | 20 static_assert((std::is_same<decltype(std::abs((float)0)), float>::value), ""); 21 static_assert((std::is_same<decltype(std::abs((double)0)), double>::value), ""); 22 static_assert((std::is_same<decltype(std::abs((long double)0)), long double>::value), ""); 28 static_assert((std::is_same<decltype(std::acos((float)0)), float>::value), ""); 29 static_assert((std::is_same<decltype(std::acos((bool)0)), double>::value), ""); 30 static_assert((std::is_same<decltype(std::acos((unsigned short)0)), double>::value), ""); 31 static_assert((std::is_same<decltype(std::acos((int)0)), double>::value), ""); 32 static_assert((std::is_same<decltype(std::acos((unsigned int)0)), double>::value), ""); 33 static_assert((std::is_same<decltype(std::acos((long)0)), double>::value), ""); 34 static_assert((std::is_same<decltype(std::acos((unsigned long)0)), double>::value), "") [all...] |
/external/clang/test/PCH/ |
cxx11-exception-spec.cpp | 10 decltype(f<false>()) a; 11 decltype(f<true>()) b;
|
/ndk/sources/cxx-stl/llvm-libc++/test/strings/c.strings/ |
cstring.pass.cpp | 26 static_assert((std::is_same<decltype(std::memcpy(vp, vpc, s)), void*>::value), ""); 27 static_assert((std::is_same<decltype(std::memmove(vp, vpc, s)), void*>::value), ""); 28 static_assert((std::is_same<decltype(std::strcpy(cp, cpc)), char*>::value), ""); 29 static_assert((std::is_same<decltype(std::strncpy(cp, cpc, s)), char*>::value), ""); 30 static_assert((std::is_same<decltype(std::strcat(cp, cpc)), char*>::value), ""); 31 static_assert((std::is_same<decltype(std::strncat(cp, cpc, s)), char*>::value), ""); 32 static_assert((std::is_same<decltype(std::memcmp(vpc, vpc, s)), int>::value), ""); 33 static_assert((std::is_same<decltype(std::strcmp(cpc, cpc)), int>::value), ""); 34 static_assert((std::is_same<decltype(std::strncmp(cpc, cpc, s)), int>::value), ""); 35 static_assert((std::is_same<decltype(std::strcoll(cpc, cpc)), int>::value), "") [all...] |