URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [decl3.C] - Rev 823
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do assemble }
// Origin: Adapted by Nathan Sidwell 29 Apr 1999 <nathan@acm.org>
// from a test case submitted by Corey Kosak <kosak@cs.cmu.edu>
// http://gcc.gnu.org/ml/gcc-bugs/1999-04n/msg00505.html
// We should not allow arrays of abstract type. [class.abstract/2]
struct cow_t { // { dg-error "" } note
virtual void f()=0; // { dg-error "" } pure
};
int main()
{
cow_t cow[2]; // { dg-error "" } abstract class
cow[0].f();
return 0;
}
Go to most recent revision | Compare with Previous | Blame | View Log