* testsuite/gcc.dg/20011214-1.c: New.
authorAldy Hernandez <aldyh@redhat.com>
Sat, 15 Dec 2001 04:04:28 +0000 (04:04 +0000)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Sat, 15 Dec 2001 04:04:28 +0000 (04:04 +0000)
From-SVN: r48031

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20011214-1.c [new file with mode: 0644]

index 7b76ab6dad5a679545be3a52e4063a0d61246c35..a838d6b5ca2153b6b2f282d76f57f329b968c167 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-14  Aldy Hernandez  <aldyh@redhat.com>
+
+       * testsuite/gcc.dg/20011214-1.c: New.
+
 2001-12-13  Aldy Hernandez  <aldyh@redhat.com>
 
        * gcc.dg/altivec-4.c: New.
diff --git a/gcc/testsuite/gcc.dg/20011214-1.c b/gcc/testsuite/gcc.dg/20011214-1.c
new file mode 100644 (file)
index 0000000..9dea904
--- /dev/null
@@ -0,0 +1,14 @@
+/* { dg-do run } */
+
+#define small   __attribute__((mode(QI))) int
+int main()
+{
+  int x, y = 0x400;
+
+  x = (small) y;                                /* { dg-bogus "ignored" } */
+  if (sizeof (small) != sizeof (char))          /* { dg-bogus "ignored" } */
+    abort ();
+  if (sizeof (x) != sizeof (char) && x == y)
+    abort ();
+  return 0;
+}