repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
S/390: Deprecate g5 and g6 CPU levels
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
tpl-parallel-1.C
blob
886d07e215b1979c6150fa9256989c67fb1b1715
1
// { dg-do compile }
2
3
int check;
4
5
template<typename T> void foo()
6
{
7
check |= sizeof(T);
8
}
9
10
template<typename T>
11
void bar(void)
12
{
13
#pragma omp parallel if (0)
14
foo<T>();
15
}
16
17
int main()
18
{
19
bar<char>();
20
bar<short>();
21
if (check != (sizeof(char) | sizeof(short)))
22
__builtin_trap ();
23
return 0;
24
}