old-cross-binutils/gdb/testsuite/gdb.c++/cttiadd1.cc

17 lines
170 B
C++
Raw Normal View History

1999-08-02 23:48:37 +00:00
template<class T> T add(T v1, T v2);
void add1()
{
char c;
int i;
float f;
c = 'b';
i = 3;
f = 6.5;
c = add(c, c);
i = add(i, i);
f = add(f, f);
}