/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.noreturn/ |
D | p1.cpp | 3 [[noreturn]] void a() { in a() 6 void a2 [[noreturn]] () { in a2() 10 [[noreturn, noreturn]] void b() { throw 0; } // expected-error {{attribute 'noreturn' cannot appear… in b() 11 [[noreturn]] [[noreturn]] void b2() { throw 0; } // ok in b2() 13 [[noreturn()]] void c(); // expected-error {{attribute 'noreturn' cannot have an argument list}} 15 void d() [[noreturn]]; // expected-error {{'noreturn' attribute cannot be applied to types}} 16 int d2 [[noreturn]]; // expected-error {{'noreturn' attribute only applies to functions}} 18 [[noreturn]] int e() { b2(); } // ok in e() 21 [[noreturn]] int f(); // expected-error {{function declared '[[noreturn]]' after its first declarat… 24 [[noreturn]] int g(); [all …]
|
/external/clang/test/Parser/ |
D | objcxx11-attributes.mm | 11 void f(X *noreturn) { 13 int a[ [noreturn getSize] ]; 16 int b[ [noreturn] ]; // expected-error {{'noreturn' attribute only applies to functions}} 18 int c[ [noreturn getSize] + 1 ]; 21 …int d[ [noreturn] { return 3; } () ]; // expected-error {{expected ']'}} expected-error {{'noretur… 25 [ [ int(), noreturn getSelf ] getSize ]; // expected-warning {{unused}} 28 [ [noreturn] { return noreturn; } () setSize: 4 ]; 29 [ [bitand] { return noreturn; } () setSize: 5 ]; 34 [[int(), noreturn]]; // expected-warning {{unknown attribute 'int' ignored}} \ 35 // expected-error {{'noreturn' attribute cannot be applied to a statement}} [all …]
|
D | cxx0x-attributes.cpp | 45 int & [[noreturn]] ref_attr_3 = after_attr; // expected-error {{'noreturn' attribute cannot be appl… 123 [[noreturn]] using namespace ns; // expected-error {{'noreturn' attribute only applies to functions… 149 using T [[noreturn]] = int; // expected-error {{'noreturn' attribute only applies to functions}} 183 friend int f1 [[noreturn]] (); //expected-error{{an attribute list cannot appear here}} 184 friend int f2 [[]] [[noreturn]] () {} 189 …friend int f6 [[noreturn]] (), f7 [[noreturn]] (), f8 [[noreturn]] (); // expected-error3 {{an att… 230 void bar [[noreturn]] ([[]] int i, [[]] int j); 238 …void bar [[noreturn...]] (); // expected-error {{attribute 'noreturn' cannot be used as an attribu… 246 …[] () [[gnu::noreturn]] { return; } (); // expected-warning {{attribute 'noreturn' ignored}} FIXME… in __anonfc0ca5b40802() 247 [] () [[gnu::noreturn]] { throw; } (); // expected-warning {{attribute 'noreturn' ignored}} in __anonfc0ca5b40902() [all …]
|
D | cxx11-stmt-attributes.cpp | 31 [[noreturn]] { } // expected-error {{'noreturn' attribute cannot be applied to a statement}} in foo() 32 …[[noreturn]] if (0) { } // expected-error {{'noreturn' attribute cannot be applied to a statement}} in foo() 33 [[noreturn]] for (;;); // expected-error {{'noreturn' attribute cannot be applied to a statement}} in foo() 34 [[noreturn]] do { // expected-error {{'noreturn' attribute cannot be applied to a statement}} in foo()
|
D | attributes.c | 52 void __attribute__((noreturn)) d0(void), __attribute__((noreturn)) d1(void); 54 void d2(void) __attribute__((noreturn)), d3(void) __attribute__((noreturn)); 73 void testFundef2() __attribute__((noreturn)) { // \
|
/external/clang/test/Sema/ |
D | attr-noreturn.c | 3 static void (*fp0)(void) __attribute__((noreturn)); 7 static void __attribute__((noreturn)) f0(void) { in f0() 12 int f1() __attribute__((noreturn)); 14 int g0 __attribute__((noreturn)); // expected-warning {{'noreturn' only applies to function types; … 16 int f2() __attribute__((noreturn(1, 2))); // expected-error {{'noreturn' attribute takes no argumen… 18 void f3() __attribute__((noreturn)); 25 void f4() __attribute__((noreturn)); 40 __attribute__((noreturn)) void f(__attribute__((noreturn)) void (*x)(void)) { in f() 44 typedef void (*Fun)(void) __attribute__ ((noreturn(2))); // expected-error {{'noreturn' attribute t…
|
D | return.c | 36 void halt2() __attribute__((noreturn)); 63 int halt3() __attribute__((noreturn)); 161 void (*fptr)() __attribute__((noreturn)); 192 void test28() __attribute__((noreturn)); 203 extern void longjmp (struct __jmp_buf_tag __env[1], int __val) __attribute__ ((noreturn)); 204 extern void _longjmp (struct __jmp_buf_tag __env[1], int __val) __attribute__ ((noreturn)); 220 void test31(test31_t *callback __attribute__((noreturn))); 287 void abort(void) __attribute__((noreturn));
|
D | block-return.c | 104 int (^b)(int) __attribute__((noreturn)); in foo6() 105 …b = ^ (int i) __attribute__((noreturn)) { return 1; }; // expected-error {{block declared 'noretu… in foo6() 107 …int (^c)(void) __attribute__((noreturn)) = ^ __attribute__((noreturn)) { return 100; }; // expecte… in foo6()
|
/external/clang/test/SemaCXX/ |
D | attr-noreturn.cpp | 7 __attribute__((noreturn)) void fail(); 28 void (*fp1)() __attribute__((noreturn)) = f0; in test_f0a() 36 void (*fp1)() __attribute__((noreturn)) = f0; in test_f0b() 40 typedef void (* noreturn_fp)() __attribute__((noreturn)); 51 int blah() __attribute__((noreturn)); 87 __attribute__((noreturn)) void foo(int) {} in foo() 88 __attribute__((noreturn)) void foo(double) {} in foo() 91 __attribute__((noreturn)) void bar(T) {} in bar() 113 void accept_noreturn_fptr(void __attribute__((noreturn)) (*f)(int)) { in accept_noreturn_fptr() 118 typedef void __attribute__((noreturn)) (*fptr_noreturn_t)(int); [all …]
|
D | cxx11-gnu-attrs.cpp | 43 int noreturn [[gnu::noreturn]]; // expected-warning {{'noreturn' only applies to function types}} variable 45 int noreturn_fn_2() [[gnu::noreturn]]; // expected-warning {{cannot be applied to a type}} 46 int noreturn_fn_3 [[gnu::noreturn]] (); 47 [[gnu::noreturn]] int noreturn_fn_4(); 48 int (*noreturn_fn_ptr_1 [[gnu::noreturn]])() = &noreturn_fn_1; // expected-error {{cannot initializ… 49 int (*noreturn_fn_ptr_2 [[gnu::noreturn]])() = &noreturn_fn_3; 50 [[gnu::noreturn]] int (*noreturn_fn_ptr_3)() = &noreturn_fn_1; // expected-error {{cannot initializ… 51 [[gnu::noreturn]] int (*noreturn_fn_ptr_4)() = &noreturn_fn_3;
|
D | new-delete-0x.cpp | 4 struct noreturn_t {} constexpr noreturn = {}; variable 6 void *operator new [[noreturn]] (size_t, noreturn_t); 7 void operator delete [[noreturn]] (void*, noreturn_t);
|
/external/stlport/stlport/stl/ |
D | _range_errors.h | 43 # pragma noreturn(__stl_throw_runtime_error) 44 # pragma noreturn(__stl_throw_range_error) 45 # pragma noreturn(__stl_throw_out_of_range) 46 # pragma noreturn(__stl_throw_length_error) 47 # pragma noreturn(__stl_throw_invalid_argument) 48 # pragma noreturn(__stl_throw_overflow_error)
|
/external/llvm/test/CodeGen/ARM/ |
D | call-noret-minsize.ll | 5 define void @t1() noreturn minsize nounwind ssp { 12 tail call void @bar() noreturn nounwind 16 define void @t2() noreturn minsize nounwind ssp { 23 tail call void @t1() noreturn nounwind 27 declare void @bar() noreturn
|
D | call-noret.ll | 5 define void @t1() noreturn nounwind ssp { 14 tail call void @bar() noreturn nounwind 18 define void @t2() noreturn nounwind ssp { 27 tail call void @t1() noreturn nounwind 31 declare void @bar() noreturn
|
/external/clang/test/SemaObjC/ |
D | return.m | 1 // RUN: %clang_cc1 -fsyntax-only -verify -Wmissing-noreturn -fobjc-exceptions -Wno-objc-root-class … 17 …est3(int a) { // expected-warning {{function 'test3' could be declared with attribute 'noreturn'}} 25 // issue a noreturn warning. 42 void exit(int) __attribute__((noreturn)); 47 - (void)method { // expected-warning{{method 'method' could be declared with attribute 'noreturn'}}
|
/external/valgrind/main/include/ |
D | pub_tool_libcsetjmp.h | 81 __attribute__((noreturn)) 90 __attribute__((noreturn)) 99 __attribute__((noreturn)) 109 __attribute__((noreturn)) 118 __attribute__((noreturn))
|
/external/llvm/test/Transforms/LoopUnswitch/ |
D | infinite-loop.ll | 45 call void @end0() noreturn nounwind 49 call void @end1() noreturn nounwind 53 declare void @end0() noreturn 54 declare void @end1() noreturn 57 ; CHECK: attributes #1 = { noreturn } 58 ; CHECK: attributes [[NOR_NUW]] = { noreturn nounwind }
|
/external/libcxxabi/src/ |
D | cxa_handlers.cpp | 35 __attribute__((visibility("hidden"), noreturn)) 44 __attribute__((noreturn)) 60 __attribute__((visibility("hidden"), noreturn)) 81 __attribute__((noreturn))
|
/external/llvm/test/Instrumentation/AddressSanitizer/ |
D | instrument-no-return.ll | 3 ; before every noreturn call or invoke. 8 declare void @MyNoReturnFunc(i32) noreturn 12 call void @MyNoReturnFunc(i32 1) noreturn ; The call insn has noreturn attr. 22 call void @MyNoReturnFunc(i32 1) ; No noreturn attribure on the call.
|
/external/qemu/android/utils/ |
D | panic.h | 22 void __attribute__((noreturn)) android_panic ( const char* fmt, ... ); 25 void __attribute__((noreturn)) android_vpanic( const char* fmt, va_list args ); 30 typedef void (*APanicHandlerFunc)(const char*, va_list) __attribute__((noreturn));
|
/external/llvm/test/Transforms/SimplifyCFG/ |
D | noreturn-call.ll | 4 declare void @Finisher(i32) noreturn 7 tail call void @Finisher(i32 %0) noreturn 8 tail call void @Finisher(i32 %0) noreturn
|
/external/llvm/test/Transforms/PruneEH/ |
D | simplenoreturntest.ll | 3 declare void @noreturn() noreturn 6 call void @noreturn( )
|
/external/clang/test/Headers/ |
D | c11.c | 7 noreturn int f(); // expected-error 1+{{}} 14 noreturn int g(); 15 int noreturn g();
|
/external/iproute2/include/ |
D | iptables_common.h | 15 extern void exit_printhelp(void) __attribute__((noreturn)); 16 extern void exit_tryhelp(int) __attribute__((noreturn)); 32 void exit_error(enum exittype, char *, ...)__attribute__((noreturn,
|
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
D | die.h | 31 static void ExitGroup() __attribute__((noreturn)); 36 __attribute__((noreturn)); 38 static void RawSandboxDie(const char* msg) __attribute__((noreturn));
|