[clang] [clang][Sema] Fix ObjC file-scope literal diagnostic under -fobjc-arc (PR #209688)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 15 05:09:51 PDT 2026
================
@@ -0,0 +1,45 @@
+// RUN: %clang_cc1 -fsyntax-only -triple x86_64-apple-macosx11.0.0 -fobjc-runtime=macosx-11.0.0 -fobjc-constant-literals -fconstant-nsnumber-literals -fconstant-nsarray-literals -fconstant-nsdictionary-literals -verify %s
----------------
AaronBallman wrote:
Can you add an `-x objective-c++` RUN line as well? There are file scope initialization differences between C and C++ so the goal is to make sure that we get the C++ behavior in Objective-C++ mode instead of the C behavior.
https://github.com/llvm/llvm-project/pull/209688
More information about the cfe-commits
mailing list