xref: /openbsd-src/lib/libexpat/tests/runtests_cxx.cpp (revision bd8f1dc3b0e01803a74947836eef57849c13acb0)
1*bd8f1dc3Sbluhm /* C++ compilation harness for the test suite.
2*bd8f1dc3Sbluhm 
3*bd8f1dc3Sbluhm    This is used to ensure the Expat headers can be included from C++
4*bd8f1dc3Sbluhm    and have everything work as expected.
5*bd8f1dc3Sbluhm                             __  __            _
6*bd8f1dc3Sbluhm                          ___\ \/ /_ __   __ _| |_
7*bd8f1dc3Sbluhm                         / _ \\  /| '_ \ / _` | __|
8*bd8f1dc3Sbluhm                        |  __//  \| |_) | (_| | |_
9*bd8f1dc3Sbluhm                         \___/_/\_\ .__/ \__,_|\__|
10*bd8f1dc3Sbluhm                                  |_| XML parser
11*bd8f1dc3Sbluhm 
12*bd8f1dc3Sbluhm    Copyright (c) 2005      Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
13*bd8f1dc3Sbluhm    Copyright (c) 2017-2023 Sebastian Pipping <sebastian@pipping.org>
14*bd8f1dc3Sbluhm    Licensed under the MIT license:
15*bd8f1dc3Sbluhm 
16*bd8f1dc3Sbluhm    Permission is  hereby granted,  free of charge,  to any  person obtaining
17*bd8f1dc3Sbluhm    a  copy  of  this  software   and  associated  documentation  files  (the
18*bd8f1dc3Sbluhm    "Software"),  to  deal in  the  Software  without restriction,  including
19*bd8f1dc3Sbluhm    without  limitation the  rights  to use,  copy,  modify, merge,  publish,
20*bd8f1dc3Sbluhm    distribute, sublicense, and/or sell copies of the Software, and to permit
21*bd8f1dc3Sbluhm    persons  to whom  the Software  is  furnished to  do so,  subject to  the
22*bd8f1dc3Sbluhm    following conditions:
23*bd8f1dc3Sbluhm 
24*bd8f1dc3Sbluhm    The above copyright  notice and this permission notice  shall be included
25*bd8f1dc3Sbluhm    in all copies or substantial portions of the Software.
26*bd8f1dc3Sbluhm 
27*bd8f1dc3Sbluhm    THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
28*bd8f1dc3Sbluhm    EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
29*bd8f1dc3Sbluhm    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
30*bd8f1dc3Sbluhm    NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
31*bd8f1dc3Sbluhm    DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
32*bd8f1dc3Sbluhm    OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
33*bd8f1dc3Sbluhm    USE OR OTHER DEALINGS IN THE SOFTWARE.
34*bd8f1dc3Sbluhm */
35*bd8f1dc3Sbluhm 
36*bd8f1dc3Sbluhm #include "runtests.c"
37