// { dg-do assemble } // Origin: Adapted by Nathan Sidwell 29 Apr 1999 // from a test case submitted by Corey Kosak // 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-message "pure" } virtual void f()=0; // { dg-message "note" } }; int main() { cow_t cow[2]; // { dg-error "invalid abstract type" } cow[0].f(); return 0; }