Skip to content

Commit b697240

Browse files
committed
Add check line for printf
1 parent b89f17d commit b697240

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/test/CIR/CodeGen/builtin_printf.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ void func(char const * const str, int i) {
1818
__builtin_printf("%s %d\n", str, i);
1919
}
2020

21+
// CIR: cir.func @printf(!cir.ptr<!s8i>, ...) -> !s32i
22+
2123
// CIR: cir.func @_Z4funcPKci(%[[arg0:.+]]: !cir.ptr<!s8i>{{.*}}, %[[arg1:.+]]: !s32i{{.*}}) {
2224
// CIR: %[[str_ptr:.+]] = cir.alloca !cir.ptr<!s8i>, !cir.ptr<!cir.ptr<!s8i>>, ["str", init, const]
2325
// CIR: %[[i_ptr:.+]] = cir.alloca !s32i, !cir.ptr<!s32i>, ["i", init]

0 commit comments

Comments
 (0)