[cfe-commits] r146660 - /cfe/trunk/test/SemaObjCXX/overload.mm
Douglas Gregor
dgregor at apple.com
Thu Dec 15 09:20:18 PST 2011
Author: dgregor
Date: Thu Dec 15 11:20:18 2011
New Revision: 146660
URL: http://llvm.org/viewvc/llvm-project?rev=146660&view=rev
Log:
"Accidentally" fixed a bug with overloading of functions with
Objective-C objects as parameters in r146659. Add a test for it.
Modified:
cfe/trunk/test/SemaObjCXX/overload.mm
Modified: cfe/trunk/test/SemaObjCXX/overload.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjCXX/overload.mm?rev=146660&r1=146659&r2=146660&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjCXX/overload.mm (original)
+++ cfe/trunk/test/SemaObjCXX/overload.mm Thu Dec 15 11:20:18 2011
@@ -171,3 +171,9 @@
int &fr = (f)(x, 0);
}
}
+
+namespace class_id {
+ // it's okay to overload Class with id.
+ void f(Class) { }
+ void f(id) { }
+}
More information about the cfe-commits
mailing list