| 1 | int main() |
| 2 | { |
| 3 | // Character literals |
| 4 | auto c0 = 'A'; // char |
| 5 | auto c1 = u8'A'; // char |
| 6 | auto c2 = L'A'; // wchar_t |
| 7 | auto c3 = u'A'; // char16_t |
| 8 | auto c4 = U'A'; // char32_t |
| 9 | |
| 10 | // String literals |
| 11 | auto s0 = "hello"; // const char* |
| 12 | auto s1 = u8"hello"; // const char*, encoded as UTF-8 |
| 13 | auto s2 = L"hello"; // const wchar_t* |
| 14 | auto s3 = u"hello"; // const char16_t*, encoded as UTF-16 |
| 15 | auto s4 = U"hello"; // const char32_t*, encoded as UTF-32 |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected