aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPavel Belikov <pavel.fuchs.belikov@gmail.com>2017-11-23 18:56:27 +0300
committerPavel Belikov <pavel.fuchs.belikov@gmail.com>2017-11-23 18:56:27 +0300
commit922bc733353866719fbf5de29da23f423284d1dc (patch)
treeb67d3629772032e1983a45f3c8ad7af8f4856ea9 /test
parentMerge pull request #44 from pavel-belikov/better-value-parsing (diff)
downloadargs.hxx-922bc733353866719fbf5de29da23f423284d1dc.tar.xz
fix inclusion into multiple source files
Diffstat (limited to 'test')
-rw-r--r--test/multiple_inclusion_1.cpp6
-rw-r--r--test/multiple_inclusion_2.cpp3
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; }