Skip to content

Commit ab438ac

Browse files
committed
Added multi files that includes msgpack.hpp linking test.
It detects a lack of inline keyword in a function definition.
1 parent 2216fda commit ab438ac

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

test/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,9 @@ FOREACH (source_file ${check_PROGRAMS})
7373
ENDIF ()
7474
ENDIF ()
7575
ENDFOREACH ()
76+
77+
ADD_EXECUTABLE (
78+
multi_file
79+
multi_file1.cpp multi_file2.cpp
80+
)
81+
ADD_TEST (multi_file multi_file)

test/Makefile.am

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ check_PROGRAMS = \
2323
msgpack_stream \
2424
msgpack_vref \
2525
msgpack_cpp11 \
26+
multi_file \
2627
reference_cpp11 \
2728
reference \
2829
limit \
@@ -88,6 +89,8 @@ raw_SOURCES = raw.cpp
8889

8990
iterator_cpp11_SOURCES = iterator_cpp11.cpp
9091

92+
multi_file_SOURCES = multi_file1.cpp multi_file2.cpp
93+
9194
boost_fusion_SOURCES = boost_fusion.cpp
9295

9396
boost_optional_SOURCES = boost_optional.cpp

test/multi_file1.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include <msgpack.hpp>

test/multi_file2.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#include <msgpack.hpp>
2+
3+
int main() {}

0 commit comments

Comments
 (0)