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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [two-stage3.C] - Rev 149

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

// { dg-do compile }
// PR c++/2922

namespace tpl_ {

template<class T>
char test(T);

template<class T>
struct check
{
    static T const t;
    enum { value = 1 == sizeof(test(t)) };
};

double test(int);

}

bool const two_phase_lookup_supported = tpl_::check<int>::value;

int compile_time_assert[two_phase_lookup_supported ? 1 : -1];

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.