diff options
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/data/equalityTestsWithNullOrUndefined.qml')
-rw-r--r-- | tests/auto/qml/qmlcppcodegen/data/equalityTestsWithNullOrUndefined.qml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlcppcodegen/data/equalityTestsWithNullOrUndefined.qml b/tests/auto/qml/qmlcppcodegen/data/equalityTestsWithNullOrUndefined.qml new file mode 100644 index 0000000000..cd0c433ea9 --- /dev/null +++ b/tests/auto/qml/qmlcppcodegen/data/equalityTestsWithNullOrUndefined.qml @@ -0,0 +1,14 @@ +pragma Strict + +import QtQml +import QtQuick + +Window { + property var foo + Component.onCompleted: { + console.log(foo !== null) + console.log(foo === null) + console.log(foo !== undefined) + console.log(foo === undefined) + } +} |