annotate gcc/testsuite/g++.dg/ext/ms-1.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1
kono
parents:
diff changeset
2 // MS allows more things to be pointers to member functions
kono
parents:
diff changeset
3 // { dg-options "-fms-extensions" }
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 struct X
kono
parents:
diff changeset
6 {
kono
parents:
diff changeset
7 void Foo (X *);
kono
parents:
diff changeset
8 void Bar ();
kono
parents:
diff changeset
9 };
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 void Quux (void (X::*) ());
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 void X::Foo (X *ptr) // { dg-message "candidate" }
kono
parents:
diff changeset
14 {
kono
parents:
diff changeset
15 Quux (Foo); // { dg-error "no matches" }
kono
parents:
diff changeset
16 Quux (Bar);
kono
parents:
diff changeset
17 }