diff options
Diffstat (limited to 'tests/auto/blackbox')
-rw-r--r-- | tests/auto/blackbox/testdata/appWithoutSources/a.c (renamed from tests/auto/blackbox/testdata/appWithoutSources/a.cpp) | 0 | ||||
-rw-r--r-- | tests/auto/blackbox/testdata/appWithoutSources/b.c (renamed from tests/auto/blackbox/testdata/appWithoutSources/b.cpp) | 2 | ||||
-rw-r--r-- | tests/auto/blackbox/testdata/appWithoutSources/project.qbs | 9 |
3 files changed, 8 insertions, 3 deletions
diff --git a/tests/auto/blackbox/testdata/appWithoutSources/a.cpp b/tests/auto/blackbox/testdata/appWithoutSources/a.c index bf7759e11..bf7759e11 100644 --- a/tests/auto/blackbox/testdata/appWithoutSources/a.cpp +++ b/tests/auto/blackbox/testdata/appWithoutSources/a.c diff --git a/tests/auto/blackbox/testdata/appWithoutSources/b.cpp b/tests/auto/blackbox/testdata/appWithoutSources/b.c index 76c93685d..e3841fa32 100644 --- a/tests/auto/blackbox/testdata/appWithoutSources/b.cpp +++ b/tests/auto/blackbox/testdata/appWithoutSources/b.c @@ -1,4 +1,4 @@ -#include <cstdio> +#include <stdio.h> int foo(); // defined in a.cpp diff --git a/tests/auto/blackbox/testdata/appWithoutSources/project.qbs b/tests/auto/blackbox/testdata/appWithoutSources/project.qbs index 983cc9bab..f59d3ad85 100644 --- a/tests/auto/blackbox/testdata/appWithoutSources/project.qbs +++ b/tests/auto/blackbox/testdata/appWithoutSources/project.qbs @@ -7,7 +7,7 @@ Project { Depends { name: "cpp" } files: [ - "a.cpp", + "a.c", ] } @@ -18,12 +18,17 @@ Project { Depends { name: "cpp" } files: [ - "b.cpp", + "b.c", ] } CppApplication { name: "appWithoutSources" + Properties { + condition: qbs.toolchain.contains("msvc") + cpp.linkerFlags: "/ENTRY:main" + } + Depends { name: "a" } Depends { name: "b" } } |