Searched refs:weak (Results 1 - 25 of 59) sorted by relevance

123

/external/clang/test/PCH/
H A Dpragma-weak.h1 // Header for PCH test pragma-weak.c
3 #pragma weak weakvar
10 #pragma weak undeclaredvar
/external/clang/test/Parser/
H A 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'}}*/ #pragm
[all...]
/external/clang/test/Modules/Inputs/
H A Dlookup_left.hpp3 #pragma weak weak_identifier // expected-warning{{weak identifier 'weak_identifier' never declared}}
/external/clang/test/SemaCXX/
H A Dattr-weak.cpp3 static int test0 __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
4 static void test1() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
6 namespace test2 __attribute__((weak)) { // expected-warning {{'weak' attribute only applies to variables and functions}}
10 int test3 __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
11 void test4() __attribute__((weak)); // expected-error {{weak declaratio
[all...]
/external/llvm/test/MC/ELF/
H A Dweak.s3 // Test that this produces a weak undefined symbol.
5 .weak foo
9 .weak bar
H A Dweak-relocation.s3 // Test that weak symbols always produce relocations
5 .weak foo
H A Dalias-reloc.s14 .weak foo2
16 .weak bar2
/external/clang/test/CodeGen/
H A Dglobal-decls.c4 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; }
H A D2008-11-02-WeakAlias.c4 // CHECK: weak
5 void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));
H A Dpragma-weak.c3 // CHECK: @weakvar = weak global
5 // CHECK: @correct_linkage = weak global
10 // CHECK: @both3 = alias weak void ()* @__both3
11 // CHECK: @a3 = alias weak void ()* @__a3
12 // CHECK: @weakvar_alias = alias weak i32* @__weakvar_alias
13 // CHECK: @foo = alias weak void ()* @__foo
14 // CHECK: @foo2 = alias weak void ()* @__foo2
15 // CHECK: @stutter = alias weak void ()* @__stutter
16 // CHECK: @stutter2 = alias weak void ()* @__stutter2
17 // CHECK: @declfirst = alias weak voi
[all...]
H A D2008-07-29-override-alias-decl.c8 int f() __attribute__((weak, alias("x")));
H A Dunwind-attr.c19 // <rdar://problem/8283071>: not for weak functions
20 // CHECK: define weak [[INT:i.*]] @test2() {
21 // CHECK-NOEXC: define weak [[INT:i.*]] @test2() nounwind {
22 __attribute__((weak)) int test2(void) {
H A Dweak-incomplete.c4 void __attribute__((weak)) foo1(struct S);
H A Dweak_constant.c4 const int x __attribute((weak)) = 123;
H A DPR2743-reference-missing-static.c15 void e2() __attribute__((weak));
H A Dextern-weak.c8 void foo() __attribute__((weak));
H A Dglobal-init.c10 // This should get normal weak linkage.
11 int c __attribute__((weak))= 0;
12 // CHECK: @c = weak global i32 0
18 const int d __attribute__((weak))= 0;
H A Dattributes.c4 // CHECK: @t5 = weak global i32 2
5 int t5 __attribute__((weak)) = 2;
29 // CHECK: @t9 = alias weak bitcast (void ()* @__t8 to void (...)*)
31 void t9() __attribute__((weak, alias("__t8")));
47 // CHECK: define weak void @t3() nounwind {
48 void t3() __attribute__((weak));
H A Dattr-weakref.c47 void test6_f(void) __attribute__((weak));
H A Dattr-weakref2.c47 extern int test6_f __attribute__((weak));
/external/clang/test/Sema/
H A 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 variables and functions}}
14 static int x __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}}
H A Dattr-decl-after-definition.c13 int bar __attribute__((weak));
15 extern int bar __attribute__((weak));
17 int bar __attribute__((weak)); // expected-warning {{must precede definition}}
/external/valgrind/unittest/
H A Dtest_utils.cc30 const char *ThreadSanitizerQuery(const char *query) __attribute__((weak));
/external/kernel-headers/original/asm-generic/
H A Dsections.h11 extern char _sextratext[] __attribute__((weak));
12 extern char _eextratext[] __attribute__((weak));
/external/valgrind/main/drd/tests/
H A Dunified_annotations.h30 void __attribute__((weak,noinline))
36 void __attribute__((weak,noinline))

Completed in 336 milliseconds

123