// @(#)$Id: declaration.lh,v 1.8 1997/06/03 20:30:01 leavens Exp $
int i;
int j = 3, k = 4; // declaration with initializers
int *ip = &i;
extern double Sqrt(double x);
static int zero = 0;
typedef int *IntPtr;
class MyClass { MyClass(); }; // class with ctor-declarator
int zero() throw() { return 0; } // function-definition
int one() throw() // function-definition
//@ behavior { ensures result = 1; } // with fun-spec-body
{ return 1; } // and fun-body
template <class T> // template-declaration
extern T Id(T x) throw();
//@ behavior { ensures result = x; } // with fun-spec-body
//@ refine zero by // refinement-declaration
int zero() throw();
//@ behavior { ensures result = 0; }
extern "C" double ceil(double x); // linkage-declaration
namespace long_name { int x; } // namespace-definition
namespace n = long_name; // namespace-alias-definition
asm ("add r1,r2"); // asm-definition
[Index]
HTML generated using lcpp2html.