fix hte last remaining known (by me) phi translation bug. When we reanalyze
[oota-llvm.git] / test / LLVMC / TestWarnings.td
index 5010c61b6adbff33721ef5ce3b798f54f76aaad7..1a4064e44b270cc24b694ba4d39e89d86b76c919 100644 (file)
@@ -1,8 +1,7 @@
-// Check that the compiler warns about unused options!.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep extern
-// XFAIL: *
+// Check that the compiler warns about unused options.
+// This should fail because the output is printed on stderr.
+// 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))]>;