From 2992fdb8d2cebdf7499fd55f41853cf1218971cb Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 31 Oct 2007 06:59:11 +0000 Subject: Test more installed headers for C++ compatibility git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20156 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/misc/test_cxx_rpc.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/tests/misc/test_cxx_rpc.cpp (limited to 'src/tests/misc/test_cxx_rpc.cpp') diff --git a/src/tests/misc/test_cxx_rpc.cpp b/src/tests/misc/test_cxx_rpc.cpp new file mode 100644 index 000000000..b6ca4d398 --- /dev/null +++ b/src/tests/misc/test_cxx_rpc.cpp @@ -0,0 +1,14 @@ +// Test that the krb5.h header is compatible with C++ application code. + +#include "gssrpc/rpc.h" + +struct sockaddr_in s_in; +int main (int argc, char *argv[]) +{ + if (argc == 47 && get_myaddress (&s_in)) { + printf("error\n"); + return 1; + } + printf("hello, world\n"); + return 0; +} -- cgit