OpenCores
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/] [cpp0x/] [nolinkage1.C] - Blame information for rev 320

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

Line No. Rev Author Line
1 301 jeremybenn
// DR 757 allows using types without linkage in declarations with linkage.
2
// Test that this doesn't lead to link-time collisions.
3
 
4
// { dg-additional-sources "nolinkage1a.cc" }
5
// { dg-do link }
6
// { dg-options -std=c++0x }
7
 
8
#include "nolinkage1.h"
9
 
10
typedef struct { int i; } *AP;
11
 
12
void f(AP) { }
13
 
14
A a;
15
 
16
static void g()
17
{
18
  struct B { };
19
  A a;
20
}
21
 
22
int main() { g(); f(0); }

powered by: WebSVN 2.1.0

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