We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac27228 commit 76abab9Copy full SHA for 76abab9
libcxx/test/libcxx/strings/basic.string/string.cons/constinit_sso_string.compile.pass.cpp
@@ -14,14 +14,12 @@
14
#include <string>
15
16
#if __SIZE_WIDTH__ == 64
17
-#define LONGEST_STR "0123456789012345678901"
+# define LONGEST_STR "0123456789012345678901"
18
#elif __SIZE_WIDTH__ == 32
19
-#define LONGEST_STR "0123456789"
+# define LONGEST_STR "0123456789"
20
#else
21
# error "std::size_t has an unexpected size"
22
#endif
23
24
constinit std::string g_str = LONGEST_STR;
25
-void fn() {
26
- constexpr std::string l_str = LONGEST_STR;
27
-}
+void fn() { constexpr std::string l_str = LONGEST_STR; }
0 commit comments