[cfe-commits] r165459 - /cfe/trunk/test/Misc/warning-flags-enabled.c
Ted Kremenek
kremenek at apple.com
Mon Oct 8 16:45:09 PDT 2012
Author: kremenek
Date: Mon Oct 8 18:45:09 2012
New Revision: 165459
URL: http://llvm.org/viewvc/llvm-project?rev=165459&view=rev
Log:
Add regression test to check if -Wenum-conversion is a subgroup of -Wconversion.
Modified:
cfe/trunk/test/Misc/warning-flags-enabled.c
Modified: cfe/trunk/test/Misc/warning-flags-enabled.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/warning-flags-enabled.c?rev=165459&r1=165458&r2=165459&view=diff
==============================================================================
--- cfe/trunk/test/Misc/warning-flags-enabled.c (original)
+++ cfe/trunk/test/Misc/warning-flags-enabled.c Mon Oct 8 18:45:09 2012
@@ -25,3 +25,11 @@
// CHECK-NO-LEVELS-NOT: E
// CHECK-NO-LEVELS-NOT: F
// CHECK-NO-LEVELS: warn_objc_root_class_missing [-Wobjc-root-class]
+
+// Test if EnumConversion is a subgroup of -Wconversion.
+// RUN: diagtool show-enabled --no-levels -Wno-conversion -Wenum-conversion %s | FileCheck --check-prefix CHECK-ENUM-CONVERSION %s
+// RUN: diagtool show-enabled --no-levels %s | FileCheck --check-prefix CHECK-ENUM-CONVERSION %s
+// RUN: diagtool show-enabled --no-levels -Wno-conversion %s | FileCheck --check-prefix CHECK-NO-ENUM-CONVERSION %s
+//
+// CHECK-ENUM-CONVERSION: -Wenum-conversion
+// CHECK-NO-ENUM-CONVERSION-NOT: -Wenum-conversion
More information about the cfe-commits
mailing list