aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLVMC/Init.td
diff options
context:
space:
mode:
Diffstat (limited to 'test/LLVMC/Init.td')
-rw-r--r--test/LLVMC/Init.td5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/LLVMC/Init.td b/test/LLVMC/Init.td
index 3d68d05..355d83f 100644
--- a/test/LLVMC/Init.td
+++ b/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"))
]>;