diff options
author | Janis Johnson <janis187@us.ibm.com> | 2007-05-14 22:26:38 +0000 |
---|---|---|
committer | Janis Johnson <janis@gcc.gnu.org> | 2007-05-14 22:26:38 +0000 |
commit | d077694a0f9e7fdb7fb663e66f2200e33b7230ad (patch) | |
tree | e2c9b3d5d89a5ed04df32e068b43ff0d384262bb | |
parent | 9e2f83a5e87d2956dd67b4ec2338426d07a730bc (diff) | |
download | gcc-d077694a0f9e7fdb7fb663e66f2200e33b7230ad.zip gcc-d077694a0f9e7fdb7fb663e66f2200e33b7230ad.tar.gz gcc-d077694a0f9e7fdb7fb663e66f2200e33b7230ad.tar.bz2 |
func-mixed.c: Replace invalid constant suffixes.
* gcc.dg/dfp/func-mixed.c: Replace invalid constant suffixes.
* gcc.dg/dfp/operator-assignment.c: Ditto.
From-SVN: r124729
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/dfp/func-mixed.c | 36 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/dfp/operator-assignment.c | 4 |
3 files changed, 25 insertions, 20 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 184d6df..c5eb928 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-05-14 Janis Johnson <janis187@us.ibm.com> + + * gcc.dg/dfp/func-mixed.c: Replace invalid constant suffixes. + * gcc.dg/dfp/operator-assignment.c: Ditto. + 2007-05-14 Paolo Carlini <pcarlini@suse.de> PR c++/29928 diff --git a/gcc/testsuite/gcc.dg/dfp/func-mixed.c b/gcc/testsuite/gcc.dg/dfp/func-mixed.c index 0c9fbc9..33fa821 100644 --- a/gcc/testsuite/gcc.dg/dfp/func-mixed.c +++ b/gcc/testsuite/gcc.dg/dfp/func-mixed.c @@ -147,28 +147,28 @@ int main () { /* _Decimal32 variants. */ - if (arg0_32 (0.0df, -1, 2, 3.0f, 4.0, 5.0ld) != 0.0df) abort (); - if (arg1_32 (0, 1.0df, 2, 3.0f, 4.0, 5.0ld) != 1.0df) abort (); - if (arg2_32 (0, -1, 2.0df, 3.0f, 4.0, 5.0ld) != 2.0df) abort (); - if (arg3_32 (0, -1, 2.0f, 3.0df, 4.0, 5.0ld) != 3.0df) abort (); - if (arg4_32 (0, -1, 2.0f, 3.0, 4.0df, 5.0ld) != 4.0df) abort (); - if (arg5_32 (0, -1, 2.0f, 3.0, 4.0ld, 5.0df) != 5.0df) abort (); + if (arg0_32 (0.0df, -1, 2, 3.0f, 4.0, 5.0l) != 0.0df) abort (); + if (arg1_32 (0, 1.0df, 2, 3.0f, 4.0, 5.0l) != 1.0df) abort (); + if (arg2_32 (0, -1, 2.0df, 3.0f, 4.0, 5.0l) != 2.0df) abort (); + if (arg3_32 (0, -1, 2.0f, 3.0df, 4.0, 5.0l) != 3.0df) abort (); + if (arg4_32 (0, -1, 2.0f, 3.0, 4.0df, 5.0l) != 4.0df) abort (); + if (arg5_32 (0, -1, 2.0f, 3.0, 4.0l, 5.0df) != 5.0df) abort (); /* _Decimal64 variants. */ - if (arg0_64 (0.0dd, -1, 2, 3.0f, 4.0, 5.0ld) != 0.0dd) abort (); - if (arg1_64 (0, 1.0dd, 2, 3.0f, 4.0, 5.0ld) != 1.0dd) abort (); - if (arg2_64 (0, -1, 2.0dd, 3.0f, 4.0, 5.0ld) != 2.0dd) abort (); - if (arg3_64 (0, -1, 2.0f, 3.0dd, 4.0, 5.0ld) != 3.0dd) abort (); - if (arg4_64 (0, -1, 2.0f, 3.0, 4.0dd, 5.0ld) != 4.0dd) abort (); - if (arg5_64 (0, -1, 2.0f, 3.0, 4.0ld, 5.0dd) != 5.0dd) abort (); + if (arg0_64 (0.0dd, -1, 2, 3.0f, 4.0, 5.0l) != 0.0dd) abort (); + if (arg1_64 (0, 1.0dd, 2, 3.0f, 4.0, 5.0l) != 1.0dd) abort (); + if (arg2_64 (0, -1, 2.0dd, 3.0f, 4.0, 5.0l) != 2.0dd) abort (); + if (arg3_64 (0, -1, 2.0f, 3.0dd, 4.0, 5.0l) != 3.0dd) abort (); + if (arg4_64 (0, -1, 2.0f, 3.0, 4.0dd, 5.0l) != 4.0dd) abort (); + if (arg5_64 (0, -1, 2.0f, 3.0, 4.0l, 5.0dd) != 5.0dd) abort (); /* _Decimal128 variants. */ - if (arg0_128 (0.0dl, -1, 2, 3.0f, 4.0, 5.0ld) != 0.0dl) abort (); - if (arg1_128 (0, 1.0dl, 2, 3.0f, 4.0, 5.0ld) != 1.0dl) abort (); - if (arg2_128 (0, -1, 2.0dl, 3.0f, 4.0, 5.0ld) != 2.0dl) abort (); - if (arg3_128 (0, -1, 2.0f, 3.0dl, 4.0, 5.0ld) != 3.0dl) abort (); - if (arg4_128 (0, -1, 2.0f, 3.0, 4.0dl, 5.0ld) != 4.0dl) abort (); - if (arg5_128 (0, -1, 2.0f, 3.0, 4.0ld, 5.0dl) != 5.0dl) abort (); + if (arg0_128 (0.0dl, -1, 2, 3.0f, 4.0, 5.0l) != 0.0dl) abort (); + if (arg1_128 (0, 1.0dl, 2, 3.0f, 4.0, 5.0l) != 1.0dl) abort (); + if (arg2_128 (0, -1, 2.0dl, 3.0f, 4.0, 5.0l) != 2.0dl) abort (); + if (arg3_128 (0, -1, 2.0f, 3.0dl, 4.0, 5.0l) != 3.0dl) abort (); + if (arg4_128 (0, -1, 2.0f, 3.0, 4.0dl, 5.0l) != 4.0dl) abort (); + if (arg5_128 (0, -1, 2.0f, 3.0, 4.0l, 5.0dl) != 5.0dl) abort (); return 0; } diff --git a/gcc/testsuite/gcc.dg/dfp/operator-assignment.c b/gcc/testsuite/gcc.dg/dfp/operator-assignment.c index 490748f..8e8a922 100644 --- a/gcc/testsuite/gcc.dg/dfp/operator-assignment.c +++ b/gcc/testsuite/gcc.dg/dfp/operator-assignment.c @@ -46,9 +46,9 @@ extern void abort (void); int main () { - _Decimal32 d32 = 1.23456fd, d32a = 1.2df; + _Decimal32 d32 = 1.23456df, d32a = 1.2df; _Decimal64 d64 = 23.456789dd, d64a = 2.8dd; - _Decimal128 d128 = 345.67890123456789ld, d128a = 4.7dl; + _Decimal128 d128 = 345.67890123456789dl, d128a = 4.7dl; DECIMAL_COMPOUND_ASSIGNMENT(32, d32); DECIMAL_COMPOUND_ASSIGNMENT(64, d64); |