From 7ab8ef99e6b9064861b8d786a40560d74f96b421 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 15 Dec 2011 17:20:18 +0000 Subject: [PATCH] "Accidentally" fixed a bug with overloading of functions with Objective-C objects as parameters in r146659. Add a test for it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146660 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/SemaObjCXX/overload.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/SemaObjCXX/overload.mm b/test/SemaObjCXX/overload.mm index ea5f0e5932..3139876bd2 100644 --- a/test/SemaObjCXX/overload.mm +++ b/test/SemaObjCXX/overload.mm @@ -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) { } +}