2 // Test that g++ complains about referring to a builtin type in a
4 // Contributed by Kevin Buhr <buhr@stat.wisc.edu>
8 struct foo { // { dg-message "note" } candidate
9 foo(int x) { r = 1; } // { dg-message "note" }
14 bar() : bar::an_int(3) {} // { dg-error "match" "match" } not a base
15 // { dg-message "candidate" "candidate note" { target *-*-* } 14 }
16 // { dg-message "expected" "exp" { target *-*-* } 14 }