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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
task-1.C
blob
0000e6f1fa9cd1f47cf7ac6fd88fe39885f9ab40
1
// { dg-do compile }
2
// { dg-options "-fopenmp" }
3
4
struct A { A (); ~A (); int i; };
5
6
template <typename T> void bar (T &);
7
8
const A a;
9
10
void foo (A &p)
11
{
12
const A &q = a;
13
#pragma omp task // { dg-error "has reference type" }
14
bar (p);
15
#pragma omp task // { dg-error "has reference type" }
16
bar (q);
17
}