Migrate and update:

2007-10-03-MetadataPointers.mm
2010-08-04-Template.mm
2010-08-06-X.Y-syntax.mm

from llvm/test/FrontendObjC++.

llvm-svn: 138167
This commit is contained in:
Eric Christopher 2011-08-20 00:25:36 +00:00
parent 50507663a6
commit 2be76cd1b3
3 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,7 @@
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
@class NSImage;
void bork() {
NSImage *nsimage;
[nsimage release];
}

View File

@ -0,0 +1,10 @@
// RUN: %clang_cc1 -emit-llvm %s -o -
struct TRunSoon {
template <class P1> static void Post() {}
};
@implementation TPrivsTableViewMainController
- (void) applyToEnclosed {
TRunSoon::Post<int>();
}
@end

View File

@ -0,0 +1,16 @@
// RUN: %clang_cc1 -emit-llvm %s -o -
struct TFENode {
TFENode(const TFENode& inNode);
};
@interface TIconViewController
- (const TFENode&) target;
@end
void sortAllChildrenForNode(const TFENode&node);
@implementation TIconViewController
- (void) setArrangeBy {
sortAllChildrenForNode(self.target);
}
@end