aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTaylor C. Richberger <taywee@gmx.com>2017-11-26 09:41:51 -0700
committerGitHub <noreply@github.com>2017-11-26 09:41:51 -0700
commit8c32aefd61e259a4a8dde7eee1252accd4c63372 (patch)
treec15d9be9c6a252cbb14b81a653582358e1e810e1 /test
parentMerge pull request #44 from pavel-belikov/better-value-parsing (diff)
parenttrigger travis ci (diff)
downloadargs.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.cxx6
-rw-r--r--test/multiple_inclusion_2.cxx3
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; }