1// { dg-do compile } 2 3template<typename T> 4struct S 5{ 6 T n; 7 void test(); 8 void work(); 9}; 10 11template<typename T> 12void S<T>::test() 13{ 14 #pragma omp parallel num_threads(n) // { dg-error "must be integral" } 15 work(); 16} 17 18template struct S<int>; 19template struct S<long>; 20template struct S<float>; // { dg-message "instantiated from here" } 21