Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
Qt Creator 4.9.0
-
None
-
Qt Creator 4.9.0
Description
I created a new Auto Test project and the generated source.cpp file contained the macro: QTEST_APPLESS_MAIN(ClassName), with the following error:
tst_myclass.cpp:33:1: error: cannot initialize a parameter of type 'const char *' with an rvalue of type 'int' qtest.h:402:5: note: expanded from macro 'QTEST_APPLESS_MAIN' qtest.h:372:74: note: expanded from macro 'QTEST_SET_MAIN_SOURCE_PATH' 9:30: note: expanded from here qtestcase.h:303:75: note: passing argument to parameter 'builddir' here
However, the project compiled and ran normally.