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.0rc3/] [gcc/] [testsuite/] [g++.dg/] [template/] [ttp10.C] - Rev 516
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" }
}