Add missing newlines at EOF (for clang++).
[oota-llvm.git] / test / LLVMC / ExternOptions.td
index 7d71e91551cdf9e1b469a0a9485e5174da27d031..a05f2ca15b6f125b2ef567f57a67e357edf32a5e 100644 (file)
@@ -1,16 +1,19 @@
 // Check that extern options work.
 // 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: FileCheck -input-file %t %s
+// RUN: %compile_cxx -fexceptions -x c++ %t
 
 include "llvm/CompilerDriver/Common.td"
 
+// CHECK: extern cl::opt<bool> 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