Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3109)

Unified Diff: gcc/gcc/testsuite/gcc.dg/dfp/operator-comma.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/operator-bitwise.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/operator-cond.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/dfp/operator-comma.c
diff --git a/gcc/gcc/testsuite/gcc.dg/dfp/operator-comma.c b/gcc/gcc/testsuite/gcc.dg/dfp/operator-comma.c
deleted file mode 100644
index 904f9b3a676b89677d77b678ee65a6351a849413..0000000000000000000000000000000000000000
--- a/gcc/gcc/testsuite/gcc.dg/dfp/operator-comma.c
+++ /dev/null
@@ -1,57 +0,0 @@
-/* { dg-options "-std=gnu99 -O0" } */
-
-/* C99 6.5.17: Comma operator.
- Test with decimal float operands. */
-
-extern void abort (void);
-static int failcnt = 0;
-
-/* Support compiling the test to report individual failures; default is
- to abort as soon as a check fails. */
-#ifdef DBG
-#include <stdio.h>
-#define FAILURE { printf ("failed at line %d\n", __LINE__); failcnt++; }
-#else
-#define FAILURE abort ();
-#endif
-
-volatile _Decimal32 d32a, d32b, d32c;
-volatile _Decimal64 d64a, d64b, d64c;
-volatile _Decimal128 d128a, d128b, d128c;
-
-void
-init ()
-{
- d32b = 123.456e94df;
- d64b = 12.3456789012345e383dd;
- d128b = 12345.6789012345678901e4000dl;
-
- d32c = 1.3df;
- d64c = 1.2dd;
- d128c = 1.1dl;
-}
-
-int
-main ()
-{
- d32a = (d32b, d32c);
- if (d32a != d32c)
- FAILURE
- d64a = (d64b, 7.89dd, d64c);
- if (d64a != d64c)
- FAILURE
- d128a = (45678.987654dl, d128c, d128b);
- if (d128a != d128b)
- FAILURE
- d128a = (d32b, d64b, d128b);
- if (d128a != d128b)
- FAILURE
- d32a = (d32b, 12, d64c);
- if (d32a != d64c)
- FAILURE;
- d64a = (d64b, d32b, 12);
- if (d64a != 12.0dd)
- FAILURE;
-
- return 0;
-}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/operator-bitwise.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/operator-cond.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698