[cfe-commits] r138167 - in /cfe/trunk/test/CodeGenObjCXX: 2007-10-03-MetadataPointers.mm 2010-08-04-Template.mm 2010-08-06-X.Y-syntax.mm

Eric Christopher echristo at apple.com
Fri Aug 19 17:25:36 PDT 2011


Author: echristo
Date: Fri Aug 19 19:25:36 2011
New Revision: 138167

URL: http://llvm.org/viewvc/llvm-project?rev=138167&view=rev
Log:
Migrate and update:

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

from llvm/test/FrontendObjC++.

Added:
    cfe/trunk/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm
    cfe/trunk/test/CodeGenObjCXX/2010-08-04-Template.mm
    cfe/trunk/test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm

Added: cfe/trunk/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm?rev=138167&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm (added)
+++ cfe/trunk/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm Fri Aug 19 19:25:36 2011
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
+
+ at class NSImage;
+void bork() {
+  NSImage *nsimage;
+  [nsimage release];
+}

Added: cfe/trunk/test/CodeGenObjCXX/2010-08-04-Template.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/2010-08-04-Template.mm?rev=138167&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/2010-08-04-Template.mm (added)
+++ cfe/trunk/test/CodeGenObjCXX/2010-08-04-Template.mm Fri Aug 19 19:25:36 2011
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -emit-llvm %s -o -
+struct TRunSoon {
+  template <class P1> static void Post() {}
+};
+
+ at implementation TPrivsTableViewMainController
+- (void) applyToEnclosed {
+  TRunSoon::Post<int>();
+}
+ at end

Added: cfe/trunk/test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm?rev=138167&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm (added)
+++ cfe/trunk/test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm Fri Aug 19 19:25:36 2011
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -emit-llvm %s -o -
+struct TFENode {
+  TFENode(const TFENode& inNode);
+};
+
+ at interface TIconViewController
+- (const TFENode&) target;
+ at end
+
+void sortAllChildrenForNode(const TFENode&node);
+
+ at implementation TIconViewController
+- (void) setArrangeBy {
+  sortAllChildrenForNode(self.target);
+}
+ at end





More information about the cfe-commits mailing list