summaryrefslogtreecommitdiffstats
path: root/llvm/test/LLVMC/Init.td
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/LLVMC/Init.td')
-rw-r--r--llvm/test/LLVMC/Init.td5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/LLVMC/Init.td b/llvm/test/LLVMC/Init.td
index 3d68d050ee9..355d83ff95a 100644
--- a/llvm/test/LLVMC/Init.td
+++ b/llvm/test/LLVMC/Init.td
@@ -1,13 +1,14 @@
// 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 | count 1
-// RUN: grep cl::init(true) %t | count 1
+// RUN: FileCheck -input-file %t %s
// RUN: %compile_cxx -fexceptions -x c++ %t
include "llvm/CompilerDriver/Common.td"
def OptList : OptionList<[
+// CHECK: cl::init(true)
(switch_option "dummy1", (help "none"), (init true)),
+// CHECK: cl::init("some-string")
(parameter_option "dummy2", (help "none"), (init "some-string"))
]>;
OpenPOWER on IntegriCloud