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

static QStringList list = { "foo" };

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

void testMultiPartStringLiterals()
{

    QString s = "foo""bar";
    s += "foo""bár";
    s += "foo"
         "bar"
         "Test";
    s = QString::fromLatin1("foo" "bar");
    s += QString::fromLatin1("foo" "bar");
}