summaryrefslogtreecommitdiff
path: root/test/LLVMC/ExternOptions.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/ExternOptions.td
parentb5fab402d02671f92ea7fc6166ba80e00d6a8388 (diff)
downloadllvm-e4ac23a0ffbf3ad6eb94fce4e0fb2b934b84cbe4.tar.gz
llvm-e4ac23a0ffbf3ad6eb94fce4e0fb2b934b84cbe4.tar.bz2
llvm-e4ac23a0ffbf3ad6eb94fce4e0fb2b934b84cbe4.tar.xz
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/ExternOptions.td')
-rw-r--r--test/LLVMC/ExternOptions.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/LLVMC/ExternOptions.td b/test/LLVMC/ExternOptions.td
index 5c69af7d80..4694b106e2 100644
--- a/test/LLVMC/ExternOptions.td
+++ b/test/LLVMC/ExternOptions.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 {extern .* AutoGeneratedSwitch_Wall} %t
+// RUN: %compile_cxx -fexceptions -x c++ %t
include "llvm/CompilerDriver/Common.td"