[cfe-commits] r86431 - in /cfe/trunk/test/Index: Inputs/ Inputs/c-index-pch.h Inputs/foo.h Inputs/lit.local.cfg Inputs/objc.h Inputs/t1.c Inputs/t1.m Inputs/t2.c Inputs/t2.m c-index-pch.c c-index-pch.h find-decls.c find-defs.c find-refs.c foo.h objc-decls.m objc-message.m objc.h t1.c t1.m t2.c t2.m

Daniel Dunbar daniel at zuster.org
Sat Nov 7 17:46:19 PST 2009


Author: ddunbar
Date: Sat Nov  7 19:46:19 2009
New Revision: 86431

URL: http://llvm.org/viewvc/llvm-project?rev=86431&view=rev
Log:
Move test/Index input files into a sub directory (not scanned as tests).

Added:
    cfe/trunk/test/Index/Inputs/
    cfe/trunk/test/Index/Inputs/c-index-pch.h
      - copied, changed from r86430, cfe/trunk/test/Index/c-index-pch.h
    cfe/trunk/test/Index/Inputs/foo.h
      - copied, changed from r86430, cfe/trunk/test/Index/foo.h
    cfe/trunk/test/Index/Inputs/lit.local.cfg
    cfe/trunk/test/Index/Inputs/objc.h
      - copied, changed from r86430, cfe/trunk/test/Index/objc.h
    cfe/trunk/test/Index/Inputs/t1.c
      - copied, changed from r86430, cfe/trunk/test/Index/t1.c
    cfe/trunk/test/Index/Inputs/t1.m
      - copied, changed from r86430, cfe/trunk/test/Index/t1.m
    cfe/trunk/test/Index/Inputs/t2.c
      - copied, changed from r86430, cfe/trunk/test/Index/t2.c
    cfe/trunk/test/Index/Inputs/t2.m
      - copied, changed from r86430, cfe/trunk/test/Index/t2.m
Removed:
    cfe/trunk/test/Index/c-index-pch.h
    cfe/trunk/test/Index/foo.h
    cfe/trunk/test/Index/objc.h
    cfe/trunk/test/Index/t1.c
    cfe/trunk/test/Index/t1.m
    cfe/trunk/test/Index/t2.c
    cfe/trunk/test/Index/t2.m
Modified:
    cfe/trunk/test/Index/c-index-pch.c
    cfe/trunk/test/Index/find-decls.c
    cfe/trunk/test/Index/find-defs.c
    cfe/trunk/test/Index/find-refs.c
    cfe/trunk/test/Index/objc-decls.m
    cfe/trunk/test/Index/objc-message.m

Copied: cfe/trunk/test/Index/Inputs/c-index-pch.h (from r86430, cfe/trunk/test/Index/c-index-pch.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/Inputs/c-index-pch.h?p2=cfe/trunk/test/Index/Inputs/c-index-pch.h&p1=cfe/trunk/test/Index/c-index-pch.h&r1=86430&r2=86431&rev=86431&view=diff

==============================================================================
    (empty)

Copied: cfe/trunk/test/Index/Inputs/foo.h (from r86430, cfe/trunk/test/Index/foo.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/Inputs/foo.h?p2=cfe/trunk/test/Index/Inputs/foo.h&p1=cfe/trunk/test/Index/foo.h&r1=86430&r2=86431&rev=86431&view=diff

==============================================================================
    (empty)

Added: cfe/trunk/test/Index/Inputs/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/Inputs/lit.local.cfg?rev=86431&view=auto

==============================================================================
--- cfe/trunk/test/Index/Inputs/lit.local.cfg (added)
+++ cfe/trunk/test/Index/Inputs/lit.local.cfg Sat Nov  7 19:46:19 2009
@@ -0,0 +1 @@
+config.suffixes = []

Copied: cfe/trunk/test/Index/Inputs/objc.h (from r86430, cfe/trunk/test/Index/objc.h)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/Inputs/objc.h?p2=cfe/trunk/test/Index/Inputs/objc.h&p1=cfe/trunk/test/Index/objc.h&r1=86430&r2=86431&rev=86431&view=diff

==============================================================================
    (empty)

Copied: cfe/trunk/test/Index/Inputs/t1.c (from r86430, cfe/trunk/test/Index/t1.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/Inputs/t1.c?p2=cfe/trunk/test/Index/Inputs/t1.c&p1=cfe/trunk/test/Index/t1.c&r1=86430&r2=86431&rev=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/t1.c (original)
+++ cfe/trunk/test/Index/Inputs/t1.c Sat Nov  7 19:46:19 2009
@@ -26,6 +26,3 @@
 }
 
 int (^CP)(int) = ^(int x) { return x * global_var; };
-
-// Suppress 'no run line' failure.
-// RUN: true

Copied: cfe/trunk/test/Index/Inputs/t1.m (from r86430, cfe/trunk/test/Index/t1.m)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/Inputs/t1.m?p2=cfe/trunk/test/Index/Inputs/t1.m&p1=cfe/trunk/test/Index/t1.m&r1=86430&r2=86431&rev=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/t1.m (original)
+++ cfe/trunk/test/Index/Inputs/t1.m Sat Nov  7 19:46:19 2009
@@ -18,6 +18,3 @@
 +(void) my_method: (int)param {
 }
 @end
-
-// Suppress 'no run line' failure.
-// RUN: true

Copied: cfe/trunk/test/Index/Inputs/t2.c (from r86430, cfe/trunk/test/Index/t2.c)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/Inputs/t2.c?p2=cfe/trunk/test/Index/Inputs/t2.c&p1=cfe/trunk/test/Index/t2.c&r1=86430&r2=86431&rev=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/t2.c (original)
+++ cfe/trunk/test/Index/Inputs/t2.c Sat Nov  7 19:46:19 2009
@@ -9,6 +9,3 @@
   struct MyStruct *ms;
   ms->field_var = 10;
 }
-
-// Suppress 'no run line' failure.
-// RUN: true

Copied: cfe/trunk/test/Index/Inputs/t2.m (from r86430, cfe/trunk/test/Index/t2.m)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/Inputs/t2.m?p2=cfe/trunk/test/Index/Inputs/t2.m&p1=cfe/trunk/test/Index/t2.m&r1=86430&r2=86431&rev=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/t2.m (original)
+++ cfe/trunk/test/Index/Inputs/t2.m Sat Nov  7 19:46:19 2009
@@ -11,6 +11,3 @@
 -(void) my_method: (int)param {
 }
 @end
-
-// Suppress 'no run line' failure.
-// RUN: true

Modified: cfe/trunk/test/Index/c-index-pch.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/c-index-pch.c?rev=86431&r1=86430&r2=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/c-index-pch.c (original)
+++ cfe/trunk/test/Index/c-index-pch.c Sat Nov  7 19:46:19 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -emit-pch -x c -o %t.pch %S/c-index-pch.h
+// RUN: clang-cc -emit-pch -x c -o %t.pch %S/Inputs/c-index-pch.h
 // RUN: clang-cc -include-pch %t.pch -x c -emit-pch -o %t.ast %s
 // RUN: c-index-test %t.ast all | FileCheck -check-prefix=ALL %s
 // RUN: c-index-test %t.ast local | FileCheck -check-prefix=LOCAL %s

Removed: cfe/trunk/test/Index/c-index-pch.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/c-index-pch.h?rev=86430&view=auto

==============================================================================
--- cfe/trunk/test/Index/c-index-pch.h (original)
+++ cfe/trunk/test/Index/c-index-pch.h (removed)
@@ -1,7 +0,0 @@
-#ifndef C_INDEX_PCH_H
-#define C_INDEX_PCH_H
-
-void foo(int i, float f);
-extern int bar;
-
-#endif // C_INDEX_PCH_H

Modified: cfe/trunk/test/Index/find-decls.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/find-decls.c?rev=86431&r1=86430&r2=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/find-decls.c (original)
+++ cfe/trunk/test/Index/find-decls.c Sat Nov  7 19:46:19 2009
@@ -1,25 +1,25 @@
-// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast
-// RUN: clang-cc -fblocks -emit-pch %S/t2.c -o %t2.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t1.c -o %t1.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t2.c -o %t2.ast
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:8:7 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'foo.h:4:6,' %t | count 2
 // RUN: grep 't2.c:5:6,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:5:47 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:5:47 -print-decls > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:5:12,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:6:20 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:6:20 -print-decls > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:3:19,' %t
 
 // field test
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:21:6 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:21:6 -print-decls > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:12:7,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:22:21 -print-decls > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:22:21 -print-decls > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:16:7,' %t

Modified: cfe/trunk/test/Index/find-defs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/find-defs.c?rev=86431&r1=86430&r2=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/find-defs.c (original)
+++ cfe/trunk/test/Index/find-defs.c Sat Nov  7 19:46:19 2009
@@ -1,18 +1,18 @@
-// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast
-// RUN: clang-cc -fblocks -emit-pch %S/t2.c -o %t2.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t1.c -o %t1.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t2.c -o %t2.ast
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:1:14 -print-defs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:1:14 -print-defs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't2.c:3:5,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:3:9 -print-defs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:3:9 -print-defs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:3:6,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:4:9 -print-defs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:4:9 -print-defs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't2.c:5:6,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-defs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:8:7 -print-defs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't2.c:5:6,' %t

Modified: cfe/trunk/test/Index/find-refs.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/find-refs.c?rev=86431&r1=86430&r2=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/find-refs.c (original)
+++ cfe/trunk/test/Index/find-refs.c Sat Nov  7 19:46:19 2009
@@ -1,30 +1,30 @@
-// RUN: clang-cc -fblocks -emit-pch %S/t1.c -o %t1.ast
-// RUN: clang-cc -fblocks -emit-pch %S/t2.c -o %t2.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t1.c -o %t1.ast
+// RUN: clang-cc -fblocks -emit-pch %S/Inputs/t2.c -o %t2.ast
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:1:14 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:1:14 -print-refs > %t
 // RUN: cat %t | count 4
 // RUN: grep 't1.c:4:19,' %t
 // RUN: grep 't1.c:28:40,' %t
 // RUN: grep 't2.c:6:3,' %t
 // RUN: grep 't2.c:7:12,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:3:9 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:3:9 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't2.c:7:3,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:4:9 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:4:9 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:8:3,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:3:22 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:3:22 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:6:17,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:4:11 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:4:11 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:6:5,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:5:30 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:5:30 -print-refs > %t
 // RUN: cat %t | count 3
 // RUN: grep 't1.c:5:27,' %t
 // RUN: grep 't1.c:5:44,' %t
@@ -33,15 +33,15 @@
 // field test
 
 // FIXME: References point at the start of MemberExpr, make them point at the field instead.
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:12:7 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:12:7 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:21:3,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:16:7 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/t1.c:16:7 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.c:22:3,' %t
 
-// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:7:11 -print-refs > %t
+// RUN: index-test %t1.ast %t2.ast -point-at %S/Inputs/foo.h:7:11 -print-refs > %t
 // RUN: cat %t | count 2
 // RUN: grep 't1.c:25:3,' %t
 // RUN: grep 't2.c:10:3,' %t

Removed: cfe/trunk/test/Index/foo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/foo.h?rev=86430&view=auto

==============================================================================
--- cfe/trunk/test/Index/foo.h (original)
+++ cfe/trunk/test/Index/foo.h (removed)
@@ -1,8 +0,0 @@
-extern int global_var;
-
-void foo_func(int param1);
-void bar_func(void);
-
-struct MyStruct {
-  int field_var;
-};

Modified: cfe/trunk/test/Index/objc-decls.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/objc-decls.m?rev=86431&r1=86430&r2=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/objc-decls.m (original)
+++ cfe/trunk/test/Index/objc-decls.m Sat Nov  7 19:46:19 2009
@@ -1,16 +1,16 @@
-// RUN: clang-cc -emit-pch %S/t1.m -o %t1.m.ast
-// RUN: clang-cc -emit-pch %S/t2.m -o %t2.m.ast
+// RUN: clang-cc -emit-pch %S/Inputs/t1.m -o %t1.m.ast
+// RUN: clang-cc -emit-pch %S/Inputs/t2.m -o %t2.m.ast
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:12:12 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/t1.m:12:12 -print-decls > %t
 // RUN: cat %t | count 2
 // RUN: grep 'objc.h:2:9,' %t | count 2
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:5:13 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:5:13 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:5:1,' %t | count 2
 // RUN: grep 't1.m:15:1,' %t | count 1
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:10:13 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:10:13 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:10:1,' %t | count 2
 // RUN: grep 't2.m:11:1,' %t | count 1

Modified: cfe/trunk/test/Index/objc-message.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/objc-message.m?rev=86431&r1=86430&r2=86431&view=diff

==============================================================================
--- cfe/trunk/test/Index/objc-message.m (original)
+++ cfe/trunk/test/Index/objc-message.m Sat Nov  7 19:46:19 2009
@@ -1,38 +1,38 @@
-// RUN: clang-cc -emit-pch %S/t1.m -o %t1.m.ast
-// RUN: clang-cc -emit-pch %S/t2.m -o %t2.m.ast
+// RUN: clang-cc -emit-pch %S/Inputs/t1.m -o %t1.m.ast
+// RUN: clang-cc -emit-pch %S/Inputs/t2.m -o %t2.m.ast
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:5:13 -print-refs > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:5:13 -print-refs > %t
 // RUN: cat %t | count 1
 // RUN: grep 't1.m:6:3,' %t
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:6:13 -print-refs > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:6:13 -print-refs > %t
 // RUN: cat %t | count 2
 // RUN: grep 't1.m:7:3,' %t
 // RUN: grep 't2.m:7:3,' %t
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/objc.h:10:13 -print-refs > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:10:13 -print-refs > %t
 // RUN: cat %t | count 2
 // RUN: grep 't1.m:6:3,' %t
 // RUN: grep 't2.m:6:3,' %t
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:6:15 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/t1.m:6:15 -print-decls > %t
 // RUN: cat %t | count 6
 // RUN: grep 'objc.h:5:1,' %t | count 2
 // RUN: grep 'objc.h:10:1,' %t | count 2
 // RUN: grep 't1.m:15:1,' %t
 // RUN: grep 't2.m:11:1,' %t
 
-// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/t1.m:7:15 -print-decls > %t
+// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/t1.m:7:15 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:6:1,' %t | count 2
 // RUN: grep 't1.m:18:1,' %t
 
-// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/t2.m:6:15 -print-decls > %t
+// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/Inputs/t2.m:6:15 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:10:1,' %t | count 2
 // RUN: grep 't2.m:11:1,' %t
 
-// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/t2.m:7:15 -print-decls > %t
+// RUN: index-test %t2.m.ast %t1.m.ast -point-at %S/Inputs/t2.m:7:15 -print-decls > %t
 // RUN: cat %t | count 3
 // RUN: grep 'objc.h:6:1,' %t | count 2
 // RUN: grep 't1.m:18:1,' %t

Removed: cfe/trunk/test/Index/objc.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/objc.h?rev=86430&view=auto

==============================================================================
--- cfe/trunk/test/Index/objc.h (original)
+++ cfe/trunk/test/Index/objc.h (removed)
@@ -1,11 +0,0 @@
- at interface Base {
-    int my_var;
-}
--(int) my_var;
--(void) my_method: (int)param;
-+(void) my_method: (int)param;
- at end
-
- at interface Sub : Base
--(void) my_method: (int)param;
- at end

Removed: cfe/trunk/test/Index/t1.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/t1.c?rev=86430&view=auto

==============================================================================
--- cfe/trunk/test/Index/t1.c (original)
+++ cfe/trunk/test/Index/t1.c (removed)
@@ -1,31 +0,0 @@
-#include "foo.h"
-
-void foo_func(int param1) {
-  int local_var = global_var;
-  for (int for_var = 100; for_var < 500; ++for_var) {
-    local_var = param1 + for_var;
-  }
-  bar_func();
-}
-
-struct S1 {
-  int x;
-};
-
-struct S2 {
-  int x;
-};
-
-void field_test(void) {
-  struct S1 s1;
-  s1.x = 0;
-  ((struct S2 *)0)->x = 0;
-  
-  struct MyStruct ms;
-  ms.field_var = 10;
-}
-
-int (^CP)(int) = ^(int x) { return x * global_var; };
-
-// Suppress 'no run line' failure.
-// RUN: true

Removed: cfe/trunk/test/Index/t1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/t1.m?rev=86430&view=auto

==============================================================================
--- cfe/trunk/test/Index/t1.m (original)
+++ cfe/trunk/test/Index/t1.m (removed)
@@ -1,23 +0,0 @@
-#include "objc.h"
-
-static void foo() {
-  Base *base;
-  int x = [base my_var];
-  [base my_method:x];
-  [Base my_method:x];
-}
-
- at implementation Base
--(int) my_var {
-  return my_var;
-}
-
--(void) my_method: (int)param {
-}
-
-+(void) my_method: (int)param {
-}
- at end
-
-// Suppress 'no run line' failure.
-// RUN: true

Removed: cfe/trunk/test/Index/t2.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/t2.c?rev=86430&view=auto

==============================================================================
--- cfe/trunk/test/Index/t2.c (original)
+++ cfe/trunk/test/Index/t2.c (removed)
@@ -1,14 +0,0 @@
-#include "foo.h"
-
-int global_var = 10;
-
-void bar_func(void) {
-  global_var += 100;
-  foo_func(global_var);
-
-  struct MyStruct *ms;
-  ms->field_var = 10;
-}
-
-// Suppress 'no run line' failure.
-// RUN: true

Removed: cfe/trunk/test/Index/t2.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Index/t2.m?rev=86430&view=auto

==============================================================================
--- cfe/trunk/test/Index/t2.m (original)
+++ cfe/trunk/test/Index/t2.m (removed)
@@ -1,16 +0,0 @@
-#include "objc.h"
-
-static void foo() {
-  Sub *sub;
-  int x = [sub my_var];
-  [sub my_method:x];
-  [Sub my_method:x];
-}
-
- at implementation Sub
--(void) my_method: (int)param {
-}
- at end
-
-// Suppress 'no run line' failure.
-// RUN: true





More information about the cfe-commits mailing list