Pipe 'grep' output to 'count'.
authorMikhail Glushenkov <foldr@codedgers.com>
Tue, 15 Dec 2009 03:04:14 +0000 (03:04 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Tue, 15 Dec 2009 03:04:14 +0000 (03:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91403 91177308-0d34-0410-b5e6-96231b3b80d8

test/LLVMC/Init.td

index fbed6d413aa2d0753c12329ce6e842586905f5ac..d9a4fc1c1b12418792f633ff36bc6d42b25f466e 100644 (file)
@@ -1,7 +1,7 @@
 // Check that (init true/false) and (init "str") work.
 // RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
-// RUN: grep cl::init("some-string") %t
-// RUN: grep cl::init(true) %t
+// RUN: grep cl::init(\\"some-string\\") %t | count 1
+// RUN: grep cl::init(true) %t | count 1
 
 include "llvm/CompilerDriver/Common.td"