[clang] [libcxx] Allow string to use SSO in constant evaluation. (PR #66576)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 27 01:48:51 PDT 2023
================
@@ -0,0 +1,22 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14, c++17
+
+// Ensure that strings which fit within the SSO size can be constant-initialized
+// globals. (this is permitted but not required to work by the standard).
----------------
philnik777 wrote:
```suggestion
// globals.
```
No need to state that. If it was required by the standard, this test wouldn't be libc++-specific.
https://github.com/llvm/llvm-project/pull/66576
More information about the cfe-commits
mailing list