Mercurial > hg > CbC > CbC_llvm
comparison clang/test/CodeGen/mrtd.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 |
---|---|
2 | 2 |
3 // CHECK: mrtd.c:10:3: warning: function with no prototype cannot use the stdcall calling convention | 3 // CHECK: mrtd.c:10:3: warning: function with no prototype cannot use the stdcall calling convention |
4 | 4 |
5 void baz(int arg); | 5 void baz(int arg); |
6 | 6 |
7 // CHECK: define x86_stdcallcc void @foo(i32 %arg) [[NUW:#[0-9]+]] | 7 // CHECK: define{{.*}} x86_stdcallcc void @foo(i32 %arg) [[NUW:#[0-9]+]] |
8 void foo(int arg) { | 8 void foo(int arg) { |
9 // CHECK: call x86_stdcallcc i32 bitcast (i32 (...)* @bar to i32 (i32)*)( | 9 // CHECK: call x86_stdcallcc i32 bitcast (i32 (...)* @bar to i32 (i32)*)( |
10 bar(arg); | 10 bar(arg); |
11 // CHECK: call x86_stdcallcc void @baz(i32 | 11 // CHECK: call x86_stdcallcc void @baz(i32 |
12 baz(arg); | 12 baz(arg); |
15 // CHECK: declare x86_stdcallcc i32 @bar(...) | 15 // CHECK: declare x86_stdcallcc i32 @bar(...) |
16 | 16 |
17 // CHECK: declare x86_stdcallcc void @baz(i32) | 17 // CHECK: declare x86_stdcallcc void @baz(i32) |
18 | 18 |
19 void qux(int arg, ...) { } | 19 void qux(int arg, ...) { } |
20 // CHECK: define void @qux(i32 %arg, ...) | 20 // CHECK: define{{.*}} void @qux(i32 %arg, ...) |
21 | 21 |
22 void quux(int a1, int a2, int a3) { | 22 void quux(int a1, int a2, int a3) { |
23 qux(a1, a2, a3); | 23 qux(a1, a2, a3); |
24 } | 24 } |
25 // CHECK-LABEL: define x86_stdcallcc void @quux | 25 // CHECK-LABEL: define{{.*}} x86_stdcallcc void @quux |
26 // CHECK: call void (i32, ...) @qux | 26 // CHECK: call void (i32, ...) @qux |
27 | 27 |
28 // CHECK: attributes [[NUW]] = { noinline nounwind{{.*}} } | 28 // CHECK: attributes [[NUW]] = { noinline nounwind{{.*}} } |