summaryrefslogtreecommitdiffstats
path: root/src/tests/misc/test_cxx_rpc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/misc/test_cxx_rpc.cpp')
-rw-r--r--src/tests/misc/test_cxx_rpc.cpp14
1 files changed, 14 insertions, 0 deletions
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;
+}