view libgomp/testsuite/libgomp.c++/task-7.C @ 48:9907f3135723

update CbC on GCC from 4.4.2 to 4.4.3.
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Sun, 07 Feb 2010 17:48:31 +0900
parents a06113de4d67
children
line wrap: on
line source

// PR c++/36523
// { dg-do run }

template<typename T>
struct A
{
  A() { }
  A(const A&) { }
  void foo() { }
};

int main()
{
  A<int> a;
  #pragma omp task firstprivate (a)
    a.foo();
  return 0;
}