/external/clang/test/PCH/ |
H A D | ext_vector.h | 3 typedef __attribute__((ext_vector_type(2))) float float2; 4 typedef __attribute__((ext_vector_type(4))) float float4;
|
/external/clang/test/Parser/ |
H A D | attributes.c | 3 int __attribute__(()) x; 5 __inline void __attribute__((__always_inline__, __nodebug__)) 10 __attribute__(()) y; // expected-warning {{defaults to 'int'}} 13 int (__attribute__(()) *z)(long y); 16 void f1(__attribute__(()) int x); 18 int f2(y, __attribute__(()) x); // expected-error {{expected identifier}} 21 // int) because the __attribute__ is a declspec. 22 void f3(__attribute__(()) x, // expected-warning {{defaults to 'int'}} 25 void f4(__attribute__(())); // expected-error {{expected parameter declarator}} 28 // This is ok, the __attribute__ applie [all...] |
/external/clang/test/Sema/ |
H A D | attr-coldhot.c | 3 int foo() __attribute__((__hot__)); 4 int bar() __attribute__((__cold__)); 6 int var1 __attribute__((__cold__)); // expected-warning{{'__cold__' attribute only applies to functions}} 7 int var2 __attribute__((__hot__)); // expected-warning{{'__hot__' attribute only applies to functions}} 9 int qux() __attribute__((__hot__)) __attribute__((__cold__)); // expected-error{{'__hot__' and cold attributes are not compatible}} 10 int baz() __attribute__((__cold__)) __attribute__((__hot__)); // expected-error{{'__cold__' and hot attributes are not compatible}}
|
H A D | attr-unknown.c | 3 int x __attribute__((foobar)); // expected-warning {{unknown attribute 'foobar' ignored}} 4 void z() __attribute__((bogusattr)); // expected-warning {{unknown attribute 'bogusattr' ignored}}
|
H A D | weak-import-on-enum.c | 5 enum __attribute__((deprecated)) __attribute__((weak_import)) A {
|
H A D | attr-returns-twice.c | 3 int a __attribute__((returns_twice)); // expected-warning {{'returns_twice' attribute only applies to functions}} 5 __attribute__((returns_twice)) void t0(void) { 8 void t1() __attribute__((returns_twice)); 10 void t2() __attribute__((returns_twice(2))); // expected-error {{attribute takes no arguments}} 12 typedef void (*t3)(void) __attribute__((returns_twice)); // expected-warning {{'returns_twice' attribute only applies to functions}}
|
H A D | attr-used.c | 3 extern int l0 __attribute__((used)); // expected-warning {{used attribute ignored}} 4 __private_extern__ int l1 __attribute__((used)); // expected-warning {{used attribute ignored}} 6 struct __attribute__((used)) s { // expected-warning {{'used' attribute only applies to variables and functions}} 10 int a __attribute__((used)); 12 static void __attribute__((used)) f0(void) { 16 static int a __attribute__((used)); 17 int b __attribute__((used)); // expected-warning {{used attribute ignored}}
|
H A D | x86-attr-force-align-arg-pointer.c | 3 int a __attribute__((force_align_arg_pointer)); // expected-warning{{attribute only applies to functions}} 6 void b(void) __attribute__((force_align_arg_pointer)); 7 void __attribute__((force_align_arg_pointer)) c(void); 14 void __attribute__((force_align_arg_pointer)) d(void) {} 17 void (__attribute__((force_align_arg_pointer)) *p)(); 18 typedef void (__attribute__((__force_align_arg_pointer__)) *p2)(); 20 typedef void __attribute__((force_align_arg_pointer)) e(void);
|
H A D | sentinel-attribute.c | 2 int x __attribute__((sentinel)); //expected-warning{{'sentinel' attribute only applies to functions, methods and blocks}} 4 void f1(int a, ...) __attribute__ ((sentinel)); 5 void f2(int a, ...) __attribute__ ((sentinel(1))); 7 void f3(int a, ...) __attribute__ ((sentinel("hello"))); //expected-error{{'sentinel' attribute requires parameter 1 to be an integer constant}} 8 void f4(int a, ...) __attribute__ ((sentinel(1, 2, 3))); //expected-error{{attribute takes no more than 2 arguments}} 9 void f4(int a, ...) __attribute__ ((sentinel(-1))); //expected-error{{parameter 1 less than zero}} 10 void f4(int a, ...) __attribute__ ((sentinel(0, 2))); // expected-error{{parameter 2 not 0 or 1}} 12 void f5(int a) __attribute__ ((sentinel)); //expected-warning{{'sentinel' attribute only supported for variadic functions}} 15 void f6() __attribute__((__sentinel__)); // expected-warning {{'sentinel' attribute requires named arguments}}
|
H A D | alloc_size.c | 3 void* my_malloc(unsigned char) __attribute__((alloc_size(1))); 4 void* my_calloc(unsigned char, short) __attribute__((alloc_size(1,2))); 5 void* my_realloc(void*, unsigned) __attribute__((alloc_size(2))); 8 void* fn1(int) __attribute__((alloc_size("xpto"))); // expected-error{{attribute requires integer constant}} 10 void* fn2(void*) __attribute__((alloc_size(1))); // expected-error{{attribute requires integer constant}} 12 void* fn3(unsigned) __attribute__((alloc_size(0))); // expected-error{{attribute parameter 1 is out of bounds}} 13 void* fn4(unsigned) __attribute__((alloc_size(2))); // expected-error{{attribute parameter 1 is out of bounds}} 15 void fn5(unsigned) __attribute__((alloc_size(1))); // expected-warning{{only applies to functions that return a pointer}} 16 char fn6(unsigned) __attribute__((alloc_size(1))); // expected-warning{{only applies to functions that return a pointer}} 18 void* fn7(unsigned) __attribute__((alloc_siz [all...] |
/external/clang/test/SemaCXX/ |
H A D | attr-weak.cpp | 3 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 declaration cannot have internal linkage}} 15 static void test5() __attribute__((weak)); // no error 20 static void test6() __attribute__((weak)); // expected-error {{weak declaration cannot have internal linkage}} 25 void test7() __attribute__((weak)) {}
|
/external/clang/test/CodeGen/ |
H A D | global-decls.c | 4 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; }
|
H A D | annotations-var.c | 17 int foo(int v __attribute__((annotate("param_ann_2"))) __attribute__((annotate("param_ann_3")))); 18 int foo(int v __attribute__((annotate("param_ann_0"))) __attribute__((annotate("param_ann_1")))) { argument 33 int localvar __attribute__((annotate("localvar_ann_0"))) __attribute__((annotate("localvar_ann_1"))) = 3; 43 int undefvar __attribute__((annotate("undefvar_ann_0")));
|
H A D | attr-weak-import.c | 4 extern int A __attribute__((weak_import)); 7 extern int B __attribute__((weak_import)); 11 extern int C __attribute__((weak_import)); 13 extern int D __attribute__((weak_import)); 14 extern int D __attribute__((weak_import)); 17 extern int E __attribute__((weak_import)); 19 extern int E __attribute__((weak_import));
|
H A D | 2006-07-31-PR854.c | 9 __attribute__((section("__ksymtab_strings"))) = "loops_per_jiffy"; 11 __attribute__((__used__)) __attribute__((section("__ksymtab"))) = { (unsigned
|
H A D | vector-alignment.c | 6 double __attribute__((vector_size(16))) v1; 8 double __attribute__((vector_size(32))) v2; 13 double __attribute__((vector_size(64))) v3; 15 double __attribute__((vector_size(1024))) v4; 19 double __attribute__((vector_size(16), aligned(16))) v5; 21 double __attribute__((vector_size(16), aligned(64))) v6; 23 double __attribute__((vector_size(32), aligned(16))) v7; 25 double __attribute__((vector_size(32), aligned(64))) v8; 29 double __attribute__((vector_size(24))) v9; 31 double __attribute__((vector_siz [all...] |
H A D | 2008-11-02-WeakAlias.c | 5 void init_IRQ(void) __attribute__((weak, alias("native_init_IRQ")));
|
H A D | 2009-06-14-HighlyAligned.c | 4 static int highly_aligned __attribute__((aligned(4096)));
|
H A D | address-space-cast.c | 3 volatile unsigned char* const __attribute__((address_space(1))) serial_ctrl = 0x02;
|
H A D | attr-noinline.c | 4 void t1() __attribute__((noinline));
|
H A D | attribute_constructor.c | 3 void foo() __attribute__((constructor));
|
H A D | func-aligned.c | 4 void foo() __attribute__((aligned (64)));
|
/external/bison/lib/ |
H A D | libiberty.h | 26 # ifndef __attribute__ 28 # define __attribute__(x) macro 32 # define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
|
/external/clang/test/Index/ |
H A D | annotate-attribute.cpp | 5 __attribute__((annotate("spiffy_method"))) void aMethod(); 7 public __attribute__((annotate("works"))): 10 private __attribute__((annotate("investigations"))):
|
/external/clang/test/CodeGenCXX/ |
H A D | 2008-01-12-VecInit.cpp | 4 typedef int __attribute__((vector_size(16))) v;
|