[clang] [clang-repl] Emit const variables only once (PR #65257)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 28 21:38:38 PDT 2023


================
@@ -0,0 +1,29 @@
+// UNSUPPORTED: system-aix
+// RUN: cat %s | clang-repl | FileCheck %s
+// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s
+
+extern "C" int printf(const char*, ...);
+
----------------
vgvassilev wrote:

Can you add a case for a file scope constant? We also should consider enabling that for C. 

https://github.com/llvm/llvm-project/pull/65257


More information about the cfe-commits mailing list