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.0rc4/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [static6.C] - Rev 519

Compare with Previous | Blame | View Log

// { dg-do link }
// { dg-xfail-if "" { *-*-aout *-*-coff *-*-hms } { "*" } { "" } }

// Simplified from testcase by Erez Louidor Lior <s3824888@techst02.technion.ac.il>

template <class T> struct A {
 static const int l[1];
};

template<class T>
const int A<T>::l[1] = {1};

int i = A<int>::l[0];

int main(){}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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