diff options
Diffstat (limited to 'Tests/ComplexRelativePaths/Executable/complex.cxx')
-rw-r--r-- | Tests/ComplexRelativePaths/Executable/complex.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index 1f4c21a..f126fe5 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -290,6 +290,11 @@ void ForceStringUse() extern "C" int TestCFlags(char* m); extern "C" int TestTargetCompileFlags(char* m); +// defined in Sub1/NameConflictTest.c +extern "C" int NameConflictTest1(); +// defined in Sub2/NameConflictTest.c +extern "C" int NameConflictTest2(); + // ====================================================================== int main() @@ -395,7 +400,14 @@ int main() cmFailed("cmSystemTools::UpperCase is working"); } #endif - + if(NameConflictTest1() == 0 && NameConflictTest2() == 0) + { + cmPassed("Sub dir with same named source works"); + } + else + { + cmFailed("Sub dir with same named source fails"); + } if(file1() != 1) { cmFailed("Call to file1 function from library failed."); |