tests/vg_regtest: Always evaluate prerequisite expressions with sh
[valgrind.git] / memcheck / tests / demangle.cpp
blobff15fe12c364e6d6f6e8318c79e6cef2ee5f4771
1 // Simple smoke test to see that the demangler is actually working
3 namespace abc {
4 template <typename T1, typename T2>
5 class def {
6 public:
7 T1 xyzzy(T1 *p, T2 *)
9 return *p ? 10 : 20;
14 template <typename T>
15 class magic {
16 public:
17 T xyzzy(T *p)
19 return (new abc::def<int,typeof(*this)>)->xyzzy(p, 0);
23 int main()
25 magic<int> *c = new magic<int>;
27 c->xyzzy(new int);
28 return 0;