diff options
author | Eric Christopher <echristo@apple.com> | 2011-08-20 00:25:36 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-08-20 00:25:36 +0000 |
commit | baa15d6b53c6fabeed69e433d4d7c77c6726fcc1 (patch) | |
tree | 80c6ee5f341b0d9fa909303afb2d4dbaa690b9ed | |
parent | f9a642f47e51ac66b91097f1f123e8ab0a06eb97 (diff) |
Migrate and update:
2007-10-03-MetadataPointers.mm
2010-08-04-Template.mm
2010-08-06-X.Y-syntax.mm
from llvm/test/FrontendObjC++.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138167 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm | 7 | ||||
-rw-r--r-- | test/CodeGenObjCXX/2010-08-04-Template.mm | 10 | ||||
-rw-r--r-- | test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm | 16 |
3 files changed, 33 insertions, 0 deletions
diff --git a/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm b/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm new file mode 100644 index 0000000000..2564d67ee5 --- /dev/null +++ b/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -emit-llvm %s -o /dev/null + +@class NSImage; +void bork() { + NSImage *nsimage; + [nsimage release]; +} diff --git a/test/CodeGenObjCXX/2010-08-04-Template.mm b/test/CodeGenObjCXX/2010-08-04-Template.mm new file mode 100644 index 0000000000..c53e3cb6da --- /dev/null +++ b/test/CodeGenObjCXX/2010-08-04-Template.mm @@ -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 diff --git a/test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm b/test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm new file mode 100644 index 0000000000..290aaf67bb --- /dev/null +++ b/test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm @@ -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 |