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

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 3 02:40:59 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:

> const A a(1); is a file-scope constant, no?

Yes, missed that.

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


More information about the cfe-commits mailing list