pr59940.c (si): Use 32-bit SI mode instead of int.
authorVishnu K S <Vishnu.k_s@atmel.com>
Fri, 28 Mar 2014 19:19:03 +0000 (19:19 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Fri, 28 Mar 2014 19:19:03 +0000 (19:19 +0000)
2014-03-28  Vishnu K S  <Vishnu.k_s@atmel.com>

* gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int.

From-SVN: r208914

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr59940.c

index 5b27941..f43bd84 100644 (file)
@@ -1,3 +1,7 @@
+2014-03-28  Vishnu K S  <Vishnu.k_s@atmel.com>
+
+       * gcc.dg/pr59940.c (si): Use 32-bit SI mode instead of int.
+
 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR c++/60689
index b0fd17f..d81eaf7 100644 (file)
@@ -3,11 +3,12 @@
 /* { dg-options "-Wconversion -Woverflow" } */
 
 int f (unsigned int);
+typedef sitype __attribute__((mode(SI)));
 
 int
 g (void)
 {
-  int si = 12;
+  sitype si = 12;
   unsigned int ui = -1; /* { dg-warning "21:negative integer implicitly converted to unsigned type" } */
   unsigned char uc;
   ui = si; /* { dg-warning "8:conversion" } */