Update analyzer build.
[clang.git] / test / CodeGen / unwind-attr.c
blobc588ca8e1b60e50b456dcef37c17427380452b3e
1 // RUN: %clang_cc1 -fexceptions -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck -check-prefix NOEXC %s
4 int opaque();
6 // CHECK: define [[INT:i.*]] @test0() {
7 // CHECK-NOEXC: define [[INT:i.*]] @test0() nounwind {
8 int test0(void) {
9 return opaque();
12 // <rdar://problem/8087431>: locally infer nounwind at -O0
13 // CHECK: define [[INT:i.*]] @test1() nounwind {
14 // CHECK-NOEXC: define [[INT:i.*]] @test1() nounwind {
15 int test1(void) {
16 return 0;
19 // <rdar://problem/8283071>: not for weak functions
20 // CHECK: define weak [[INT:i.*]] @test2() {
21 // CHECK-NOEXC: define weak [[INT:i.*]] @test2() nounwind {
22 __attribute__((weak)) int test2(void) {
23 return 0;