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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [partial-specialization.C] - Rev 825

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

// Contributed by Gabriel Dos Reis <gdr@codesourcery.com>
// Origin: philippeb@videotron.ca
// { dg-do compile }

struct B
{
        int i;
};

template <class _T, class _M, _M _T::* _V>
        struct A;

template <class _T, int _T::* _V>
        struct A<_T, int, _V>
        {
        };

int main()
{
        A<B, int, & B::i> a;
}

Go to most recent revision | 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.