brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · d4d8d5c Raw
41 lines · plain
1// RUN: cir-opt %s --verify-roundtrip | FileCheck %s2 3!u8i = !cir.int<u, 8>4 5module {6 7cir.func dso_local @inflight_exception() {8  %exception_ptr, %type_id = cir.eh.inflight_exception9  cir.return10}11 12// CHECK: cir.func dso_local @inflight_exception() {13// CHECK:  %exception_ptr, %type_id = cir.eh.inflight_exception14// CHECK:  cir.return15// CHECK: }16 17cir.func dso_local @inflight_exception_with_cleanup() {18  %exception_ptr, %type_id = cir.eh.inflight_exception cleanup19  cir.return20}21 22// CHECK: cir.func dso_local @inflight_exception_with_cleanup() {23// CHECK:  %exception_ptr, %type_id = cir.eh.inflight_exception cleanup24// CHECK:  cir.return25// CHECK: }26 27cir.global "private" constant external @_ZTIi : !cir.ptr<!u8i>28cir.global "private" constant external @_ZTIPKc : !cir.ptr<!u8i>29 30cir.func dso_local @inflight_exception_with_catch_type_list() {31  %exception_ptr, %type_id = cir.eh.inflight_exception [@_ZTIi, @_ZTIPKc]32  cir.return33}34 35// CHECK: cir.func dso_local @inflight_exception_with_catch_type_list() {36// CHECK:  %exception_ptr, %type_id = cir.eh.inflight_exception [@_ZTIi, @_ZTIPKc]37// CHECK:  cir.return38// CHECK:}39 40}41