aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-12-18 11:27:26 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-12-18 11:27:26 +0000
commit9503b49462a482d7566077d6bbb368d798611390 (patch)
treeaf3b2b6e4cc1d329ec16226a038fcc71b61d6794 /test
parent97b087c77898c7f47252853df47b568f2b621d17 (diff)
downloadexternal_llvm-9503b49462a482d7566077d6bbb368d798611390.zip
external_llvm-9503b49462a482d7566077d6bbb368d798611390.tar.gz
external_llvm-9503b49462a482d7566077d6bbb368d798611390.tar.bz2
Make 'set_option' work with list options.
This works now: (set_option "list_opt", ["val_1", "val_2", "val_3"]) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/LLVMC/OptionPreprocessor.td7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/LLVMC/OptionPreprocessor.td b/test/LLVMC/OptionPreprocessor.td
index 44ebfa4..e5d6bbb 100644
--- a/test/LLVMC/OptionPreprocessor.td
+++ b/test/LLVMC/OptionPreprocessor.td
@@ -27,8 +27,13 @@ def Preprocess : OptionPreprocessor<
// CHECK: W2
// CHECK: foo = true;
// CHECK: foo_p = "asdf";
+ // CHECK: foo_l.clear();
+ // CHECK: foo_l.push_back("qwert");
+ // CHECK: foo_l.push_back("yuiop");
+ // CHECK: foo_l.push_back("asdf");
(and (switch_on ["foo", "bar"]), (any_empty ["foo_p", "bar_p"])),
- [(warning "W2"), (set_option "foo"), (set_option "foo_p", "asdf")],
+ [(warning "W2"), (set_option "foo"), (set_option "foo_p", "asdf"),
+ (set_option "foo_l", ["qwert", "yuiop", "asdf"])],
// CHECK: W3
// CHECK: foo = true;
// CHECK: bar = true;