Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeGen/unwind-attr.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
1 // RUN: %clang_cc1 -triple i386-unknown-unknown -fexceptions -emit-llvm -o - %s | FileCheck %s | 1 // RUN: %clang_cc1 -triple i386-unknown-unknown -fexceptions -emit-llvm -o - %s | FileCheck %s |
2 // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck -check-prefix CHECK-NOEXC %s | 2 // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm -o - %s | FileCheck -check-prefix CHECK-NOEXC %s |
3 | 3 |
4 int opaque(); | 4 int opaque(); |
5 | 5 |
6 // CHECK: define [[INT:i.*]] @test0() [[TF:#[0-9]+]] { | 6 // CHECK: define{{.*}} [[INT:i.*]] @test0() [[TF:#[0-9]+]] { |
7 // CHECK-NOEXC: define [[INT:i.*]] @test0() [[NUW:#[0-9]+]] { | 7 // CHECK-NOEXC: define{{.*}} [[INT:i.*]] @test0() [[NUW:#[0-9]+]] { |
8 int test0(void) { | 8 int test0(void) { |
9 return opaque(); | 9 return opaque(); |
10 } | 10 } |
11 | 11 |
12 // <rdar://problem/8087431>: locally infer nounwind at -O0 | 12 // <rdar://problem/8087431>: locally infer nounwind at -O0 |
13 // CHECK: define [[INT:i.*]] @test1() [[NUW:#[0-9]+]] { | 13 // CHECK: define{{.*}} [[INT:i.*]] @test1() [[NUW:#[0-9]+]] { |
14 // CHECK-NOEXC: define [[INT:i.*]] @test1() [[NUW]] { | 14 // CHECK-NOEXC: define{{.*}} [[INT:i.*]] @test1() [[NUW]] { |
15 int test1(void) { | 15 int test1(void) { |
16 return 0; | 16 return 0; |
17 } | 17 } |
18 | 18 |
19 // <rdar://problem/8283071>: not for weak functions | 19 // <rdar://problem/8283071>: not for weak functions |
20 // CHECK: define weak [[INT:i.*]] @test2() [[TF]] { | 20 // CHECK: define weak{{.*}} [[INT:i.*]] @test2() [[TF]] { |
21 // CHECK-NOEXC: define weak [[INT:i.*]] @test2() [[NUW]] { | 21 // CHECK-NOEXC: define weak{{.*}} [[INT:i.*]] @test2() [[NUW]] { |
22 __attribute__((weak)) int test2(void) { | 22 __attribute__((weak)) int test2(void) { |
23 return 0; | 23 return 0; |
24 } | 24 } |
25 | 25 |
26 // CHECK: attributes [[TF]] = { noinline optnone "{{.*}} } | 26 // CHECK: attributes [[TF]] = { noinline optnone "{{.*}} } |