mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Convert llvmc tests to FileCheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91420 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
+3
-2
@@ -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"))
|
||||
]>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user