Implement .weakref.
[oota-llvm.git] / test / LLVMC / TestWarnings.td
index 5010c61b6adbff33721ef5ce3b798f54f76aaad7..b0f57e97e0d8cadefebf6b2875dc6b6c40f5ab0c 100644 (file)
@@ -1,8 +1,8 @@
-// Check that the compiler warns about unused options!.
-// RUN: tblgen -I $srcroot/include --gen-llvmc %s | grep extern
-// XFAIL: *
+// Check that warnings about unused options are really emitted.
+// This should fail because the output is printed on stderr.
+// RUN: tblgen -I %p/../../include --gen-llvmc %s |& grep "option '-Wall' has no effect!"
+// XFAIL: vg_leak
 
 include "llvm/CompilerDriver/Common.td"
 
-def OptList : OptionList<[(extern_switch "Wall"),
-    (extern_parameter "std"), (extern_list "L")]>;
+def OptList : OptionList<[(switch_option "Wall", (help "dummy"))]>;