aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/renameDependency/before/main.cpp
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-07-16 18:50:45 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2014-07-18 10:57:50 +0200
commitdce309bf4e18cc20f3f9b03fbd33f63f5c60d025 (patch)
tree117edb10fc3dd42b4a4b6591c23897589669f9c9 /tests/auto/blackbox/testdata/renameDependency/before/main.cpp
parentbbdf9592d14dfb9cc771e0fed4881428830d916f (diff)
invalidate artifacts if a dependency is removed
Artifacts must be invalidated if a dependency is removed. Consider a foo.cpp that includes bar.h. If bar.h is removed from the project, then we must recompile foo.cpp to trigger the compile error that stems from the wrong include. Change-Id: Ifc2bc3085be553f87685a17c5ff05273daa6579c Task-number: QBS-631 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/renameDependency/before/main.cpp')
-rw-r--r--tests/auto/blackbox/testdata/renameDependency/before/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/renameDependency/before/main.cpp b/tests/auto/blackbox/testdata/renameDependency/before/main.cpp
new file mode 100644
index 000000000..d78950ee9
--- /dev/null
+++ b/tests/auto/blackbox/testdata/renameDependency/before/main.cpp
@@ -0,0 +1,8 @@
+#include <iostream>
+#include "lib.h"
+
+int main()
+{
+ print_two_numbers(2, 3);
+ return 0;
+}