aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLVMC/MultiValuedOption.td
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-12-15 03:04:52 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-12-15 03:04:52 +0000
commite4ac23a0ffbf3ad6eb94fce4e0fb2b934b84cbe4 (patch)
tree6f53530e91bde17f4c0d73fbc6b249d15c273847 /test/LLVMC/MultiValuedOption.td
parentb5fab402d02671f92ea7fc6166ba80e00d6a8388 (diff)
downloadexternal_llvm-e4ac23a0ffbf3ad6eb94fce4e0fb2b934b84cbe4.zip
external_llvm-e4ac23a0ffbf3ad6eb94fce4e0fb2b934b84cbe4.tar.gz
external_llvm-e4ac23a0ffbf3ad6eb94fce4e0fb2b934b84cbe4.tar.bz2
Validate the generated C++ code in llvmc tests.
Checks that the code generated by 'tblgen --emit-llvmc' can be actually compiled. Also fixes two bugs found in this way: - forward_transformed_value didn't work with non-list arguments - cl::ZeroOrOne is now called cl::Optional git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91404 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLVMC/MultiValuedOption.td')
-rw-r--r--test/LLVMC/MultiValuedOption.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/LLVMC/MultiValuedOption.td b/test/LLVMC/MultiValuedOption.td
index bd1e033..108eb86 100644
--- a/test/LLVMC/MultiValuedOption.td
+++ b/test/LLVMC/MultiValuedOption.td
@@ -2,6 +2,7 @@
// The dummy tool and graph are required to silence warnings.
// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
// RUN: grep cl::multi_val(2) %t | count 1
+// RUN: %compile_cxx -fexceptions -x c++ %t
include "llvm/CompilerDriver/Common.td"