/external/clang/test/CodeGen/ |
D | pragma-weak.c | 3 // CHECK: @weakvar = weak global 5 // CHECK: @correct_linkage = weak global 10 // CHECK-DAG: @weakvar_alias = weak alias i32* @__weakvar_alias 11 // CHECK-DAG: @foo = weak alias void ()* @__foo 12 // CHECK-DAG: @foo2 = weak alias void ()* @__foo2 13 // CHECK-DAG: @stutter = weak alias void ()* @__stutter 14 // CHECK-DAG: @stutter2 = weak alias void ()* @__stutter2 15 // CHECK-DAG: @declfirst = weak alias void ()* @__declfirst 16 // CHECK-DAG: @declfirstattr = weak alias void ()* @__declfirstattr 17 // CHECK-DAG: @mix2 = weak alias 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/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/llvm/test/Linker/ |
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 | unnamed-addr1-b.ll | 12 define weak void @func-c() unnamed_addr { ret void } 13 define weak void @func-d() unnamed_addr { ret void } 14 define weak void @func-e() unnamed_addr { ret void } 24 define weak void @func-g() { ret void } 25 define weak void @func-h() { ret void } 26 define weak void @func-i() { ret void }
|
/external/clang/test/SemaObjC/ |
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 | 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 | 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 | 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/llvm/test/Linker/Inputs/ |
D | visibility.ll | 4 @v1 = weak hidden global i32 0 5 @v2 = weak protected global i32 0 6 @v3 = weak hidden global i32 0 10 @a1 = weak hidden alias i32* @v1 11 @a2 = weak protected alias i32* @v2 12 @a3 = weak hidden alias i32* @v3 15 define weak hidden void @f1() { 19 define weak protected void @f2() { 23 define weak hidden void @f3() {
|
/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/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/elfutils/src/tests/ |
D | run-dwflsyms.sh | 96 55: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0 97 56: NOTYPE WEAK data_start (0) 0x201030 103 62: NOTYPE WEAK __gmon_start__ (0) 0 112 71: NOTYPE WEAK _Jv_RegisterClasses (0) 0 114 73: NOTYPE WEAK _ITM_registerTMCloneTable (0) 0 115 74: FUNC WEAK __cxa_finalize@@GLIBC_2.2.5 (0) 0 175 55: NOTYPE WEAK _ITM_deregisterTMCloneTable (0) 0 176 56: NOTYPE WEAK data_start (0) 0x3000201030 182 62: NOTYPE WEAK __gmon_start__ (0) 0 191 71: NOTYPE WEAK _Jv_RegisterClasses (0) 0 [all …]
|
/external/bison/lib/glthread/ |
D | lock.h | 107 /* Use weak references to the POSIX threads library. */ 109 /* Weak references avoid dragging in external libraries if the other parts 124 # pragma weak pthread_mutex_init 125 # pragma weak pthread_mutex_lock 126 # pragma weak pthread_mutex_unlock 127 # pragma weak pthread_mutex_destroy 128 # pragma weak pthread_rwlock_init 129 # pragma weak pthread_rwlock_rdlock 130 # pragma weak pthread_rwlock_wrlock 131 # pragma weak pthread_rwlock_unlock [all …]
|
/external/llvm/test/CodeGen/Generic/ |
D | 2009-03-17-LSR-APInt.ll | 33 @_ZL20__gthrw_pthread_oncePiPFvvE = weak alias i32 (i32*, void ()*)* @pthread_once ; <i32 (i32*, v… 34 @_ZL27__gthrw_pthread_getspecificj = weak alias i8* (i32)* @pthread_getspecific ; <i8* (i32)*> [#u… 35 @_ZL27__gthrw_pthread_setspecificjPKv = weak alias i32 (i32, i8*)* @pthread_setspecific ; <i32 (i3… 36 @_ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = weak alias i32 (i64*, %struct.pthread… 37 @_ZL22__gthrw_pthread_cancelm = weak alias i32 (i64)* @pthread_cancel ; <i32 (i64)*> [#uses=0] 38 @_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @pt… 39 @_ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* … 40 @_ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @… 41 @_ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = weak alias i32 (%struct… 42 @_ZL26__gthrw_pthread_key_createPjPFvPvE = weak alias i32 (i32*, void (i8*)*)* @pthread_key_create … [all …]
|
/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/llvm/test/Assembler/ |
D | ConstantExprNoFold.ll | 29 ; Don't add an inbounds on @weak.gep, since @weak may be null. 30 ; CHECK: @weak.gep = global i32* getelementptr (i32, i32* @weak, i32 1) 31 @weak.gep = global i32* getelementptr (i32, i32* @weak, i32 1) 32 @weak = extern_weak global i32 34 ; An object with weak linkage cannot have it's identity determined at compile time. 37 @weakany = weak global i32 0
|
/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/Transforms/GVN/ |
D | 2009-03-10-PREOnVoid.ll | 20 @_ZL20__gthrw_pthread_oncePiPFvvE = weak alias i32 (i32*, void ()*)* @pthread_once ; <i32 (i32*, v… 21 @_ZL27__gthrw_pthread_getspecificj = weak alias i8* (i32)* @pthread_getspecific ; <i8* (i32)*> [#u… 22 @_ZL27__gthrw_pthread_setspecificjPKv = weak alias i32 (i32, i8*)* @pthread_setspecific ; <i32 (i3… 23 @_ZL22__gthrw_pthread_createPmPK16__pthread_attr_sPFPvS3_ES3_ = weak alias i32 (i32*, %struct.pthre… 24 @_ZL22__gthrw_pthread_cancelm = weak alias i32 (i32)* @pthread_cancel ; <i32 (i32)*> [#uses=0] 25 @_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @pt… 26 @_ZL29__gthrw_pthread_mutex_trylockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* … 27 @_ZL28__gthrw_pthread_mutex_unlockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*)* @… 28 @_ZL26__gthrw_pthread_mutex_initP15pthread_mutex_tPK19pthread_mutexattr_t = weak alias i32 (%struct… 29 @_ZL26__gthrw_pthread_key_createPjPFvPvE = weak alias i32 (i32*, void (i8*)*)* @pthread_key_create … [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | DESParameters.java | 13 throw new IllegalArgumentException("attempt to create weak DES key"); in DESParameters() 23 * Table of weak and semi-weak keys taken from Schneier pp281 29 /* weak keys */ 35 /* semi-weak keys */ 51 * DES has 16 weak keys. This method will check 52 * if the given DES key material is weak or semi-weak. 53 * Key material that is too short is regarded as weak. 58 * @return true if the given DES key material is weak or semi-weak,
|
/external/clang/test/Modules/Inputs/stress1/ |
D | merge00.h | 9 //#pragma weak pragma_weak01 // expected-warning {{weak identifier 'pragma_weak01' never declared}} 10 //#pragma weak pragma_weak04 // expected-warning {{weak identifier 'pragma_waek04' never declared}} 24 #pragma weak pragma_weak02 25 #pragma weak pragma_weak05
|