]> granicus.if.org Git - clang/commitdiff
Add tests on how clang currently handles some unknown options.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Sep 2013 23:27:32 +0000 (23:27 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 23 Sep 2013 23:27:32 +0000 (23:27 +0000)
This is not to say this is the desired behavior, but it makes sure we notice
if it changes.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191242 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/unknown-arg.c

index 0fab8a50b99ef85c33042a618a7703e9e0e3f176..c7b5b47ca61dc8cede7263dc23f5c3a5abaf15f8 100644 (file)
@@ -4,3 +4,10 @@
 // CHECK: unknown argument
 // CHECK: unknown argument
 // CHECK: unknown argument
+
+
+// RUN: %clang -S %s -o %t.s -funknown-to-clang-option -Wunknown-to-clang-option -munknown-to-clang-optio
+
+// IGNORED: warning: argument unused during compilation: '-funknown-to-clang-option'
+// IGNORED: warning: argument unused during compilation: '-munknown-to-clang-option'
+// IGNORED: warning: unknown warning option '-Wunknown-to-clang-option'