/external/clang/test/CodeGen/ |
D | pragma-weak.c | 3 // CHECK: @weakvar = weak global 5 // CHECK: @correct_linkage = weak global 10 // CHECK-DAG: @weakvar_alias = alias weak i32* @__weakvar_alias 11 // CHECK-DAG: @foo = alias weak void ()* @__foo 12 // CHECK-DAG: @foo2 = alias weak void ()* @__foo2 13 // CHECK-DAG: @stutter = alias weak void ()* @__stutter 14 // CHECK-DAG: @stutter2 = alias weak void ()* @__stutter2 15 // CHECK-DAG: @declfirst = alias weak void ()* @__declfirst 16 // CHECK-DAG: @declfirstattr = alias weak void ()* @__declfirstattr 17 // CHECK-DAG: @mix2 = alias weak void ()* @__mix2 [all …]
|
D | global-decls.c | 4 extern int g0_ext __attribute__((weak)); 6 extern int __attribute__((weak)) g1_ext (void); 8 // RUN: grep '@g0_common = weak global i32' %t 9 int g0_common __attribute__((weak)); 11 // RUN: grep '@g0_def = weak global i32' %t 12 int g0_def __attribute__((weak)) = 52; 13 // RUN: grep 'define weak i32 @g1_def()' %t 14 int __attribute__((weak)) g1_def (void) { return 0; } in g1_def()
|
/external/llvm/test/Linker/ |
D | 2011-08-22-ResolveAlias2.ll | 13 @_ZL20__gthrw_pthread_oncePiPFvvE = alias weak i32 (i32*, void ()*)* @pthread_once 14 @_ZL27__gthrw_pthread_getspecificj = alias weak i8* (i32)* @pthread_getspecific 15 @_ZL27__gthrw_pthread_setspecificjPKv = alias weak i32 (i32, i8*)* @pthread_setspecific 16 @_ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = alias weak i32 (i64*, %union.pthread_… 17 @_ZL20__gthrw_pthread_joinmPPv = alias weak i32 (i64, i8**)* @pthread_join 18 @_ZL21__gthrw_pthread_equalmm = alias weak i32 (i64, i64)* @pthread_equal 19 @_ZL20__gthrw_pthread_selfv = alias weak i64 ()* @pthread_self 20 @_ZL22__gthrw_pthread_detachm = alias weak i32 (i64)* @pthread_detach 21 @_ZL22__gthrw_pthread_cancelm = alias weak i32 (i64)* @pthread_cancel 22 @_ZL19__gthrw_sched_yieldv = alias weak i32 ()* @sched_yield [all …]
|
D | 2011-08-22-ResolveAlias.ll | 10 @_ZL20__gthrw_pthread_oncePiPFvvE = alias weak i32 (i32*, void ()*)* @pthread_once 11 @_ZL27__gthrw_pthread_getspecificj = alias weak i8* (i32)* @pthread_getspecific 12 @_ZL27__gthrw_pthread_setspecificjPKv = alias weak i32 (i32, i8*)* @pthread_setspecific 13 @_ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = alias weak i32 (i64*, %union.pthread_… 14 @_ZL20__gthrw_pthread_joinmPPv = alias weak i32 (i64, i8**)* @pthread_join 15 @_ZL21__gthrw_pthread_equalmm = alias weak i32 (i64, i64)* @pthread_equal 16 @_ZL20__gthrw_pthread_selfv = alias weak i64 ()* @pthread_self 17 @_ZL22__gthrw_pthread_detachm = alias weak i32 (i64)* @pthread_detach 18 @_ZL22__gthrw_pthread_cancelm = alias weak i32 (i64)* @pthread_cancel 19 @_ZL19__gthrw_sched_yieldv = alias weak i32 ()* @sched_yield [all …]
|
D | unnamed-addr1-a.ll | 9 define weak void @func-a() { ret void } 10 ; CHECK-DAG: define weak void @func-a() { 11 define weak void @func-b() unnamed_addr { ret void } 12 ; CHECK-DAG: define weak void @func-b() unnamed_addr { 21 @global-f = weak global i32 42 24 @alias-a = weak global i32 42 26 @alias-b = weak unnamed_addr global i32 42 30 ; CHECK-DAG: define weak void @func-c() { 31 define weak void @func-d() { ret void } 32 ; CHECK-DAG: define weak void @func-d() { [all …]
|
D | visibility2.ll | 6 @v1 = weak hidden global i32 0 7 @v2 = weak protected global i32 0 8 @v3 = weak hidden global i32 0 11 @a1 = hidden alias weak i32* @v1 12 @a2 = protected alias weak i32* @v2 13 @a3 = hidden alias weak i32* @v3 16 define weak hidden void @f1() { 20 define weak protected void @f2() { 24 define weak hidden void @f3() {
|
/external/clang/test/Parser/ |
D | pragma-weak.c | 7 /* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak 8 #pragma weak x 11 /* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak z = = 12 /* expected-warning {{expected identifier in '#pragma weak'}}*/ #pragma weak z = 13 /* expected-warning {{weak identifier 'y' never declared}} */ #pragma weak z = y 16 /* expected-warning {{extra tokens at end of '#pragma weak'}}*/ #pragma weak a b 17 /* expected-warning {{extra tokens at end of '#pragma weak'}}*/ #pragma weak a = x c 26 #pragma weak t in pragma_is_not_a_statement() 28 #pragma weak t in pragma_is_not_a_statement() 33 #pragma weak t in pragma_is_not_a_statement() [all …]
|
/external/clang/test/SemaCXX/ |
D | attr-weak.cpp | 3 static int test0 __attribute__((weak)); // expected-error {{weak declaration cannot have internal l… 4 static void test1() __attribute__((weak)); // expected-error {{weak declaration cannot have interna… 6 namespace test2 __attribute__((weak)) { // expected-warning {{'weak' attribute only applies to vari… 10 …int test3 __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage… 11 …void test4() __attribute__((weak)); // expected-error {{weak declaration cannot have internal link… 15 static void test5() __attribute__((weak)); // no error 20 …static void test6() __attribute__((weak)); // expected-error {{weak declaration cannot have intern… 29 void test7() __attribute__((weak)) {} in test7() 30 static int var __attribute__((weak)); 38 class __attribute__((weak)) Test8 {}; // OK [all …]
|
/external/clang/test/SemaObjC/ |
D | weak-receiver-warn.m | 1 …%clang_cc1 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -fblocks -Wno-objc-root-class -Wreceiv… 12 …[x addBlock: ^{ [weakx actNow]; }]; // expected-warning {{weak receiver may be unpredictably set t… 13 …[x setBlock: ^{ [weakx actNow]; }]; // expected-warning {{weak receiver may be unpredictably set t… 14 …x.block = ^{ [weakx actNow]; }; // expected-warning {{weak receiver may be unpredictably set to ni… 16 …[weakx addBlock: ^{ [x actNow]; }]; // expected-warning {{weak receiver may be unpredictably set t… 17 …[weakx setBlock: ^{ [x actNow]; }]; // expected-warning {{weak receiver may be unpredictably set t… 18 …weakx.block = ^{ [x actNow]; }; // expected-warning {{weak receiver may be unpredictably set t… 27 @property (weak, atomic) id weak_atomic_prop; // expected-note {{property declared here}} 39 …[self.weak_prop Meth]; // expected-warning {{weak property may be unpredictably set to nil}} expec… 42 …[self.weak_atomic_prop Meth]; // expected-warning {{weak property may be unpredictably set to nil… [all …]
|
D | arc-repeated-weak.mm | 1 …1 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -fblocks -Wno-objc-root-class -std=c++11 -Warc-… 8 @property(weak) Test *weakProp; 22 …use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times in this … 57 use(a.weakProp); // expected-warning{{weak property 'weakProp' is accessed multiple times}} 66 …use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple… 71 …use(a.strongProp.weakProp); // expected-warning{{weak property 'weakProp' may be accessed multiple… 76 …use(a.implicitProp); // expected-warning{{weak implicit property 'implicitProp' is accessed multip… 81 …use(Test.weakProp); // expected-warning{{weak implicit property 'weakProp' is accessed multiple ti… 92 …use(a->weakIvar); // expected-warning{{weak instance variable 'weakIvar' is accessed multiple time… 98 use(a); // expected-warning{{weak variable 'a' is accessed multiple times}} [all …]
|
D | weak-property.m | 1 // RUN: %clang_cc1 -fsyntax-only -fobjc-runtime-has-weak -fobjc-arc -verify -Wno-objc-root-class %s 9 @property (weak) id value1; 13 @property (weak, assign) id v1; // expected-error {{property attributes 'assign' and 'weak' are mu… 14 @property (weak, copy) id v2; // expected-error {{property attributes 'copy' and 'weak' are mutuall… 15 @property (weak, retain) id v3; // expected-error {{property attributes 'retain' and 'weak' are mut… 16 @property (weak, assign) id v4; // expected-error {{property attributes 'assign' and 'weak' are mu…
|
D | arc-unavailable-for-weakref.m | 1 // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fsyntax-only -fobjc-arc -… 17 …ns1 = (__weak sub *)obj; // expected-error {{assignment of a weak-unavailable object to a __weak o… 31 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}} 33 …__weak id weak2 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak… 34 …return (__weak id)strong1; // expected-error {{cast of weak-unavailable object of type 'NOWEAK *' … 44 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}} 46 …__weak id<P> weak2 = strong1; // expected-error {{assignment of a weak-unavailable object to a __w… 47 …return (__weak id<P>)strong1; // expected-error {{cast of weak-unavailable object of type 'NOWEAK<… 59 @property (weak) NSFont *font; // expected-error {{synthesizing __weak instance variable of type 'N… 68 @property (weak) NSFont *font; // expected-error {{synthesizing __weak instance variable of type 'N… [all …]
|
D | attr-objc-gc.m | 2 static id __attribute((objc_gc(weak))) a; 10 static int __attribute__((objc_gc(weak))) g; // expected-warning {{'objc_gc' only applies to pointe… 15 #define WEAK __weak macro 16 static WEAK int h; // expected-warning {{'objc_gc' only applies to pointer types; type here is 'int… 23 id __attribute((objc_gc(weak))) *weak) { 28 opaque = weak; 29 weak = opaque;
|
/external/llvm/test/CodeGen/XCore/ |
D | linkage.ll | 3 ; CHECK: .weak fd 4 define weak void @fd() { 23 ; CHECK: .weak array.globound 25 ; CHECK: .weak array 26 @array = weak global [2 x i32] zeroinitializer 30 ; CHECK: .weak ac.globound 32 ; CHECK: .weak ac 36 ; CHECK: .weak gd 37 @gd = weak global i32 0 40 ; CHECK: .weak gc [all …]
|
/external/skia/include/core/ |
D | SkWeakRefCnt.h | 25 In addition to strong ownership, an owner may instead obtain a weak 27 call to weak_unref(). To obtain a strong reference from a weak reference, 30 affect the original weak reference, weak_unref() must still be called. When 31 the weak reference count goes to zero, the object is deleted. While the 32 weak reference count is positive and the strong reference count is zero the 36 Note that a strong reference implicitly implies a weak reference. As a 57 The strong references collectively hold one weak reference. When the in SK_DECLARE_INST_COUNT() 58 strong reference count goes to zero, the collectively held weak in SK_DECLARE_INST_COUNT() 63 /** Destruct, asserting that the weak reference count is 1. 72 /** Return the weak reference count. [all …]
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkWeakRefCnt.h | 25 In addition to strong ownership, an owner may instead obtain a weak 27 call to weak_unref(). To obtain a strong reference from a weak reference, 30 affect the original weak reference, weak_unref() must still be called. When 31 the weak reference count goes to zero, the object is deleted. While the 32 weak reference count is positive and the strong reference count is zero the 36 Note that a strong reference implicitly implies a weak reference. As a 57 The strong references collectively hold one weak reference. When the in SK_DECLARE_INST_COUNT() 58 strong reference count goes to zero, the collectively held weak in SK_DECLARE_INST_COUNT() 63 /** Destruct, asserting that the weak reference count is 1. 72 /** Return the weak reference count. [all …]
|
/external/clang/test/Sema/ |
D | attr-weak.c | 3 extern int g0 __attribute__((weak)); 5 int g2 __attribute__((weak)); 11 struct __attribute__((weak)) s0 {}; // expected-warning {{'weak' attribute only applies to variable… 14 static int x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linka… 21 extern int pr14946_x __attribute__((weak)); // expected-error {{weak declaration cannot have inter… 24 void pr14946_f() __attribute__((weak)); // expected-error {{weak declaration cannot have internal l…
|
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/ |
D | Android.mk | 17 …xternal/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/And… 19 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/default 23 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/weak_ptr 27 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/shared_ptr_Y 31 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/weak_ptr_Y
|
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/ |
D | Android.mk | 17 …xternal/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/Andro… 19 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/lock 23 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/owner_before_… 27 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/expired 31 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.obs/owner_before_…
|
/external/clang/test/CodeGenCXX/ |
D | pragma-weak.cpp | 3 #pragma weak zex 5 // GCC produces a weak symbol for this because it matches mangled names. 10 #pragma weak foo 15 #pragma weak zed 19 #pragma weak bah 23 #pragma weak baz 25 // CHECK-LABEL: define weak void @baz( 27 #pragma weak _Z3baxv 29 // GCC produces a weak symbol for this one, but it doesn't look like a good
|
/external/llvm/test/CodeGen/X86/ |
D | 2010-09-16-asmcrash.ll | 4 module asm ".weak sem_close" 6 module asm ".weak sem_destroy" 8 module asm ".weak sem_getvalue" 10 module asm ".weak sem_init" 12 module asm ".weak sem_open" 14 module asm ".weak sem_post" 16 module asm ".weak sem_timedwait" 18 module asm ".weak sem_trywait" 20 module asm ".weak sem_unlink" 22 module asm ".weak sem_wait"
|
/external/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/ |
D | Android.mk | 17 …xternal/libcxx/test/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/An… 19 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/weak_ptr 23 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/shared_ptr… 27 test_name := utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.assign/weak_ptr_Y
|
/external/clang/test/ARCMT/ |
D | assign-prop-with-arc-runtime.m.result | 1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fsyntax-only -fobjc-arc -fobjc-runtime-has-weak -… 25 @property (weak, readonly) Foo *x; 26 @property (weak) Foo *w; 27 @property (weak) Foo *q1, *q2; 37 @property (weak) Foo *no_user_ivar1; 38 @property (weak, readonly) Foo *no_user_ivar2; 61 @property (weak, readonly) TestExt *x2; 66 @property (weak, readwrite) TestExt *x2;
|
/external/clang/test/SemaObjCXX/ |
D | arc-unavailable-for-weakref.mm | 1 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fsyntax-… 17 …ns1 = (__weak sub *)obj; // expected-error {{assignment of a weak-unavailable object to a __weak o… 31 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}} 33 …__weak id weak2 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak… 34 …return (__weak id)strong1; // expected-error {{cast of weak-unavailable object of type 'NOWEAK *' … 44 weak1 = strong1; // expected-error {{assignment of a weak-unavailable object to a __weak object}} 46 …__weak id<P> weak2 = strong1; // expected-error {{assignment of a weak-unavailable object to a __w… 47 …return (__weak id<P, P1>)strong1; // expected-error {{cast of weak-unavailable object of type 'NOW…
|
/external/llvm/test/CodeGen/Generic/ |
D | 2009-03-17-LSR-APInt.ll | 33 @_ZL20__gthrw_pthread_oncePiPFvvE = alias weak i32 (i32*, void ()*)* @pthread_once ; <i32 (i32*, v… 34 @_ZL27__gthrw_pthread_getspecificj = alias weak i8* (i32)* @pthread_getspecific ; <i8* (i32)*> [#u… 35 @_ZL27__gthrw_pthread_setspecificjPKv = alias weak i32 (i32, i8*)* @pthread_setspecific ; <i32 (i3… 36 @_ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = alias weak i32 (i64*, %struct.pthread… 37 @_ZL22__gthrw_pthread_cancelm = alias weak i32 (i64)* @pthread_cancel ; <i32 (i64)*> [#uses=0] 38 @_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* @pt… 39 @_ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* … 40 @_ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = alias weak i32 (%struct.pthread_mutex_t*)* @… 41 @_ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = alias weak i32 (%struct… 42 @_ZL26__gthrw_pthread_key_createPjPFvPvE = alias weak i32 (i32*, void (i8*)*)* @pthread_key_create … [all …]
|