================
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=gnu89 
-Wno-implicit-function-declaration -fclangir -emit-cir %s -o - | FileCheck %s
+
+int foo(const char *);
+
+int bar(void) {
+  int t = foo("x");
+  printf("Hello %d\n", t);
+  printf("Hi\n");
+  return 0;
+}
+
+// CHECK: cir.func private @printf(!cir.ptr<!s8i>, ...) -> !s32i
----------------
andykaylor wrote:

You're missing a new line at the end of this file.

https://github.com/llvm/llvm-project/pull/182718
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to