diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-15 17:14:05 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-10-15 17:14:05 +0000 |
| commit | 3b937fa298ce68cac0c2f07a7a3476e272a0f4ad (patch) | |
| tree | a0d02973ca46324a7d7e44f8ca4ade5feaf153d9 /clang/test/SemaCXX/builtin-ptrtomember-ambig.cpp | |
| parent | 01b48676cd0951ad218d879b2bc32e06f88598eb (diff) | |
| download | bcm5719-llvm-3b937fa298ce68cac0c2f07a7a3476e272a0f4ad.tar.gz bcm5719-llvm-3b937fa298ce68cac0c2f07a7a3476e272a0f4ad.zip | |
Apply heuristics to cut back on number of candidate
sets of builtin operators. Currently, it is applied
to '++' and '->*' operators. I need to apply it to others
as well. Also, heuristics need be applied to
BuiltinCandidateTypeSet::AddPointerWithMoreQualifiedTypeVariants.
This is WIP.
llvm-svn: 84187
Diffstat (limited to 'clang/test/SemaCXX/builtin-ptrtomember-ambig.cpp')
| -rw-r--r-- | clang/test/SemaCXX/builtin-ptrtomember-ambig.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/builtin-ptrtomember-ambig.cpp b/clang/test/SemaCXX/builtin-ptrtomember-ambig.cpp index 7e20af35394..34652474f3b 100644 --- a/clang/test/SemaCXX/builtin-ptrtomember-ambig.cpp +++ b/clang/test/SemaCXX/builtin-ptrtomember-ambig.cpp @@ -19,6 +19,9 @@ struct C : B { void foo(C c, int A::* pmf) { // FIXME. Why so many built-in candidates? int i = c->*pmf; // expected-error {{use of overloaded operator '->*' is ambiguous}} \ - // expected-note 40 {{built-in candidate operator ->* ('struct A}} + // expected-note {{built-in candidate operator ->* ('struct A const *', 'int const struct A::*')}} \ + // expected-note {{built-in candidate operator ->* ('struct A const *', 'int struct A::*')}} \ + // expected-note {{built-in candidate operator ->* ('struct A *', 'int const struct A::*')}} \ + // expected-note {{built-in candidate operator ->* ('struct A *', 'int struct A::*')}} } |

