Added fixmes.

llvm-svn: 51964
This commit is contained in:
Ted Kremenek 2008-06-04 20:48:08 +00:00
parent d9c2607014
commit 46267c839d
2 changed files with 4 additions and 0 deletions

View File

@ -339,6 +339,8 @@ static bool ClassImplementsProtocol(ObjCProtocolDecl *lProto,
// In gcc, it is also allowed assigning a protocol-qualified 'id'
// type to a LHS object when protocol in qualified LHS is in list
// of protocols in the rhs 'id' object. This IMO, should be a bug.
// FIXME: Treat this as an extension, and flag this as an error when
// GCC extensions are not enabled.
else if (RHSIsQualifiedID &&
ProtocolCompatibleWithProtocol(protoList[i], lProto))
return true;

View File

@ -1,4 +1,6 @@
// RUN: clang -fsyntax-only %s
// FIXME: This test case tests the patch applied in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080602/006017.html
// Eventually that logic should be treated as an extension.
typedef signed char BOOL;
typedef int NSInteger;