1*404b540aSrobert // PR c++/24734 2*404b540aSrobert // { dg-do run } 3*404b540aSrobert 4*404b540aSrobert extern "C" void abort (); 5*404b540aSrobert int i; 6*404b540aSrobert 7*404b540aSrobert template<int> void foo()8*404b540aSrobertfoo () 9*404b540aSrobert { 10*404b540aSrobert #pragma omp parallel 11*404b540aSrobert { 12*404b540aSrobert #pragma omp master 13*404b540aSrobert i++; 14*404b540aSrobert } 15*404b540aSrobert } 16*404b540aSrobert 17*404b540aSrobert int main()18*404b540aSrobertmain () 19*404b540aSrobert { 20*404b540aSrobert foo<0> (); 21*404b540aSrobert if (i != 1) 22*404b540aSrobert abort (); 23*404b540aSrobert return 0; 24*404b540aSrobert } 25