diff options
author | Taylor C. Richberger <taywee@gmx.com> | 2017-11-26 09:41:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-26 09:41:51 -0700 |
commit | 8c32aefd61e259a4a8dde7eee1252accd4c63372 (patch) | |
tree | c15d9be9c6a252cbb14b81a653582358e1e810e1 /test | |
parent | Merge pull request #44 from pavel-belikov/better-value-parsing (diff) | |
parent | trigger travis ci (diff) | |
download | args.hxx-8c32aefd61e259a4a8dde7eee1252accd4c63372.tar.xz |
Merge pull request #48 from pavel-belikov/fix-multiple-inclusion
Fix inclusion into multiple source files
Diffstat (limited to 'test')
-rw-r--r-- | test/multiple_inclusion_1.cxx | 6 | ||||
-rw-r--r-- | test/multiple_inclusion_2.cxx | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/multiple_inclusion_1.cxx b/test/multiple_inclusion_1.cxx new file mode 100644 index 0000000..b831d0a --- /dev/null +++ b/test/multiple_inclusion_1.cxx @@ -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.cxx b/test/multiple_inclusion_2.cxx new file mode 100644 index 0000000..cdcb020 --- /dev/null +++ b/test/multiple_inclusion_2.cxx @@ -0,0 +1,3 @@ +#include <args.hxx> + +int bar() { return 42; } |