From: Aldy Hernandez Date: Sat, 15 Dec 2001 04:04:28 +0000 (+0000) Subject: * testsuite/gcc.dg/20011214-1.c: New. X-Git-Tag: prereleases/libstdc++-3.0.95~145 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cdf89524e36110b12dc0ed47edec9d6359c284b7;p=thirdparty%2Fgcc.git * testsuite/gcc.dg/20011214-1.c: New. From-SVN: r48031 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7b76ab6dad5a..a838d6b5ca21 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-12-14 Aldy Hernandez + + * testsuite/gcc.dg/20011214-1.c: New. + 2001-12-13 Aldy Hernandez * 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 index 000000000000..9dea9048c5ad --- /dev/null +++ b/gcc/testsuite/gcc.dg/20011214-1.c @@ -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; +}