aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/incrDecrSemicolon1.qml
blob: b9a30ef8b5a6f66e6601f78ef6cc416505db1f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import QtQuick 2.0

QtObject {

    // PLEASE NOTE: the function below is whitespace and newline sensitive,
    //              because that is what the test is all about.
    //
    // So: DO NOT REFORMAT THE CODE BELOW!

    function code() {
var x=0, y=0;
var z=
x
+
++
y

//////////////////////////////////////////////////////////////////////////////
if (false) {
    ;
}
//////////////////////////////////////////////////////////////////////////////

z=
x
+ ++
y

//////////////////////////////////////////////////////////////////////////////
if (false) {
    ;
}
//////////////////////////////////////////////////////////////////////////////

z=
x
+    ++
y

//////////////////////////////////////////////////////////////////////////////
if (false) {
    ;
}

    }
}