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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [extern-c-redecl5.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
// Contributed by Dodji Seketeli 
2
// Origin: PR c++/41020
3
// { dg-do compile }
4
 
5
 
6
class frok
7
{
8
  int this_errno;
9
  friend int fork (void); // { dg-error "previous declaration .*?C\\+\\+. linkage" }
10
};
11
 
12
extern "C" int
13
fork (void) // { dg-error "conflicts with new declaration .*?C. linkage" }}
14
{
15
  frok grouped;
16
  return grouped.this_errno;
17
}
18
 

powered by: WebSVN 2.1.0

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