]> granicus.if.org Git - clang/commitdiff
Migrate and update:
authorEric Christopher <echristo@apple.com>
Sat, 20 Aug 2011 00:25:36 +0000 (00:25 +0000)
committerEric Christopher <echristo@apple.com>
Sat, 20 Aug 2011 00:25:36 +0000 (00:25 +0000)
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

test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm [new file with mode: 0644]
test/CodeGenObjCXX/2010-08-04-Template.mm [new file with mode: 0644]
test/CodeGenObjCXX/2010-08-06-X.Y-syntax.mm [new file with mode: 0644]

diff --git a/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm b/test/CodeGenObjCXX/2007-10-03-MetadataPointers.mm
new file mode 100644 (file)
index 0000000..2564d67
--- /dev/null
@@ -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 (file)
index 0000000..c53e3cb
--- /dev/null
@@ -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 (file)
index 0000000..290aaf6
--- /dev/null
@@ -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