forked from OSchip/llvm-project
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:
parent
50507663a6
commit
2be76cd1b3
|
@ -0,0 +1,7 @@
|
|||
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
|
||||
|
||||
@class NSImage;
|
||||
void bork() {
|
||||
NSImage *nsimage;
|
||||
[nsimage release];
|
||||
}
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue