summaryrefslogtreecommitdiffstats
path: root/test/LLVMC/TestWarnings.td
diff options
context:
space:
mode:
Diffstat (limited to 'test/LLVMC/TestWarnings.td')
-rw-r--r--test/LLVMC/TestWarnings.td7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/LLVMC/TestWarnings.td b/test/LLVMC/TestWarnings.td
new file mode 100644
index 0000000..9523e24
--- /dev/null
+++ b/test/LLVMC/TestWarnings.td
@@ -0,0 +1,7 @@
+// Check that warnings about unused options are really emitted.
+// 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<[(switch_option "Wall", (extern))]>;