Merge to HEAD at tree-cleanup-merge-20041024 .
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / decl3.C
bloba03d2e9d53ecd6c66347f64bff2de149842b1ca3
1 // { dg-do assemble  }
3 // Origin:  Adapted by Nathan Sidwell 29 Apr 1999 <nathan@acm.org>
4 //          from a test case submitted by Corey Kosak <kosak@cs.cmu.edu>
5 //          http://gcc.gnu.org/ml/gcc-bugs/1999-04n/msg00505.html
7 // We should not allow arrays of abstract type. [class.abstract/2]
9 struct cow_t { // { dg-error "" } note
10   virtual void f()=0; // { dg-error "" } pure
14 int main()
16   cow_t cow[2];  // { dg-error "" } abstract class
17   cow[0].f();
18   return 0;