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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [template/] [ttp10.C] - Rev 801

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

// { dg-do compile }

// Origin: Ivan Godard <igodard@pacbell.net>
//         Wolfgang Bangerth <bangerth@ticam.utexas.edu>

// PR c++/16175: Missing cv qualifier in error message output

template <typename> struct Template {}; 
 
template<template<typename> class D> 
struct B { 
    static void foo1(const D<void> *);  // { dg-error "const" }
    static void foo2(volatile D<void> *);// { dg-error "volatile" }
}; 
 
class E : protected B<Template> {}; 
 
void bar() {
  E::foo1 (0);                          // { dg-error "context" }
  E::foo2 (0);                          // { dg-error "context" }
}

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.