diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/pmf5.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/pmf5.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/pmf5.C b/gcc/testsuite/g++.old-deja/g++.jason/pmf5.C new file mode 100644 index 000000000..26fa9432a --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/pmf5.C @@ -0,0 +1,19 @@ +// { dg-do assemble } +// { dg-options "" } +// PRMS Id: 4985 + +struct Thing { + int OverloadFn() const; + void FunctionA(char* restOfLine); + void OverloadFn(char* restOfLine); +}; + +struct ThingEntry { + void (Thing::*_handler)(char* restOfLine); +}; + +static ThingEntry KeyWordTable[] = { + &Thing::FunctionA, + Thing::OverloadFn, +}; // { dg-error "assuming" "assuming" } implicit & +// { dg-message "note" "note" { target *-*-* } 18 } |