1 // Copyright 2019 Henry Schreiner, Hans Dembinski
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 /*
8 For a header-only library, it is important to not accidentally violate the
9 One-Definition-Rule (ODR), which causes linker errors. The ODR is violated
10 when a non-templated function declared in a header is not inlined, and that
11 header is then included in several translation units which are then linked
12 together.
13
14 We carry out this test by including all headers in two separate translation
15 units which are then linked together. There is an additional test called
16 check_odr_test.py which checks that "odr_test.cpp" includes all headers.
17 */
18
19 #include "odr_test.cpp"
20
main()21 int main() { return 0; }
22