URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [tpl-parallel-1.C] - Rev 856
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
int check;
template<typename T> void foo()
{
check |= sizeof(T);
}
template<typename T>
void bar(void)
{
#pragma omp parallel if (0)
foo<T>();
}
int main()
{
bar<char>();
bar<short>();
if (check != (sizeof(char) | sizeof(short)))
__builtin_trap ();
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log