diff options
Diffstat (limited to 'Tests/GhsMulti/GhsMultiDuplicateSourceFilenames')
8 files changed, 58 insertions, 0 deletions
diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt new file mode 100644 index 0000000..520e65f --- /dev/null +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt @@ -0,0 +1,17 @@ +cmake_minimum_required(VERSION 3.5) +project(test C) + +add_library(libdemo + test.c + testCase.c + subfolder_test.c + subfolder_test_0.c + "subfolder/test.c" + subfolder/testcase.c +) + +add_executable(demo main.c) +target_link_libraries(demo libdemo) +if(GHSMULTI) + target_compile_options(demo PUBLIC "-non_shared") +endif() diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/main.c b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/main.c new file mode 100644 index 0000000..d4ef7bb --- /dev/null +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/main.c @@ -0,0 +1,17 @@ +int test_a(void); +int test_b(void); +int test_c(void); +int test_d(void); +int test_e(void); +int test_f(void); + +int main(int argc, char* argv[]) +{ + test_a(); + test_b(); + test_c(); + test_d(); + test_e(); + test_f(); + return 0; +} diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder/test.c b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder/test.c new file mode 100644 index 0000000..5d857dd --- /dev/null +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder/test.c @@ -0,0 +1,4 @@ +int test_b() +{ + return 2; +} diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder/testcase.c b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder/testcase.c new file mode 100644 index 0000000..66ee6f3 --- /dev/null +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder/testcase.c @@ -0,0 +1,4 @@ +int test_f() +{ + return 1; +} diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder_test.c b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder_test.c new file mode 100644 index 0000000..83589ba --- /dev/null +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder_test.c @@ -0,0 +1,4 @@ +int test_c() +{ + return 1; +} diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder_test_0.c b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder_test_0.c new file mode 100644 index 0000000..82f9a52 --- /dev/null +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/subfolder_test_0.c @@ -0,0 +1,4 @@ +int test_d() +{ + return 1; +} diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/test.c b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/test.c new file mode 100644 index 0000000..feba80e --- /dev/null +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/test.c @@ -0,0 +1,4 @@ +int test_a() +{ + return 1; +} diff --git a/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/testCase.c b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/testCase.c new file mode 100644 index 0000000..943c19d --- /dev/null +++ b/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/testCase.c @@ -0,0 +1,4 @@ +int test_e() +{ + return 1; +} |