summaryrefslogtreecommitdiffstats
path: root/src/tests/misc/test_cxx_rpc.cpp
blob: a7194878322dff43c31cb08fc6785d0022ceb4b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test that the rpc.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;
}