"Accidentally" fixed a bug with overloading of functions with

Objective-C objects as parameters in r146659. Add a test for it.

llvm-svn: 146660
This commit is contained in:
Douglas Gregor 2011-12-15 17:20:18 +00:00
parent 2039ca061f
commit 843e978324
1 changed files with 6 additions and 0 deletions

View File

@ -171,3 +171,9 @@ namespace rdar9327203 {
int &fr = (f)(x, 0);
}
}
namespace class_id {
// it's okay to overload Class with id.
void f(Class) { }
void f(id) { }
}