summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/net22.C
blob: 604aef9bcc0b8362a869494faf227344f1c28881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// { dg-do assemble  }
class Parent {
public:
  Parent() {}
  Parent( char *s ) {}
};

class Child : public Parent {		// { dg-message "note" } called
};

int main() {
  Child c( "String initializer" );	// { dg-error "match" } bad
  // { dg-message "candidate" "candidate note" { target *-*-* } 12 }
  return 0;
}