X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FLLVMC%2FExternOptions.td;h=a05f2ca15b6f125b2ef567f57a67e357edf32a5e;hb=9e6d1d1f5034347d237941f1bf08fba5c1583cd3;hp=d38675c55e03c65b1ce91f344d24f845c44eb218;hpb=15dcc2a15ba97359093410ba7d4f76c53cddf938;p=oota-llvm.git diff --git a/test/LLVMC/ExternOptions.td b/test/LLVMC/ExternOptions.td index d38675c55e0..a05f2ca15b6 100644 --- a/test/LLVMC/ExternOptions.td +++ b/test/LLVMC/ExternOptions.td @@ -1,14 +1,19 @@ // Check that extern options work. // The dummy tool and graph are required to silence warnings. -// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep extern +// 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" -def OptList : OptionList<[(extern_switch "Wall"), - (extern_parameter "std"), (extern_list "L")]>; +// CHECK: extern cl::opt AutoGeneratedSwitch_Wall + +def OptList : OptionList<[(switch_option "Wall", (extern)), + (parameter_option "std", (extern)), + (prefix_list_option "L", (extern))]>; def dummy_tool : Tool<[ -(cmd_line "dummy_cmd"), +(cmd_line "dummy_cmd $INFILE"), (in_language "dummy"), (out_language "dummy"), (actions (case