OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr35328.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/35328
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
struct A
6
{
7
  ~A ()();              // { dg-error "declared as function returning a function" }
8
};
9
struct B
10
{
11
  B ()();               // { dg-error "declared as function returning a function" }
12
};
13
struct C
14
{
15
  C ();
16
  C (const C &)();  // { dg-error "declared as function returning a function" }
17
};
18
 
19
void
20
foo ()
21
{
22
  A a;
23
  B b;
24
  C c;
25
  #pragma omp parallel firstprivate (a)
26
    ;
27
  #pragma omp parallel private (b)
28
    ;
29
  #pragma omp parallel firstprivate (c)
30
    ;
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.