aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qstring-allocations/msvc-compat.cpp
blob: c04b73d1f497082dd4135001591da1757284437b (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 = "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");
}