diff options
author | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-11-23 18:56:27 +0300 |
---|---|---|
committer | Pavel Belikov <pavel.fuchs.belikov@gmail.com> | 2017-11-23 18:56:27 +0300 |
commit | 922bc733353866719fbf5de29da23f423284d1dc (patch) | |
tree | b67d3629772032e1983a45f3c8ad7af8f4856ea9 /test | |
parent | Merge pull request #44 from pavel-belikov/better-value-parsing (diff) | |
download | args.hxx-922bc733353866719fbf5de29da23f423284d1dc.tar.xz |
fix inclusion into multiple source files
Diffstat (limited to 'test')
-rw-r--r-- | test/multiple_inclusion_1.cpp | 6 | ||||
-rw-r--r-- | test/multiple_inclusion_2.cpp | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/multiple_inclusion_1.cpp b/test/multiple_inclusion_1.cpp new file mode 100644 index 0000000..b831d0a --- /dev/null +++ b/test/multiple_inclusion_1.cpp @@ -0,0 +1,6 @@ +#include <args.hxx> + +int foo() { return 42; } +int bar(); + +int main() { return foo() - bar(); } diff --git a/test/multiple_inclusion_2.cpp b/test/multiple_inclusion_2.cpp new file mode 100644 index 0000000..cdcb020 --- /dev/null +++ b/test/multiple_inclusion_2.cpp @@ -0,0 +1,3 @@ +#include <args.hxx> + +int bar() { return 42; } |