X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_build.c;fp=tests%2Funit%2Ftest_build.c;h=deb0a736b1e95cdb62365efba9dab046810bd9b4;hp=0000000000000000000000000000000000000000;hb=2875743718fb23293190b5edd0f2b530977270b1;hpb=153b081a9b007aad7bece415dc3bf1125edd2da3 diff --git a/tests/unit/test_build.c b/tests/unit/test_build.c new file mode 100644 index 0000000..deb0a73 --- /dev/null +++ b/tests/unit/test_build.c @@ -0,0 +1,69 @@ +/* + * Copyright 2021 Simon Marchi + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +/* + * This file is meant to verify that headers are compatible with both C and + * C++. It includes all exported headers and is compiled as C and C++ source. + */ + +#ifndef DYNAMIC_LINK_TEST +# define _LGPL_SOURCE +#endif + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "tap.h" + +int main(void) +{ + /* Need at least 1 test to make a valid TAP test plan. */ + plan_tests(1); + ok(1, "dummy"); + + return exit_status(); +}