aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishnu K S <Vishnu.k_s@atmel.com>2014-03-28 19:19:03 +0000
committerMike Stump <mrs@gcc.gnu.org>2014-03-28 19:19:03 +0000
commit27f083b84545e70a567571ccd44adbb7c2fec10a (patch)
treeaa63e8191a3644d4f1cabc44ddce0c03225f4337
parentf6b80ca0b864c3736de912ba80e955f8e5cc63ab (diff)
downloadgcc-27f083b84545e70a567571ccd44adbb7c2fec10a.zip
gcc-27f083b84545e70a567571ccd44adbb7c2fec10a.tar.gz
gcc-27f083b84545e70a567571ccd44adbb7c2fec10a.tar.bz2
pr59940.c (si): Use 32-bit SI mode instead of int.
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
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/pr59940.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5b27941..f43bd84 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/pr59940.c b/gcc/testsuite/gcc.dg/pr59940.c
index b0fd17f..d81eaf7 100644
--- a/gcc/testsuite/gcc.dg/pr59940.c
+++ b/gcc/testsuite/gcc.dg/pr59940.c
@@ -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" } */