summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2792_Regression/client.cpp
blob: 2ffebbaf911f9d5ace92b165b985985a72752c25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// $Id$

#include "tao/ORB_Core.h"
#include "tao/StringSeqC.h"

ACE_RCSID(BUg_2792_Regression, client, "$Id$")

int
main (int, char *[])
{
  try
    {
      CORBA::ORB_var orb = CORBA::ORB_init (argc, argv);
      CORBA::StringSeq foo;
      foo.length (1);
      foo[0] = "Hello World";
      const CORBA::StringSeq & bar = foo;
      ACE_DEBUG ((LM_DEBUG, "String: %s\n", bar[0].in ()));
    }
  catch (CORBA::Exception &ex)
    {
      ACE_ERROR ((LM_ERROR, "Exception caught: %s\"%s\"\n"
      , ex._name(), ex._rep_id ()));
      return 1;
    }

  return 0;
}