Convert Thumb2 tests to FileCheck for PR5307.
[oota-llvm.git] / test / LLVMC / TestWarnings.td
index cd4609a6ce2f7641eaa75e89a85a80056832d5ef..1a4064e44b270cc24b694ba4d39e89d86b76c919 100644 (file)
@@ -1,9 +1,7 @@
 // Check that the compiler warns about unused options.
 // This should fail because the output is printed on stderr.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep extern
-// XFAIL: *
+// RUN: ignore tblgen -I %p/../../include --gen-llvmc %s |& grep "option '-Wall' has no effect!"
 
 include "llvm/CompilerDriver/Common.td"
 
-def OptList : OptionList<[(extern_switch "Wall"),
-    (extern_parameter "std"), (extern_list "L")]>;
+def OptList : OptionList<[(switch_option "Wall", (extern))]>;