[cfe-commits] r126175 - in /cfe/trunk/test: CodeGen/ CodeGenObjC/ Sema/ SemaObjC/

Anders Carlsson andersca at mac.com
Mon Feb 21 17:23:29 PST 2011


Author: andersca
Date: Mon Feb 21 19:23:29 2011
New Revision: 126175

URL: http://llvm.org/viewvc/llvm-project?rev=126175&view=rev
Log:
Move some Objective-C tests to SemaObjC and CodeGenObjC.

Added:
    cfe/trunk/test/CodeGenObjC/2008-08-25-incompatible-cond-expr.m
      - copied unchanged from r126170, cfe/trunk/test/CodeGen/2008-08-25-incompatible-cond-expr.m
    cfe/trunk/test/CodeGenObjC/2009-01-21-invalid-debug-info.m
      - copied unchanged from r126170, cfe/trunk/test/CodeGen/2009-01-21-invalid-debug-info.m
    cfe/trunk/test/CodeGenObjC/2010-02-09-DbgSelf.m
      - copied unchanged from r126170, cfe/trunk/test/CodeGen/2010-02-09-DbgSelf.m
    cfe/trunk/test/CodeGenObjC/2010-02-15-Dbg-MethodStart.m
      - copied unchanged from r126170, cfe/trunk/test/CodeGen/2010-02-15-Dbg-MethodStart.m
    cfe/trunk/test/CodeGenObjC/function-decay.m
      - copied unchanged from r126170, cfe/trunk/test/CodeGen/function-decay.m
    cfe/trunk/test/CodeGenObjC/illegal-UTF8.m
      - copied unchanged from r126170, cfe/trunk/test/CodeGen/illegal-UTF8.m
    cfe/trunk/test/CodeGenObjC/rdr-6732143-dangling-block-reference.m
      - copied unchanged from r126170, cfe/trunk/test/CodeGen/rdr-6732143-dangling-block-reference.m
    cfe/trunk/test/SemaObjC/block-as-object.m
      - copied unchanged from r126170, cfe/trunk/test/Sema/block-as-object.m
    cfe/trunk/test/SemaObjC/rdar6248119.m
      - copied unchanged from r126170, cfe/trunk/test/Sema/rdar6248119.m
Removed:
    cfe/trunk/test/CodeGen/2008-08-25-incompatible-cond-expr.m
    cfe/trunk/test/CodeGen/2009-01-21-invalid-debug-info.m
    cfe/trunk/test/CodeGen/2010-02-09-DbgSelf.m
    cfe/trunk/test/CodeGen/2010-02-15-Dbg-MethodStart.m
    cfe/trunk/test/CodeGen/function-decay.m
    cfe/trunk/test/CodeGen/illegal-UTF8.m
    cfe/trunk/test/CodeGen/rdr-6732143-dangling-block-reference.m
    cfe/trunk/test/Sema/block-as-object.m
    cfe/trunk/test/Sema/rdar6248119.m

Removed: cfe/trunk/test/CodeGen/2008-08-25-incompatible-cond-expr.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2008-08-25-incompatible-cond-expr.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/2008-08-25-incompatible-cond-expr.m (original)
+++ cfe/trunk/test/CodeGen/2008-08-25-incompatible-cond-expr.m (removed)
@@ -1,10 +0,0 @@
-// RUN: %clang_cc1 -emit-llvm -o %t %s
-
- at protocol P0
- at end
- at interface A <P0>
- at end
-
-id f0(int a, id<P0> x, A* p) {
-  return a ? x : p;
-}

Removed: cfe/trunk/test/CodeGen/2009-01-21-invalid-debug-info.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2009-01-21-invalid-debug-info.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/2009-01-21-invalid-debug-info.m (original)
+++ cfe/trunk/test/CodeGen/2009-01-21-invalid-debug-info.m (removed)
@@ -1,16 +0,0 @@
-// RUN: %clang_cc1 -S -g -o %t.s %s
-
-// FIXME: This test case can be removed at some point (since it will
-// no longer effectively test anything). The reason it was causing
-// trouble was the synthesized self decl in im1 was causing the debug
-// info for I1* to be generated, but referring to an invalid compile
-// unit. This was later referred to by f1 and created ill formed debug
-// information.
-
- at interface I1 @end
-
- at implementation I1
--im0 { return 0; }
- at end
-
-I1 *f1(void) { return 0; }

Removed: cfe/trunk/test/CodeGen/2010-02-09-DbgSelf.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2010-02-09-DbgSelf.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/2010-02-09-DbgSelf.m (original)
+++ cfe/trunk/test/CodeGen/2010-02-09-DbgSelf.m (removed)
@@ -1,14 +0,0 @@
-// RUN: %clang_cc1 -x objective-c -emit-llvm -g < %s | grep  "\"self\", metadata" 
-// Test to check that "self" argument is assigned a location.
-
- at interface Foo 
--(void) Bar: (int)x ;
- at end
-
-
- at implementation Foo
--(void) Bar: (int)x 
-{
-}
- at end
-

Removed: cfe/trunk/test/CodeGen/2010-02-15-Dbg-MethodStart.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/2010-02-15-Dbg-MethodStart.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/2010-02-15-Dbg-MethodStart.m (original)
+++ cfe/trunk/test/CodeGen/2010-02-15-Dbg-MethodStart.m (removed)
@@ -1,15 +0,0 @@
-// RUN: %clang_cc1 -x objective-c -emit-llvm -g < %s | grep  subprogram | grep "i32 9"
-// Test to check that subprogram start location.
-
- at interface Foo
--(int) barMethod;
- at end
-
- at implementation Foo
--(int) barMethod {
-  int i = 0;
-  int j = 1;
-  int k = 1;
-  return i + j + k;
-}
- at end

Removed: cfe/trunk/test/CodeGen/function-decay.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/function-decay.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/function-decay.m (original)
+++ cfe/trunk/test/CodeGen/function-decay.m (removed)
@@ -1,10 +0,0 @@
-// RUN: %clang_cc1 %s -emit-llvm -o -
-
- at interface I0 @end
- at implementation I0
-- (void) im0: (int (void)) a0 {
-}
- at end
-
-void func(int pf(void)) {
-}

Removed: cfe/trunk/test/CodeGen/illegal-UTF8.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/illegal-UTF8.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/illegal-UTF8.m (original)
+++ cfe/trunk/test/CodeGen/illegal-UTF8.m (removed)
@@ -1,6 +0,0 @@
-// RUN: %clang %s -S -m64 -o -
-
- at class NSString;
-
-
-NSString *S = @"\xff\xff___WAIT___"; // expected-warning {{input conversion stopped due to an input byte that does not belong to the input codeset UTF-8}}

Removed: cfe/trunk/test/CodeGen/rdr-6732143-dangling-block-reference.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/rdr-6732143-dangling-block-reference.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/CodeGen/rdr-6732143-dangling-block-reference.m (original)
+++ cfe/trunk/test/CodeGen/rdr-6732143-dangling-block-reference.m (removed)
@@ -1,10 +0,0 @@
-// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -emit-llvm %s -o -
-
-void f0(id x) {
-  @synchronized (x) {      
-    do { ; } while(0);
-    @try {
-    } @finally {
-    }
-  }
-}

Removed: cfe/trunk/test/Sema/block-as-object.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/block-as-object.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/Sema/block-as-object.m (original)
+++ cfe/trunk/test/Sema/block-as-object.m (removed)
@@ -1,20 +0,0 @@
-// RUN: %clang_cc1 %s -fsyntax-only -verify -fblocks
-
- at interface Whatever
-- copy;
- at end
-
-typedef long (^MyBlock)(id obj1, id obj2);
-
-void foo(MyBlock b) {
-    id bar = [b copy];
-}
-
-void foo2(id b) {
-}
-
-void foo3(void (^block)(void)) {
-    foo2(block);
-    id x;
-    foo(x);
-}

Removed: cfe/trunk/test/Sema/rdar6248119.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/rdar6248119.m?rev=126174&view=auto
==============================================================================
--- cfe/trunk/test/Sema/rdar6248119.m (original)
+++ cfe/trunk/test/Sema/rdar6248119.m (removed)
@@ -1,27 +0,0 @@
-// RUN: %clang_cc1 -fsyntax-only %s -verify
-// Test case for: 
-//   <rdar://problem/6248119> @finally doesn't introduce a new scope
-
-void f0() {
-  int i;
-  @try { 
-  } @finally {
-    int i = 0;
-  }
-}
-
-void f1() {
-  int i;
-  @try { 
-    int i =0;
-  } @finally {
-  }
-}
-
-void f2() {
-  int i;
-  @try { 
-  } @catch(id e) {
-    int i = 0;
-  }
-}





More information about the cfe-commits mailing list