Functions
test_type.cxx File Reference
#include "WireCellUtil/Type.h"
#include "WireCellUtil/Testing.h"
#include <iostream>
#include <vector>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 9 of file test_type.cxx.

10 {
11  int i;
12  vector<int> vi;
13 
14 
15  cerr << "int: " << type(i) << endl;
16  cerr << "vector<int>: \"" << type(vi) << "\"\n";
17 
18 
19 // the two don't give exactly the same pattern....
20 #if defined (__clang__)
21  AssertMsg("std::__1::vector<int, std::__1::allocator<int> >" == type(vi), "Clang demangling fails");
22 #else
23  AssertMsg("std::vector<int, std::allocator<int> >" == type(vi), "GCC demangling fails");
24 #endif
25 
26 }
static QCString type
Definition: declinfo.cpp:672
#define AssertMsg
Definition: Testing.h:8
QTextStream & endl(QTextStream &s)