brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 54eca92 Raw
45 lines · c
1// RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-GNU2// RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=dwarf -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-DWARF3// RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=seh -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-SEH4// RUN: %clang_cc1 -triple i686-unknown-linux-gnu -fexceptions -exception-model=sjlj -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-SJLJ5 6// RUN: %clang_cc1 -triple i686-unknown-windows-msvc -fexceptions -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-WIN7// RUN: %clang_cc1 -triple i686-unknown-windows-msvc -D __SEH_EXCEPTIONS__ -fms-extensions -fexceptions -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-WIN-SEH-X868// RUN: %clang_cc1 -triple x86_64-unknown-windows-msvc -D __SEH_EXCEPTIONS__ -fms-extensions -fexceptions -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-WIN-SEH-X649 10// RUN: %clang_cc1 -triple i686-unknown-windows-gnu -fexceptions -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-GNU11// RUN: %clang_cc1 -triple i686-unknown-windows-gnu -fexceptions -exception-model=dwarf -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-DWARF12// RUN: %clang_cc1 -triple i686-unknown-windows-gnu -fexceptions -exception-model=seh -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-SEH13// RUN: %clang_cc1 -triple i686-unknown-windows-gnu -fexceptions -exception-model=sjlj -fblocks -emit-llvm %s -o - | FileCheck %s -check-prefix CHECK-SJLJ14 15 16extern void g(void (^)(void));17extern void i(void);18 19// CHECK-GNU: personality ptr @__gcc_personality_v020// CHECK-DWARF: personality ptr @__gcc_personality_v021// CHECK-SEH: personality ptr @__gcc_personality_seh022// CHECK-SJLJ: personality ptr @__gcc_personality_sj023 24// CHECK-WIN: personality ptr @__CxxFrameHandler325// CHECK-MINGW-SEH: personality ptr @__gcc_personality_seh026 27void f(void) {28  __block int i;29  ^{ (void)i; };30  g(^ { });31}32 33#if defined(__SEH_EXCEPTIONS__)34// CHECK-WIN-SEH-X86: personality ptr @_except_handler335// CHECK-WIN-SEH-X64: personality ptr @__C_specific_handler36 37void h(void) {38  __try {39    i();40  } __finally {41  }42}43#endif44 45