summaryrefslogtreecommitdiffstats
path: root/tests/manual/cmake/pass2/myobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/cmake/pass2/myobject.cpp')
-rw-r--r--tests/manual/cmake/pass2/myobject.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/cmake/pass2/myobject.cpp b/tests/manual/cmake/pass2/myobject.cpp
index 251239cde0..0f3d8b5b50 100644
--- a/tests/manual/cmake/pass2/myobject.cpp
+++ b/tests/manual/cmake/pass2/myobject.cpp
@@ -50,5 +50,7 @@ MyObject::MyObject(QObject *parent)
int main(int argc, char **argv)
{
MyObject myObject;
+ // Compile error if the resource file was not created.
+ Q_INIT_RESOURCE(pass2);
return 0;
}