URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [tpl-parallel-1.C] - Rev 315
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