diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2007-10-31 06:59:11 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2007-10-31 06:59:11 +0000 |
| commit | 2992fdb8d2cebdf7499fd55f41853cf1218971cb (patch) | |
| tree | b8ee087b7f0cf259a4a8e2bdf7a4a82bc8186c9e /src/tests/misc/test_cxx_rpc.cpp | |
| parent | b977a7d9fde7a620b6330979fa3f54ef190e5b20 (diff) | |
| download | krb5-2992fdb8d2cebdf7499fd55f41853cf1218971cb.tar.gz krb5-2992fdb8d2cebdf7499fd55f41853cf1218971cb.tar.xz krb5-2992fdb8d2cebdf7499fd55f41853cf1218971cb.zip | |
Test more installed headers for C++ compatibility
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20156 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests/misc/test_cxx_rpc.cpp')
| -rw-r--r-- | src/tests/misc/test_cxx_rpc.cpp | 14 |
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; +} |
