| 1 |
// PR c++/91118 |
| 2 |
// { dg-do compile } |
| 3 |
|
| 4 |
#include <typeinfo> |
| 5 |
|
| 6 |
struct S { virtual ~S (); }; |
| 7 |
void bar (const std::type_info &, const std::type_info &); |
| 8 |
|
| 9 |
void |
| 10 |
foo (S *p) |
| 11 |
{ |
| 12 |
#pragma omp parallel default (none) firstprivate (p) |
| 13 |
bar (typeid (*p), typeid (S)); |
| 14 |
} |