CMake/Tests/Dependency/Four/FourSrc.c
Brad King adb58d5e36 Honor strong intra-component target dependencies
Strong dependencies (created by add_dependencies) must be honored when
linearizing a strongly-connected component of the target dependency
graph.  The initial graph edges have strong/weak labels and can contain
cycles that do not consist exclusively of strong edges.  The final graph
never contains cycles so all edges can be strong.
2010-08-25 17:14:13 -04:00

16 lines
273 B
C

#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();
}