1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do compile } // { dg-options "-fshow-column" } // GROUPS passed old-abort class Graph { // { dg-error "1:new types|1: note: \\(perhaps" } public: unsigned char N; Graph(void) {} // { dg-error "7:'Graph" } } Graph::Graph(void) // { dg-error "18:return type|1: error: redefinition" } { N = 10; }