| /minix3/external/bsd/libc++/dist/libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/func.wrap.func.con/ |
| H A D | alloc_function.pass.cpp | 28 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument 40 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_FunctionObject() 52 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument 64 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_FreeFunction() 74 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument 86 std::function<FuncType> f2(std::allocator_arg, alloc, f); in test_MemFunClass() 96 void test_for_alloc(Alloc& alloc) in test_for_alloc() argument 99 test_FunctionObject<int()>(alloc); in test_for_alloc() 100 test_FunctionObject<int(int)>(alloc); in test_for_alloc() 101 test_FunctionObject<int(int, int)>(alloc); in test_for_alloc() [all …]
|
| H A D | alloc_F.pass.cpp | 27 void test_FunctionObject(AllocType& alloc) in test_FunctionObject() argument 34 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_FunctionObject() 47 void test_FreeFunction(AllocType& alloc) in test_FreeFunction() argument 53 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_FreeFunction() 64 void test_MemFunClass(AllocType& alloc) in test_MemFunClass() argument 70 std::function<FuncType> f2(std::allocator_arg, alloc, target); in test_MemFunClass() 80 void test_for_alloc(Alloc& alloc) { in test_for_alloc() argument 81 test_FunctionObject<int()>(alloc); in test_for_alloc() 82 test_FunctionObject<int(int)>(alloc); in test_for_alloc() 83 test_FunctionObject<int(int, int)>(alloc); in test_for_alloc() [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/std/containers/sequences/vector.bool/ |
| H A D | construct_iter_iter_alloc.pass.cpp | 38 std::allocator<bool> alloc; in main() local 39 … test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main() 40 …st<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main() 41 …or<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main() 42 …or<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); in main() 43 test<std::vector<bool> >(a, an, alloc); in main() 47 min_allocator<bool> alloc; in main() local 48 …ol, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main() 49 …min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main() 50 …r<bool>> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main() [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/containers/sequences/vector.bool/ |
| H A D | construct_iter_iter_alloc.pass.cpp | 38 std::allocator<bool> alloc; in main() local 39 … test<std::vector<bool> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main() 40 …st<std::vector<bool> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main() 41 …or<bool> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main() 42 …or<bool> >(random_access_iterator<const bool*>(a), random_access_iterator<const bool*>(an), alloc); in main() 43 test<std::vector<bool> >(a, an, alloc); in main() 47 min_allocator<bool> alloc; in main() local 48 …ol, min_allocator<bool>> >(input_iterator<const bool*>(a), input_iterator<const bool*>(an), alloc); in main() 49 …min_allocator<bool>> >(forward_iterator<const bool*>(a), forward_iterator<const bool*>(an), alloc); in main() 50 …r<bool>> >(bidirectional_iterator<const bool*>(a), bidirectional_iterator<const bool*>(an), alloc); in main() [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/std/containers/sequences/vector/vector.cons/ |
| H A D | construct_iter_iter_alloc.pass.cpp | 51 std::allocator<int> alloc; in main() local 52 test<std::vector<int> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main() 53 … test<std::vector<int> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main() 54 …ector<int> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); in main() 55 …ector<int> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc); in main() 56 test<std::vector<int> >(a, an, alloc); in main() 62 min_allocator<int> alloc; in main() local 63 …r<int, min_allocator<int>> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main() 64 …t, min_allocator<int>> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main() 65 …ator<int>> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); in main() [all …]
|
| /minix3/external/bsd/libc++/dist/libcxx/test/containers/sequences/vector/vector.cons/ |
| H A D | construct_iter_iter_alloc.pass.cpp | 51 std::allocator<int> alloc; in main() local 52 test<std::vector<int> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main() 53 … test<std::vector<int> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main() 54 …ector<int> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); in main() 55 …ector<int> >(random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc); in main() 56 test<std::vector<int> >(a, an, alloc); in main() 62 min_allocator<int> alloc; in main() local 63 …r<int, min_allocator<int>> >(input_iterator<const int*>(a), input_iterator<const int*>(an), alloc); in main() 64 …t, min_allocator<int>> >(forward_iterator<const int*>(a), forward_iterator<const int*>(an), alloc); in main() 65 …ator<int>> >(bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an), alloc); in main() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/test/SemaObjC/ |
| H A D | class-message-protocol-lookup.m | 7 + (id)alloc; class 15 + (id)alloc; class 21 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return … 23 Class<Test2Protocol> c2 = [c2 alloc]; // ok 25 + (id)alloc { return 0; } class 30 …Class<TestProtocol> c = [c alloc]; // expected-warning {{class method '+alloc' not found (return … 32 Class<Test2Protocol> c2 = [c2 alloc]; // ok
|
| H A D | self-in-function.m | 12 + (id) alloc; class 17 [self alloc]; 19 [self alloc]; 25 [y alloc];
|
| H A D | instancetype.m | 8 + (instancetype)alloc; // expected-note {{explicitly declared 'instancetype'}} class 41 Root *r1 = [[Root alloc] init]; 42 Subclass1 *sc1 = [[Subclass1 alloc] init]; 48 …Subclass1 *sc1 = [[Subclass1 alloc] initSubclass2]; // expected-warning{{'Subclass1' may not respo… 49 Subclass2 *sc2 = [[Subclass2 alloc] initSubclass2]; // okay 52 …[[[Subclass1 alloc] init] methodOnSubclass2]; // expected-warning{{'Subclass1' may not respond to … 53 [[[Subclass2 alloc] init] methodOnSubclass2]; 58 …[[SC1Proto1 alloc] methodInProto2]; // expected-warning{{method '-methodInProto2' not found (retur… 59 [[SC1Proto2 alloc] methodInProto2]; 68 typeof([[Subclass1 alloc] init]) *ptr1 = (Subclass1 **)0; [all …]
|
| H A D | arc-unsafe-assigns.m | 12 + (id)alloc; class 21 +(id)alloc { return 0; } class 26 …self.unsafe_prop = [[Foo alloc] init]; // expected-warning {{assigning retained object to unsafe p… 27 …self->unsafe_ivar = [[Foo alloc] init]; // expected-warning {{assigning retained object to unsafe_… 31 …unsafe_var = [[Foo alloc] init]; // expected-warning {{assigning retained object to unsafe_unretai… 40 …unsafe_var = [[Foo alloc] init]; // expected-warning {{assigning retained object to unsafe_unretai…
|
| /minix3/external/bsd/llvm/dist/clang/test/ARCMT/ |
| H A D | atautorelease-3.m | 8 +alloc; class 18 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 19 NSAutoreleasePool *chunkPool = [[NSAutoreleasePool alloc] init]; 21 chunkPool = [[NSAutoreleasePool alloc] init]; 30 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 31 NSAutoreleasePool *chunkPool = [[NSAutoreleasePool alloc] init]; 33 chunkPool = [[NSAutoreleasePool alloc] init];
|
| H A D | atautorelease.m | 11 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 20 NSAutoreleasePool * pool1 = [[NSAutoreleasePool alloc] init]; 33 NSAutoreleasePool *pool2 = [[NSAutoreleasePool alloc] init]; 43 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 57 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
| /minix3/external/bsd/llvm/dist/clang/test/Analysis/ |
| H A D | retain-release-region-store.m | 33 extern CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, const char *cStr, CFStringEncodi… 55 + (id)alloc; class 163 [[NSNumber alloc] initWithInt:1], // no-warning 164 [[NSNumber alloc] initWithInt:2], // no-warning 165 [[NSNumber alloc] initWithInt:3], // no-warning 166 [[NSNumber alloc] initWithInt:4], // no-warning 167 [[NSNumber alloc] initWithInt:5] // no-warning 176 [[NSNumber alloc] initWithInt:1], // expected-warning{{leak}} 177 [[NSNumber alloc] initWithInt:2], // expected-warning{{leak}} 178 [[NSNumber alloc] initWithInt:3], // expected-warning{{leak}} [all …]
|
| H A D | NSString.m | 35 extern CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CF… 61 + (id)alloc; class 139 NSString* s = [[NSString alloc] init]; 140 NSMutableArray* a = [[NSMutableArray alloc] initWithCapacity:2]; 148 NSString* s = [[NSString alloc] init]; 156 if (!s) s = [[NSString alloc] init]; 176 NSString *string = [[NSString alloc] init]; 200 NSString *str = [[NSString alloc] init]; 205 NSString *s = [[NSString alloc] init]; // expected-warning{{leak}} 211 NSString *s = [[[NSString alloc] init] autorelease]; // expected-warning{{leak}} [all …]
|
| H A D | malloc.mm | 18 …NSData *nsdata = [[NSData alloc] initWithBytesNoCopy:data length:dataLength freeWhenDone:1]; // no… 23 Wrapper *nsdata = [[Wrapper alloc] initWithBytesNoCopy:data length:dataLength]; // no-warning 28 …NSString *nsstr = [[NSString alloc] initWithBytesNoCopy:data length:dataLength encoding:NSUTF8Stri… 33 …NSString *nsstr = [[NSString alloc] initWithCharactersNoCopy:data length:dataLength freeWhenDone:1… 39 …NSString *nsstr = [[NSString alloc] initWithBytesNoCopy:data length:dataLength encoding:NSUTF8Stri… 44 …NSString *nsstr = [[NSString alloc] initWithCharactersNoCopy:data length:dataLength freeWhenDone:1… 55 …NSData *nsdata = [[NSData alloc] initWithBytesNoCopy:data length:dataLength freeWhenDone:0]; // ex… 61 …NSString *nsstr = [[NSString alloc] initWithBytesNoCopy:data length:dataLength encoding:NSUTF8Stri… 66 …NSString *nsstr = [[NSString alloc] initWithCharactersNoCopy:data length:dataLength freeWhenDone:0… 270 …NSString *string = [[NSString alloc] initWithCharactersNoCopy:characters length:12 freeWhenDone:1]; [all …]
|
| /minix3/external/bsd/llvm/dist/clang/test/Analysis/inlining/ |
| H A D | ObjCDynTypePopagation.m | 23 /* Test that we get the right type from call to alloc. */ 25 id a = [self alloc]; 31 id a = [PublicSubClass2 alloc]; 36 id a = [super alloc]; 42 id a = [super alloc]; 47 id a = [[self alloc] init]; 58 id a = [[self alloc] init]; 80 id x = [[AllocClass alloc] init]; 94 return [[PublicSubClass2 alloc] init];
|
| /minix3/crypto/external/bsd/heimdal/dist/lib/hcrypto/libtommath/ |
| H A D | bn_mp_grow.c | 27 if (a->alloc < size) { in mp_grow() 47 i = a->alloc; in mp_grow() 48 a->alloc = size; in mp_grow() 49 for (; i < a->alloc; i++) { in mp_grow()
|
| /minix3/external/bsd/llvm/dist/clang/test/Rewriter/ |
| H A D | instancetype-test.mm | 9 + (instancetype)alloc; class 42 Root *r1 = [[Root alloc] init]; 43 Subclass1 *sc1 = [[Subclass1 alloc] init]; 49 …Subclass1 *sc1 = [[Subclass1 alloc] initSubclass2]; // expected-warning{{'Subclass1' may not respo… 50 Subclass2 *sc2 = [[Subclass2 alloc] initSubclass2]; // okay 53 …[[[Subclass1 alloc] init] methodOnSubclass2]; // expected-warning{{'Subclass1' may not respond to … 54 [[[Subclass2 alloc] init] methodOnSubclass2]; 57 …[[Subclass1<Proto1> alloc] methodInProto2]; // expected-warning{{method '-methodInProto2' not foun… 58 [[Subclass1<Proto2> alloc] methodInProto2]; 69 // Subclass1<Proto1> *sc1proto1_2 = [[[sc1proto1 class] alloc] init];
|
| /minix3/external/bsd/llvm/dist/clang/test/SemaObjCXX/ |
| H A D | instancetype.mm | 8 + (instancetype)alloc; class 41 Root *r1 = [[Root alloc] init]; 42 Subclass1 *sc1 = [[Subclass1 alloc] init]; 48 …Subclass1 *sc1 = [[Subclass1 alloc] initSubclass2]; // expected-warning{{'Subclass1' may not respo… 49 Subclass2 *sc2 = [[Subclass2 alloc] initSubclass2]; // okay 52 …[[[Subclass1 alloc] init] methodOnSubclass2]; // expected-warning{{'Subclass1' may not respond to … 53 [[[Subclass2 alloc] init] methodOnSubclass2]; 58 …[[SC1Proto1 alloc] methodInProto2]; // expected-warning{{method '-methodInProto2' not found (retur… 59 [[SC1Proto2 alloc] methodInProto2]; 68 typeof([[Subclass1 alloc] init]) *ptr1 = (Subclass1 **)0; [all …]
|
| H A D | related-result-type-inference.mm | 8 + (id)alloc; class 21 - (id)alloc; method 50 __typeof__(([[NSString alloc] init])) *str = (NSString**)0; 52 __typeof__(([[NSString alloc] initWithCString:"blah"])) *str3 = (NSString**)0; 59 __typeof__(([[NSString new] alloc])) *id3 = (id*)0; 64 __typeof__(([[NSString alloc] initAsUnrelated])) *unrelated = (Unrelated**)0; 67 NSArray *arr = [[NSMutableArray alloc] init];
|
| /minix3/external/bsd/libevent/dist/ |
| H A D | evthread.c | 82 if (target->alloc) in evthread_set_lock_callbacks() 88 if (target->alloc) { in evthread_set_lock_callbacks() 92 target->alloc == cbs->alloc && in evthread_set_lock_callbacks() 103 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) { in evthread_set_lock_callbacks() 167 if (_original_lock_fns.alloc) { in debug_lock_alloc() 168 if (!(result->lock = _original_lock_fns.alloc( in debug_lock_alloc() 326 if (!enable_locks && _original_lock_fns.alloc == NULL) { in evthread_setup_global_lock_() 330 } else if (!enable_locks && _original_lock_fns.alloc != NULL) { in evthread_setup_global_lock_() 353 return _evthread_lock_fns.alloc(locktype); in evthread_setup_global_lock_() 361 lock->lock = _original_lock_fns.alloc( in evthread_setup_global_lock_() [all …]
|
| /minix3/crypto/external/bsd/heimdal/dist/kadmin/ |
| H A D | add-random-users.c | 47 unsigned n, alloc; in read_words() local 56 alloc = n = 0; in read_words() 61 if (n >= alloc) { in read_words() 62 alloc = max(alloc + 16, alloc * 2); in read_words() 63 w = erealloc (w, alloc * sizeof(char **)); in read_words()
|
| /minix3/external/bsd/libc++/dist/libcxx/test/containers/sequences/dynarray/dynarray.cons/ |
| H A D | alloc.pass.cpp | 39 void check_allocator ( const dynarray<T> &dyn, const Allocator &alloc ) { in check_allocator() argument 41 assert ( dyn[i].get_allocator() == alloc ); in check_allocator() 45 void test ( const std::initializer_list<T> &vals, const Allocator &alloc ) { in test() argument 48 dynA d1 ( vals, alloc ); in test() 51 check_allocator ( d1, alloc ); in test()
|
| /minix3/external/bsd/libc++/dist/libcxx/test/libcxx/experimental/containers/sequences/dynarray/dynarray.cons/ |
| H A D | alloc.pass.cpp | 39 void check_allocator ( const dynarray<T> &dyn, const Allocator &alloc ) { in check_allocator() argument 41 assert ( dyn[i].get_allocator() == alloc ); in check_allocator() 45 void test ( const std::initializer_list<T> &vals, const Allocator &alloc ) { in test() argument 48 dynA d1 ( vals, alloc ); in test() 51 check_allocator ( d1, alloc ); in test()
|
| /minix3/lib/libc/arch/ia64/gen/ |
| H A D | setjmp.S | 49 alloc loc0=ar.pfs,1,2,3,0 60 alloc r15=ar.pfs,1,0,0,0 // drop register frame 67 alloc loc0=ar.pfs,2,2,3,0 78 alloc r15=ar.pfs,2,0,0,0 // drop register frame
|