]> granicus.if.org Git - clang/commitdiff
Don't use echo in the Index test, which I hope will work around an intermittent Windo...
authorDouglas Gregor <dgregor@apple.com>
Wed, 3 Mar 2010 00:03:22 +0000 (00:03 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 3 Mar 2010 00:03:22 +0000 (00:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97613 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/Inputs/cindex-from-source.h [new file with mode: 0644]
test/Index/cindex-from-source.m

diff --git a/test/Index/Inputs/cindex-from-source.h b/test/Index/Inputs/cindex-from-source.h
new file mode 100644 (file)
index 0000000..d13d397
--- /dev/null
@@ -0,0 +1 @@
+typedef int t0;
index 6c5d936e20661990a01f1d78d0ae60a0a50b0e07..86e794db891644d32ee41c3f18effd76895fa7f5 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: echo 'typedef int t0;' > %t.pfx.h
-// RUN: %clang -x objective-c-header %t.pfx.h -o %t.pfx.h.gch
+
+// RUN: %clang -x objective-c-header %S/Inputs/cindex-from-source.h -o %t.pfx.h.gch
 // RUN: c-index-test -test-load-source local %s -include %t.pfx.h > %t
 // RUN: FileCheck %s < %t
 // CHECK: cindex-from-source.m:{{.*}}:{{.*}}: StructDecl=s0:{{.*}}:{{.*}}