summaryrefslogtreecommitdiffstats
path: root/Tests/Dependency/Two
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Dependency/Two')
-rw-r--r--Tests/Dependency/Two/CMakeLists.txt3
-rw-r--r--Tests/Dependency/Two/TwoSrc.c10
2 files changed, 13 insertions, 0 deletions
diff --git a/Tests/Dependency/Two/CMakeLists.txt b/Tests/Dependency/Two/CMakeLists.txt
new file mode 100644
index 0000000..6a9630e
--- /dev/null
+++ b/Tests/Dependency/Two/CMakeLists.txt
@@ -0,0 +1,3 @@
+ADD_LIBRARY( Two TwoSrc.c )
+TARGET_LINK_LIBRARIES( Two Three )
+
diff --git a/Tests/Dependency/Two/TwoSrc.c b/Tests/Dependency/Two/TwoSrc.c
new file mode 100644
index 0000000..981df09
--- /dev/null
+++ b/Tests/Dependency/Two/TwoSrc.c
@@ -0,0 +1,10 @@
+void ThreeFunction();
+
+void TwoFunction()
+{
+ static int count = 0;
+ if( count == 0 ) {
+ ++count;
+ ThreeFunction();
+ }
+}