/external/clang/test/CXX/drs/ |
dr6xx.cpp | 1 // RUN: %clang_cc1 -std=c++98 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors 2 // RUN: %clang_cc1 -std=c++11 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors 3 // RUN: %clang_cc1 -std=c++14 %s -verify -fexceptions -fcxx-exceptions -pedantic-errors 4 // RUN: %clang_cc1 -std=c++1z %s -verify -fexceptions -fcxx-exceptions -pedantic-errors 6 namespace std { struct type_info {}; } namespace 111 const std::type_info &an6 = typeid(A::n); 112 const std::type_info &an7 = typeid(A::n + 1); 113 const std::type_info &an8 = typeid(f(A::n)); 114 const std::type_info &an9 = typeid(g(A::n)); // expected-error {{non-static}} 128 const std::type_info &an2 = typeid(n + 1) [all...] |
/external/clang/test/CXX/except/except.spec/ |
canonical.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 6 namespace std namespace 54 } // std
|
/external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/ |
p2.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -Wno-unused-value %s -verify 9 namespace std { namespace 19 const std::type_info &ti1 = typeid([&]() -> P& { return p; }()); 20 const std::type_info &ti2 = typeid([&]() -> int { return i; }()); // expected-error{{lambda expression in an unevaluated operand}} 34 const std::type_info &ti1 39 const std::type_info &ti2
|
/external/clang/test/CXX/lex/lex.literal/lex.ext/ |
p7.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s -triple=x86_64-linux-gnu 4 namespace std { namespace 14 std::string operator "" _w(const char16_t*, size_t); 23 same_type<decltype(v2), std::string> test2;
|
/external/clang/test/CodeGenCXX/ |
lto-visibility-inference.cpp | 1 // RUN: %clang_cc1 -flto -triple x86_64-unknown-linux -std=c++11 -fms-extensions -fvisibility hidden -fwhole-program-vtables -emit-llvm -o - %s | FileCheck --check-prefix=ITANIUM %s 2 // RUN: %clang_cc1 -flto -triple x86_64-pc-windows-msvc -std=c++11 -fms-extensions -fwhole-program-vtables -emit-llvm -o - %s | FileCheck --check-prefix=MS --check-prefix=MS-STD %s 3 // RUN: %clang_cc1 -flto -triple x86_64-pc-windows-msvc -std=c++11 -fms-extensions -fwhole-program-vtables -flto-visibility-public-std -emit-llvm -o - %s | FileCheck --check-prefix=MS --check-prefix=MS-NOSTD %s 29 namespace std { namespace 68 void f(C1 *c1, C2 *c2, C3 *c3, C4 *c4, C5 *c5, C6 *c6, std::C7 *c7, 69 std::C7::C8 *c8, stdext::C9 *c9, other::C10 *c10) { 89 // MS-STD: type.test{{.*}}!"?AUC7@std@@ [all...] |
microsoft-abi-typeid.cpp | 4 namespace std { using ::type_info; } namespace 14 const std::type_info* test0_typeid() { return &typeid(int); } 18 const std::type_info* test1_typeid() { return &typeid(A); } 22 const std::type_info* test2_typeid() { return &typeid(&a); } 26 const std::type_info* test3_typeid() { return &typeid(*fn()); } 43 const std::type_info* test4_typeid() { return &typeid(b); } 47 const std::type_info* test5_typeid() { return &typeid(v); }
|
visibility-ms-compat.cpp | 1 // RUN: %clang_cc1 %s -std=c++11 -triple=x86_64-apple-darwin10 -fvisibility hidden -ftype-visibility default -emit-llvm -o %t 14 namespace std { namespace 28 const std::type_info &ti = typeid(A); 44 const std::type_info &ti = typeid(A); 60 const std::type_info &ti = typeid(A); 77 const std::type_info &ti = typeid(B<A>); 93 const std::type_info &ti = typeid(B<A>); 109 const std::type_info &ti = typeid(B<A>);
|
vtable-key-function-ios.cpp | 18 namespace std { class type_info; } namespace 19 extern void use(const std::type_info &rtti);
|
weak-external.cpp | 26 namespace std // purposefully not using versioning namespace namespace 65 throw(std::runtime_error("string"));
|
/external/clang/test/PCH/ |
chain-friend-instantiation.cpp | 39 namespace std { namespace 44 typedef TClass<std::s> TStr; 49 crash(const TClass<std::s> p)
|
cxx-friends.h | 28 namespace std { namespace
|
/external/clang/test/Preprocessor/ |
macro_with_initializer_list.cpp | 1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s 2 // RUN: not %clang_cc1 -std=c++11 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s 3 namespace std { namespace 14 Foo(std::initializer_list<int>);
|
/external/clang/test/SemaCXX/ |
warn-absolute-value.cpp | 1 // RUN: %clang_cc1 -triple i686-pc-linux-gnu -fsyntax-only -verify %s -Wabsolute-value -std=c++11 2 // RUN: %clang_cc1 -triple i686-pc-linux-gnu -fsyntax-only %s -Wabsolute-value -fdiagnostics-parseable-fixits -std=c++11 2>&1 | FileCheck %s 18 namespace std { namespace 36 (void)std::abs(x); 44 // expected-note@-2 {{use function 'std::abs' instead}} 45 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs" 48 // expected-note@-2 {{use function 'std::abs' instead}} 49 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:13}:"std::abs" 52 // expected-note@-2 {{use function 'std::abs' instead}} 53 // CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:9-[[@LINE-3]]:14}:"std::abs [all...] |
/external/clang/test/SemaTemplate/ |
fun-template-def.cpp | 2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s 3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 11 namespace std { class type_info {}; } namespace 50 i1 = typeid(t1); // expected-error {{assigning to 'int' from incompatible type 'const std::type_info'}}
|
resolve-single-template-id.cpp | 1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 3 namespace std { namespace
|
/external/compiler-rt/lib/msan/ |
msan_new_delete.cc | 24 // Fake std::nothrow_t to avoid including <new>. 25 namespace std { namespace 27 } // namespace std 39 void *operator new(size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; } 41 void *operator new[](size_t size, std::nothrow_t const&) { OPERATOR_NEW_BODY; } 52 void operator delete(void *ptr, std::nothrow_t const&) { OPERATOR_DELETE_BODY; } 54 void operator delete[](void *ptr, std::nothrow_t const&) {
|
/external/compiler-rt/lib/tsan/rtl/ |
tsan_new_delete.cc | 20 namespace std { namespace 22 } // namespace std 51 void *operator new(__sanitizer::uptr size, std::nothrow_t const&); 52 void *operator new(__sanitizer::uptr size, std::nothrow_t const&) { 57 void *operator new[](__sanitizer::uptr size, std::nothrow_t const&); 58 void *operator new[](__sanitizer::uptr size, std::nothrow_t const&) { 83 void operator delete(void *ptr, std::nothrow_t const&); 84 void operator delete(void *ptr, std::nothrow_t const&) { 89 void operator delete[](void *ptr, std::nothrow_t const&); 90 void operator delete[](void *ptr, std::nothrow_t const&) [all...] |
/external/eigen/Eigen/src/StlSupport/ |
StdDeque.h | 18 * std::deque such that for data types with alignment issues the correct allocator 22 namespace std \ 25 class deque<__VA_ARGS__, std::allocator<__VA_ARGS__> > \ 47 // check whether we really need the std::deque specialization 48 #if !EIGEN_HAS_CXX11_CONTAINERS && !(defined(_GLIBCXX_DEQUE) && (!EIGEN_GNUC_AT_LEAST(4,1))) /* Note that before gcc-4.1 we already have: std::deque::resize(size_type,const T&). */ 50 namespace std { namespace 84 // workaround MSVC std::deque implementation 102 // workaround GCC std::deque implementation
|
/external/eigen/test/ |
sparse.h | 29 namespace std { namespace 30 using std::tr1::unordered_map; 61 std::vector<Matrix<StorageIndex,2,1> >* zeroCoords = 0, 62 std::vector<Matrix<StorageIndex,2,1> >* nonzeroCoords = 0) 76 std::swap(ai,aj); 116 std::vector<Matrix<Index,2,1> >* zeroCoords = 0, 117 std::vector<Matrix<Index,2,1> >* nonzeroCoords = 0) 129 std::swap(ai,aj); 164 std::vector<int>* zeroCoords = 0, 165 std::vector<int>* nonzeroCoords = 0 [all...] |
/external/libcxx/test/std/containers/ |
Emplaceable.h | 44 namespace std { namespace 50 typedef std::size_t result_type; 52 std::size_t operator()(const Emplaceable& x) const {return x.get();}
|
/external/libcxx/test/std/containers/unord/unord.map/ |
compare.pass.cpp | 27 namespace std namespace 39 typedef std::unordered_map<Key, int> MapT; 44 std::pair<Iter, bool> result = map.insert(std::make_pair(Key(0), 42));
|
/external/libcxx/test/std/experimental/language.support/support.coroutines/coroutine.traits/ |
promise_type.pass.cpp | 15 namespace coro = std::experimental; 36 namespace std { namespace experimental { namespace 55 static_assert(std::is_same<typename Traits::promise_type, Expect>::value, "");
|
/external/libcxx/test/std/utilities/memory/allocator.traits/allocator.traits.types/ |
difference_type.pass.cpp | 57 namespace std namespace 72 static_assert((std::is_same<std::allocator_traits<A<char> >::difference_type, short>::value), ""); 73 static_assert((std::is_same<std::allocator_traits<B<char> >::difference_type, std::ptrdiff_t>::value), ""); 74 static_assert((std::is_same<std::allocator_traits<C<char> >::difference_type, signed char>::value), ""); 76 static_assert((std::is_same<std::allocator_traits<D<char> >::difference_type, std::ptrdiff_t>::value), "") [all...] |
size_type.pass.cpp | 55 namespace std namespace 68 static_assert((std::is_same<std::allocator_traits<A<char> >::size_type, unsigned short>::value), ""); 69 static_assert((std::is_same<std::allocator_traits<B<char> >::size_type, 70 std::make_unsigned<std::ptrdiff_t>::type>::value), ""); 71 static_assert((std::is_same<std::allocator_traits<C<char> >::size_type, 74 static_assert((std::is_same<std::allocator_traits<D<char> >::size_type, unsigned short>::value), "") [all...] |
/external/libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.hash/ |
hash_unique_ptr.pass.cpp | 32 using UPtr = std::unique_ptr<ValueT, Del>; 34 using RawDel = typename std::decay<Del>::type; 36 UPtr p(nullptr, std::forward<Del>(d)); 43 using UPtr = std::unique_ptr<ValueT, Del>; 49 namespace std { namespace 52 struct hash<::min_pointer<T, std::integral_constant<size_t, 1>>> { 53 size_t operator()(::min_pointer<T, std::integral_constant<size_t, 1>> p) const TEST_NOEXCEPT_FALSE { 55 return std::hash<T*>{}(std::addressof(*p)); 68 std::unique_ptr<int> p(ptr) [all...] |