summaryrefslogtreecommitdiff
path: root/Tests/Dependency/Four/FourSrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Dependency/Four/FourSrc.c')
-rw-r--r--Tests/Dependency/Four/FourSrc.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tests/Dependency/Four/FourSrc.c b/Tests/Dependency/Four/FourSrc.c
new file mode 100644
index 000000000..23a66a49a
--- /dev/null
+++ b/Tests/Dependency/Four/FourSrc.c
@@ -0,0 +1,15 @@
+#include <two-test.h> /* Requires TwoCustom to be built first. */
+void NoDepAFunction();
+void OneFunction();
+void TwoFunction();
+
+void FourFunction()
+{
+ static int count = 0;
+ if( count == 0 ) {
+ ++count;
+ TwoFunction();
+ }
+ OneFunction();
+ NoDepAFunction();
+}