summaryrefslogtreecommitdiff
path: root/CIAO/CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
blob: 884b26bb9a4bf4d74eb0f931f08caf7b6ab27918 (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
// file      : CCF/Example/CodeGenerationKit/Indentation/IDL/indent_idl.cpp
// author    : Boris Kolpackov <boris@dre.vanderbilt.edu>
// cvs-id    : $Id$

#include "CCF/CodeGenerationKit/IndentationIDL.hpp"
#include "CCF/CodeGenerationKit/IndentationImplanter.hpp"

#include <iostream>

using std::cout;
using std::endl;

//FUZZ: disable check_for_improper_main_declaration

int
main ()
{
  Indentation::Implanter<Indentation::IDL> guard (cout);

  cout << "const string s = \"Hello \\\"world;\";";
  cout << "const char c1 = \'\\\'\';";
  cout << "const char c2 = \';\';";

  cout << "interface I {"
       << "void foo ();"
       << "};";
}