This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testcase] New range-enum test


Hi!

This is a part of http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html
patch that got rejected for mainline:
http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00978.html
and has been fixed differently.  The testcase now works, IMHO it shouldn't
hurt to have it in the testsuite.
Can I commit following testcase addition?

2005-01-24  Jakub Jelinek  <jakub@redhat.com>

	* g++.dg/opt/range-test-1.c: Add new test (#26).

--- gcc/testsuite/g++.dg/opt/range-test-1.C.jj	2004-06-19 00:38:06.000000000 +0200
+++ gcc/testsuite/g++.dg/opt/range-test-1.C	2004-07-09 18:06:27.501797366 +0200
@@ -176,6 +176,9 @@ T(24, signed char, x == SCHAR_MIN || x =
 T(25, integers, x == int_smallest || x == int_largest,
   { int_smallest C int_largest }, { int_minus1 C int_zero C int_one
     C int_2ndsmallest C int_2ndlargest C int_3rdsmallest C int_3rdlargest })
+T(26, enum3, x == enum3_one || x == enum3_two || x == enum3_three,
+  { enum3_one C enum3_two C enum3_three }, { enum3_zero C enum3_four
+    C enum3_five C enum3_six C enum3_seven })
 
 /* These should be optimized into unconditional jumps.  */
 T(o1, unsigned long, x <= 16 || (x >= 17 && x <= -1UL),

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]