summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-03-03 00:03:22 +0000
committerDouglas Gregor <dgregor@apple.com>2010-03-03 00:03:22 +0000
commita75600b7d8367fc836960a56e77e3674ab087009 (patch)
tree1920db42404988e423871becfd0c46500f3bd0b2
parentf6fcdbcf9c23f0e1f1559de5b02cc903df6c8dbd (diff)
downloadbcm5719-llvm-a75600b7d8367fc836960a56e77e3674ab087009.tar.gz
bcm5719-llvm-a75600b7d8367fc836960a56e77e3674ab087009.zip
Don't use echo in the Index test, which I hope will work around an intermittent Windows failure
llvm-svn: 97613
-rw-r--r--clang/test/Index/Inputs/cindex-from-source.h1
-rw-r--r--clang/test/Index/cindex-from-source.m4
2 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/Index/Inputs/cindex-from-source.h b/clang/test/Index/Inputs/cindex-from-source.h
new file mode 100644
index 00000000000..d13d397632b
--- /dev/null
+++ b/clang/test/Index/Inputs/cindex-from-source.h
@@ -0,0 +1 @@
+typedef int t0;
diff --git a/clang/test/Index/cindex-from-source.m b/clang/test/Index/cindex-from-source.m
index 6c5d936e206..86e794db891 100644
--- a/clang/test/Index/cindex-from-source.m
+++ b/clang/test/Index/cindex-from-source.m
@@ -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:{{.*}}:{{.*}}
OpenPOWER on IntegriCloud