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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [spec24.C] - Blame information for rev 696

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

Line No. Rev Author Line
1 693 jeremybenn
// Copyright (C) 2005 Free Software Foundation, Inc.
2
// Contributed by Nathan Sidwell 1 June 2005 
3
 
4
// PR 20350: ICE on member specialization with later initialization
5
// Origin: Carlo Wood carlo@gcc.gnu.org
6
 
7
template  struct Mutex
8
{
9
  static int mutex;
10
};
11
 
12
template 
13
int Mutex::mutex = {1};
14
 
15
template <> int Mutex<0>::mutex;
16
template <> int Mutex<0>::mutex = 0;
17
 
18
void g()
19
{
20
  Mutex<0>::mutex = 0;
21
}
22
 

powered by: WebSVN 2.1.0

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