diff options
Diffstat (limited to 'tests/auto/declarative/qdeclarativelanguage/data/compatibilitySemicolon.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativelanguage/data/compatibilitySemicolon.qml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativelanguage/data/compatibilitySemicolon.qml b/tests/auto/declarative/qdeclarativelanguage/data/compatibilitySemicolon.qml new file mode 100644 index 00000000..117925e6 --- /dev/null +++ b/tests/auto/declarative/qdeclarativelanguage/data/compatibilitySemicolon.qml @@ -0,0 +1,11 @@ +import QtQuick 1.0 + +QtObject { + function code() { + + // Not correct according to ECMA 5.1, but JSC and V8 accept the following: + do { + ; + } while (false) true + } +} |