xref: /freebsd/crypto/krb5/src/tests/misc/test_cxx_rpc.cpp (revision b670c9bafc0e31c7609969bf374b2e80bdc00211)
1 // Test that the rpc.h header is compatible with C++ application code.
2 
3 #include "gssrpc/rpc.h"
4 
5 struct sockaddr_in s_in;
6 int main (int argc, char *argv[])
7 {
8     if (argc == 47 && get_myaddress (&s_in)) {
9 	printf("error\n");
10 	return 1;
11     }
12     printf("hello, world\n");
13     return 0;
14 }
15