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/] [qualttp21.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
// Copyright (C) 2002 Free Software Foundation
2
// Contributed by Roger Sayle 
3
// { dg-do compile }
4
 
5
template 
6
class foo {
7
   int _foo;
8
public:
9
   foo() {}
10
protected:
11
   ~foo() {} // { dg-error "~foo" }
12
};
13
 
14
int main()
15
{
16
  foo a; // { dg-error "context" }
17
}

powered by: WebSVN 2.1.0

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