HSA: support alignment for hsa_symbols (PR hsa/70391)
[official-gcc.git] / libvtv / testsuite / libvtv.cc / dataentry.cc
blob6246136e521a9bf708584e8cb034d4c91b6501bd
1 // { dg-do run }
3 template<int patch_dim, int patch_space_dim>
4 class DataOutInterface
6 public:
7 virtual ~DataOutInterface() {}
8 };
10 template <int dof_handler_dim, int patch_dim, int patch_space_dim=patch_dim>
11 class DataOut_DoFData : public DataOutInterface<patch_dim,patch_space_dim>
13 public:
14 virtual ~DataOut_DoFData() {}
16 class DataEntryBase {
17 public:
18 virtual ~DataEntryBase () {}
21 template <typename T>
22 class DataEntry : public DataEntryBase
24 public:
25 virtual ~DataEntry() {}
29 template <typename T> void Destroy(T * p) __attribute__((noinline));
30 template <typename T> void Destroy(T * p)
32 delete p;
35 int main()
37 DataOut_DoFData<3,3>::DataEntryBase * p = new DataOut_DoFData<3,3>::DataEntry<int>();
38 Destroy(p);