From 922bc733353866719fbf5de29da23f423284d1dc Mon Sep 17 00:00:00 2001 From: Pavel Belikov Date: Thu, 23 Nov 2017 18:56:27 +0300 Subject: fix inclusion into multiple source files --- test/multiple_inclusion_1.cpp | 6 ++++++ test/multiple_inclusion_2.cpp | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 test/multiple_inclusion_1.cpp create mode 100644 test/multiple_inclusion_2.cpp (limited to 'test') 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 + +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 + +int bar() { return 42; } -- cgit v1.2.1