Home
last modified time | relevance | path

Searched refs:weak (Results 1 – 25 of 573) sorted by relevance

12345678910>>...23

/external/clang/test/CodeGen/
Dpragma-weak.c26 #pragma weak weakvar
29 #pragma weak weakdef
32 #pragma weak param // expected-warning {{weak identifier 'param' never declared}}
33 #pragma weak correct_linkage
38 #pragma weak weakvar_alias = __weakvar_alias
41 #pragma weak foo = __foo
47 #pragma weak foo2 = __foo2
53 #pragma weak unused // expected-warning {{weak identifier 'unused' never declared}}
54 #pragma weak unused_alias = __unused_alias // expected-warning {{weak identifier '__unused_alias' …
56 #pragma weak td // expected-warning {{'weak' attribute only applies to variables and functions}}
[all …]
Dglobal-decls.c4 extern int g0_ext __attribute__((weak));
6 extern int __attribute__((weak)) g1_ext (void);
9 int g0_common __attribute__((weak));
12 int g0_def __attribute__((weak)) = 52;
14 int __attribute__((weak)) g1_def (void) { return 0; } in g1_def()
/external/clang/test/Parser/
Dpragma-weak.c7 /* 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/Driver/
Dobjc-weak.m3 …86_64-apple-macosx -mmacosx-version-min=10.7 -S -### %s -fobjc-arc -fobjc-weak 2>&1 | FileCheck %s…
4 … x86_64-apple-macosx -mmacosx-version-min=10.7 -S -### %s -fno-objc-weak -fobjc-weak -fobjc-arc 2…
6 // ARC-WEAK: -fobjc-weak
8 …64-apple-macosx -mmacosx-version-min=10.7 -S -### %s -fobjc-arc -fno-objc-weak 2>&1 | FileCheck %s…
9 …et x86_64-apple-macosx -mmacosx-version-min=10.7 -S -### %s -fobjc-weak -fno-objc-weak -fobjc-arc …
11 // ARC-NO-WEAK: -fno-objc-weak
13 …86_64-apple-macosx -mmacosx-version-min=10.5 -S -### %s -fobjc-arc -fobjc-weak 2>&1 | FileCheck %s…
14 … x86_64-apple-macosx -mmacosx-version-min=10.5 -S -### %s -fno-objc-weak -fobjc-weak -fobjc-arc 2…
15 // ARC-WEAK-UNSUPPORTED: error: -fobjc-weak is not supported on the current deployment target
17 // RUN: %clang -target x86_64-apple-macosx -mmacosx-version-min=10.7 -S -### %s -fobjc-weak 2>&1 | …
[all …]
/external/clang/test/SemaCXX/
Dattr-weak.cpp3 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/
Dunnamed-addr1-a.ll9 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 {
26 @global-f = weak global i32 42
29 @alias-a = weak global i32 42
31 @alias-b = weak unnamed_addr global i32 42
40 ; CHECK-DAG: define weak void @func-c() {
41 define weak void @func-d() { ret void }
42 ; CHECK-DAG: define weak void @func-d() {
[all …]
Dunnamed-addr1-b.ll12 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/llvm/test/CodeGen/XCore/
Dlinkage.ll3 ; 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/bison/lib/glthread/
Dlock.h124 # 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
132 # pragma weak pthread_rwlock_destroy
133 # pragma weak pthread_once
[all …]
/external/llvm/test/Linker/Inputs/
Dvisibility.ll4 @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, i32* @v1
11 @a2 = weak protected alias i32, i32* @v2
12 @a3 = weak hidden alias i32, i32* @v3
15 define weak hidden void @f1() {
19 define weak protected void @f2() {
23 define weak hidden void @f3() {
/external/clang/test/SemaObjC/
Dweak-property.m1 // 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…
Darc-unavailable-for-weakref.m1 // 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 …]
Darc-repeated-weak.mm1 …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 …]
Darc-property-decl-attrs.m1 // RUN: %clang_cc1 -triple x86_64-apple-darwin11 -fobjc-runtime-has-weak -fsyntax-only -fobjc-arc -…
72 @property (readonly, weak) id fee;
89 @property(nonatomic, weak) id delegate; // Do not warn, nullable is inferred.
90 @property(nonatomic, weak, readonly) id ROdelegate; // Do not warn, nullable is inferred.
91 @property(nonatomic, weak, nonnull) id NonNulldelete; // expected-error {{property attributes 'nonn…
92 @property(nonatomic, weak, nullable) id Nullabledelete; // do not warn
103 @property(nonatomic, weak) id ddd; // Do not warn, nullable is inferred.
104 @property(nonatomic, weak, nonnull) id delegate; // expected-error {{property attributes 'nonnull' …
105 @property(nonatomic, weak, nonnull, readonly) id ROdelegate; // expected-error {{property attribute…
/external/clang/test/CodeGenCXX/
Dpragma-weak.cpp3 #pragma weak zex
10 #pragma weak foo
15 #pragma weak zed
19 #pragma weak bah
23 #pragma weak baz
27 #pragma weak _Z3baxv
/external/clang/test/Sema/
Dattr-weak.c3 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/llvm/test/CodeGen/X86/
D2010-09-16-asmcrash.ll4 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/vboot_reference/firmware/2lib/
D2stub.c14 __attribute__((weak))
24 __attribute__((weak))
30 __attribute__((weak))
40 __attribute__((weak))
47 __attribute__((weak))
54 __attribute__((weak))
/external/llvm/test/CodeGen/NVPTX/
Dweak-linkage.ll3 ; CHECK: // .weak foo
4 ; CHECK: .weak .func foo
5 define weak void @foo() {
9 ; CHECK: // .weak baz
10 ; CHECK: .weak .func baz
/external/clang/test/ARCMT/
Dassign-prop-with-arc-runtime.m.result1 // 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/lib/Fuzzer/
DFuzzerDFSan.h29 __attribute__((weak))
31 __attribute__((weak))
33 __attribute__((weak))
35 __attribute__((weak))
37 __attribute__((weak))
/external/llvm/test/CodeGen/Generic/
D2009-03-17-LSR-APInt.ll33 @_ZL20__gthrw_pthread_oncePiPFvvE = weak alias i32 (i32*, void ()*), i32 (i32*, void ()*)* @pthread…
34 @_ZL27__gthrw_pthread_getspecificj = weak alias i8* (i32), i8* (i32)* @pthread_getspecific ; <i8* …
35 @_ZL27__gthrw_pthread_setspecificjPKv = weak alias i32 (i32, i8*), i32 (i32, i8*)* @pthread_setspec…
36 @_ZL22__gthrw_pthread_createPmPK14pthread_attr_tPFPvS3_ES3_ = weak alias i32 (i64*, %struct.pthread…
37 @_ZL22__gthrw_pthread_cancelm = weak alias i32 (i64), i32 (i64)* @pthread_cancel ; <i32 (i64)*> [#…
38 @_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*), i32…
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*), i…
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*)*), i32 (i32*, void (i8*…
[all …]
/external/clang/test/SemaObjCXX/
Darc-unavailable-for-weakref.mm1 // 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/Assembler/
DConstantExprNoFold.ll29 ; 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/llvm/test/Transforms/GVN/
D2009-03-10-PREOnVoid.ll20 @_ZL20__gthrw_pthread_oncePiPFvvE = weak alias i32 (i32*, void ()*), i32 (i32*, void ()*)* @pthread…
21 @_ZL27__gthrw_pthread_getspecificj = weak alias i8* (i32), i8* (i32)* @pthread_getspecific ; <i8* …
22 @_ZL27__gthrw_pthread_setspecificjPKv = weak alias i32 (i32, i8*), i32 (i32, i8*)* @pthread_setspec…
23 @_ZL22__gthrw_pthread_createPmPK16__pthread_attr_sPFPvS3_ES3_ = weak alias i32 (i32*, %struct.pthre…
24 @_ZL22__gthrw_pthread_cancelm = weak alias i32 (i32), i32 (i32)* @pthread_cancel ; <i32 (i32)*> [#…
25 @_ZL26__gthrw_pthread_mutex_lockP15pthread_mutex_t = weak alias i32 (%struct.pthread_mutex_t*), i32…
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*), i…
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*)*), i32 (i32*, void (i8*…
[all …]

12345678910>>...23