aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qstring-allocations/no-msvc-compat.cpp_fixed.cpp.expected
blob: 922004dbeb1bd48189b8c66733b8bd40643f3cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <QtCore/QString>
#include <QtCore/QStringList>

static QStringList list = { QStringLiteral("foo") };

void test()
{
    QString s = QStringLiteral("foo");
}

void testMultiPartStringLiterals()
{

    QString s = QStringLiteral("foo""bar");
    s += QStringLiteral("foo""bár");
    s += QLatin1String("foo"
         "bar"
         "Test");
    s = QStringLiteral("foo" "bar");
    s += QLatin1String("foo" "bar");
}