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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [spec26.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// From: lat@iki.fi (Lassi A. Tuura)
3
// Test that a specialization without an initializer is not a definition,
4
// as specified in [temp.expl.spec].
5
 
6
 
7
struct X;
8
template  struct Y { static const X array[]; };
9
template <> const X Y::array [];
10
struct X { int i; };
11
template <> const X Y::array [] = { 0, 1, 2, 3 };

powered by: WebSVN 2.1.0

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