summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example2.cpp
blob: ccd99383f2a0a6ee89e9bf462659eb4bcc66ae1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * A Test file for the different string literals.
 */

#include <iostream>

int main() {
    char *_str      = "a normal string";
    wchar_t *L_str  = L"a wide string";
    char *u8_str    = u8"utf-8 string";
    char16_t *u_str = u"utf-16 string";
    char32_t *U_str = U"utf-32 string";
    char *R_str     = R""""(raw string with
"""
as a delimiter)"""";

    std::cout << R_str << std::endl;

    return 0;
}