[llvm-commits] [llvm] r57193 - in /llvm/trunk/test: FrontendObjC++/2008-10-3-EhValue.mm FrontendObjC/2008-10-3-EhValue.mm

Evan Cheng evan.cheng at apple.com
Mon Oct 6 11:42:48 PDT 2008


Author: evancheng
Date: Mon Oct  6 13:42:48 2008
New Revision: 57193

URL: http://llvm.org/viewvc/llvm-project?rev=57193&view=rev
Log:
This is an objective-c test, not an objective-c++ one.

Added:
    llvm/trunk/test/FrontendObjC/2008-10-3-EhValue.mm
Removed:
    llvm/trunk/test/FrontendObjC++/2008-10-3-EhValue.mm

Removed: llvm/trunk/test/FrontendObjC++/2008-10-3-EhValue.mm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendObjC%2B%2B/2008-10-3-EhValue.mm?rev=57192&view=auto

==============================================================================
--- llvm/trunk/test/FrontendObjC++/2008-10-3-EhValue.mm (original)
+++ llvm/trunk/test/FrontendObjC++/2008-10-3-EhValue.mm (removed)
@@ -1,50 +0,0 @@
-// RUN: %llvmgcc -w -x objective-c++ -c %s -o /dev/null
-
- at interface Object {
- at public
-     Class isa;
-}
-+initialize;
-+alloc;
-+new;
-+free;
--free;
-+(Class)class;
--(Class)class;
--init;
--superclass;
--(const char *)name;
- at end
-
- at interface Frob: Object
- at end
-
- at implementation Frob: Object
- at end
-
-static Frob* _connection = ((void *)0);
-
-extern void abort(void);
-
-void test (Object* sendPort)
-{
- int cleanupPorts = 1;
- Frob* receivePort = ((void *)0);
-
- @try {
-  receivePort = (Frob *) -1;
-  _connection = (Frob *) -1;
-  receivePort = ((void *)0);
-  sendPort = ((void *)0);
-  cleanupPorts = 0;
-  @throw [Object new];
- }
- @catch(Frob *obj) {
-  if(!(0)) abort();
- }
- @catch(id exc) {
-  if(!(!receivePort)) abort();
-  if(!(!sendPort)) abort();
-  if(!(!cleanupPorts)) abort();
- }
-}

Added: llvm/trunk/test/FrontendObjC/2008-10-3-EhValue.mm
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendObjC/2008-10-3-EhValue.mm?rev=57193&view=auto

==============================================================================
--- llvm/trunk/test/FrontendObjC/2008-10-3-EhValue.mm (added)
+++ llvm/trunk/test/FrontendObjC/2008-10-3-EhValue.mm Mon Oct  6 13:42:48 2008
@@ -0,0 +1,50 @@
+// RUN: %llvmgcc -w -x objective-c -c %s -o /dev/null
+
+ at interface Object {
+ at public
+     Class isa;
+}
++initialize;
++alloc;
++new;
++free;
+-free;
++(Class)class;
+-(Class)class;
+-init;
+-superclass;
+-(const char *)name;
+ at end
+
+ at interface Frob: Object
+ at end
+
+ at implementation Frob: Object
+ at end
+
+static Frob* _connection = ((void *)0);
+
+extern void abort(void);
+
+void test (Object* sendPort)
+{
+ int cleanupPorts = 1;
+ Frob* receivePort = ((void *)0);
+
+ @try {
+  receivePort = (Frob *) -1;
+  _connection = (Frob *) -1;
+  receivePort = ((void *)0);
+  sendPort = ((void *)0);
+  cleanupPorts = 0;
+  @throw [Object new];
+ }
+ @catch(Frob *obj) {
+  if(!(0)) abort();
+ }
+ @catch(id exc) {
+  if(!(!receivePort)) abort();
+  if(!(!sendPort)) abort();
+  if(!(!cleanupPorts)) abort();
+ }
+}





More information about the llvm-commits mailing list