summaryrefslogtreecommitdiffstats
path: root/llvm/test/LLVMC/OptionPreprocessor.td
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-12-15 07:21:14 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-12-15 07:21:14 +0000
commit66a664870b0faf134399f3182abde0c821d7f040 (patch)
tree87b2e4de41e759e768d66d6a8a360677bc078b82 /llvm/test/LLVMC/OptionPreprocessor.td
parent62b65ecf18aaff0ac99fd30d4318e89ffe68e14c (diff)
downloadbcm5719-llvm-66a664870b0faf134399f3182abde0c821d7f040.tar.gz
bcm5719-llvm-66a664870b0faf134399f3182abde0c821d7f040.zip
Convert llvmc tests to FileCheck.
llvm-svn: 91420
Diffstat (limited to 'llvm/test/LLVMC/OptionPreprocessor.td')
-rw-r--r--llvm/test/LLVMC/OptionPreprocessor.td12
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/test/LLVMC/OptionPreprocessor.td b/llvm/test/LLVMC/OptionPreprocessor.td
index 2f5e68bfe51..5661db865d7 100644
--- a/llvm/test/LLVMC/OptionPreprocessor.td
+++ b/llvm/test/LLVMC/OptionPreprocessor.td
@@ -1,8 +1,6 @@
// Test for the OptionPreprocessor and any*.
-// RUN: ignore tblgen -I %p/../../include --gen-llvmc %s -o %t
-// RUN: grep W1 %t
-// RUN: grep W2 %t
-// RUN: grep W3 %t
+// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
+// RUN: FileCheck -input-file %t %s
// RUN: %compile_cxx -fexceptions -x c++ %t
include "llvm/CompilerDriver/Common.td"
@@ -17,10 +15,14 @@ def OptList : OptionList<[
]>;
def Preprocess : OptionPreprocessor<
-(case (and (switch_on "foo"), (any_switch_on ["bar", "baz"])),
+(case
+ // CHECK: W1
+ (and (switch_on "foo"), (any_switch_on ["bar", "baz"])),
(warning "W1"),
+ // CHECK: W2
(and (switch_on ["foo", "bar"]), (any_empty ["foo_p", "bar_p"])),
(warning "W2"),
+ // CHECK: W3
(and (empty ["foo_p", "bar_p"]), (any_not_empty ["baz_p"])),
(warning "W3"))
>;
OpenPOWER on IntegriCloud