Home
last modified time | relevance | path

Searched refs:noreturn (Results 1 – 25 of 886) sorted by relevance

12345678910>>...36

/external/clang/test/SemaCXX/
Dattr-noreturn.cpp7 __attribute__((noreturn)) void fail();
21 __attribute__((noreturn)) void fail();
24 ~A() __attribute__((noreturn)) { fail(); } in ~A()
28 ~B() __attribute__((noreturn)) { fail(); } in ~B()
44 __attribute__((noreturn)) void test_1() { A a; } in test_1()
45 __attribute__((noreturn)) void test_2() { B b; } in test_2()
46 __attribute__((noreturn)) void test_3() { C c; } in test_3()
47 __attribute__((noreturn)) void test_4() { D d; } in test_4()
48 __attribute__((noreturn)) void test_5() { E e; } in test_5()
49 __attribute__((noreturn)) void test_6() { F f; } in test_6()
[all …]
Dcxx11-gnu-attrs.cpp60 int noreturn [[gnu::noreturn]]; // expected-warning {{'noreturn' only applies to function types}} variable
62 int noreturn_fn_2() [[gnu::noreturn]]; // expected-warning {{cannot be applied to a type}}
63 int noreturn_fn_3 [[gnu::noreturn]] ();
64 [[gnu::noreturn]] int noreturn_fn_4();
65 int (*noreturn_fn_ptr_1 [[gnu::noreturn]])() = &noreturn_fn_1; // expected-error {{cannot initializ…
66 int (*noreturn_fn_ptr_2 [[gnu::noreturn]])() = &noreturn_fn_3;
67 [[gnu::noreturn]] int (*noreturn_fn_ptr_3)() = &noreturn_fn_1; // expected-error {{cannot initializ…
68 [[gnu::noreturn]] int (*noreturn_fn_ptr_4)() = &noreturn_fn_3;
/external/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.noreturn/
Dp1.cpp3 [[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/
Dobjcxx11-attributes.mm11 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 …]
Dcxx0x-attributes.cpp45 int & [[noreturn]] ref_attr_3 = after_attr; // expected-error {{'noreturn' attribute cannot be appl…
127 [[noreturn]] using namespace ns; // expected-error {{'noreturn' attribute only applies to functions…
154 using T [[noreturn]] = int; // expected-error {{'noreturn' attribute only applies to functions}}
188 friend int f1 [[noreturn]] (); //expected-error{{an attribute list cannot appear here}}
189 friend int f2 [[]] [[noreturn]] () {}
194 …friend int f6 [[noreturn]] (), f7 [[noreturn]] (), f8 [[noreturn]] (); // expected-error3 {{an att…
235 void bar [[noreturn]] ([[]] int i, [[]] int j);
243 …void bar [[noreturn...]] (); // expected-error {{attribute 'noreturn' cannot be used as an attribu…
251 …[] () [[gnu::noreturn]] { return; } (); // expected-warning {{attribute 'noreturn' ignored}} FIXME…
252 [] () [[gnu::noreturn]] { throw; } (); // expected-warning {{attribute 'noreturn' ignored}}
[all …]
Dcxx11-stmt-attributes.cpp31 [[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()
Dattributes.c52 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/
Dattr-noreturn.c3 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…
Dreturn.c36 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));
/external/kmod/testsuite/
Dtest-modprobe.c28 static noreturn int modprobe_show_depends(const struct test *t) in modprobe_show_depends()
50 static noreturn int modprobe_show_depends2(const struct test *t) in modprobe_show_depends2()
73 static noreturn int modprobe_show_alias_to_none(const struct test *t) in modprobe_show_alias_to_none()
98 static noreturn int modprobe_show_exports(const struct test *t) in modprobe_show_exports()
121 static noreturn int modprobe_builtin(const struct test *t) in modprobe_builtin()
140 static noreturn int modprobe_builtin_lookup_only(const struct test *t) in modprobe_builtin_lookup_only()
162 static noreturn int modprobe_softdep_loop(const struct test *t) in modprobe_softdep_loop()
184 static noreturn int modprobe_install_cmd_loop(const struct test *t) in modprobe_install_cmd_loop()
210 static noreturn int modprobe_param_kcmdline(const struct test *t) in modprobe_param_kcmdline()
234 static noreturn int modprobe_param_kcmdline2(const struct test *t) in modprobe_param_kcmdline2()
[all …]
Dtest-depmod.c32 static noreturn int depmod_modules_order_for_compressed(const struct test *t) in depmod_modules_order_for_compressed()
60 static noreturn int depmod_search_order_simple(const struct test *t) in depmod_search_order_simple()
86 static noreturn int depmod_search_order_same_prefix(const struct test *t) in depmod_search_order_same_prefix()
112 static noreturn int depmod_detect_loop(const struct test *t) in depmod_detect_loop()
135 static noreturn int depmod_search_order_external_first(const struct test *t) in depmod_search_order_external_first()
161 static noreturn int depmod_search_order_external_last(const struct test *t) in depmod_search_order_external_last()
187 static noreturn int depmod_search_order_override(const struct test *t) in depmod_search_order_override()
/external/llvm/test/Transforms/LoopUnswitch/
Dcold-loop.ll12 call void @some_func1() noreturn nounwind
29 call void @some_func1() noreturn nounwind
33 call void @some_func2() noreturn nounwind
38 call void @some_func3() noreturn nounwind
39 call void @some_func4() noreturn nounwind
46 declare void @some_func1() noreturn
47 declare void @some_func2() noreturn
48 declare void @some_func3() noreturn
49 declare void @some_func4() noreturn
Dinfinite-loop.ll45 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/llvm/test/CodeGen/ARM/
Dcall-noret-minsize.ll5 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
Dcall-noret.ll5 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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/
Dcall-noret-minsize.ll5 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
Dcall-noret.ll5 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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dunreachable-trap.ll8 define i32 @call_exit() noreturn nounwind {
17 define i32 @trap() noreturn nounwind {
24 define i32 @unreachable() noreturn nounwind {
28 declare void @llvm.trap() nounwind noreturn
29 declare void @exit(i32 %rc) nounwind noreturn
/external/clang/test/SemaObjC/
Dreturn.m1 // 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/swiftshader/third_party/llvm-7.0/llvm/test/DebugInfo/X86/
Dnoreturn_objc.ll6 ; __attribute__ ((noreturn)) void f()
22 ; Function Attrs: noreturn
32 ; Function Attrs: noreturn
35 attributes #0 = { noreturn }
42 !1 = !DIFile(filename: "test.m", directory: "/home/del/test/noreturn/objc")
48 !7 = !DIFile(filename: "./test.m", directory: "/home/del/test/noreturn/objc")
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopUnswitch/
Dinfinite-loop.ll45 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/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Thumb/
Dstm-scavenging.ll10 define void @use_stm(i32 %a, i32 %b, i32 %c, i32* %d) local_unnamed_addr noreturn "no-frame-pointer…
18 tail call void @throws_1(i32 %a, i32 %b, i32 %c) noreturn
32 define void @no_stm(i32 %a, i32 %b, i32 %c, i32* %d) local_unnamed_addr noreturn "no-frame-pointer-…
40 tail call void @throws_2(i32 %a, i32 %b, i32 %c, i32* %d) noreturn
45 declare void @throws_1(i32, i32, i32) noreturn
46 declare void @throws_2(i32, i32, i32, i32*) noreturn
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/SimpleLoopUnswitch/
Dinfinite-loop.ll51 call void @end0() noreturn nounwind
55 call void @end1() noreturn nounwind
59 declare void @end0() noreturn
60 declare void @end1() noreturn
63 ; CHECK: attributes #1 = { noreturn }
64 ; CHECK: attributes [[NOR_NUW]] = { noreturn nounwind }
/external/swiftshader/third_party/llvm-7.0/llvm/test/Instrumentation/AddressSanitizer/
Dinstrument-no-return.ll3 ; 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/llvm/test/Instrumentation/AddressSanitizer/
Dinstrument-no-return.ll3 ; 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.

12345678910>>...36