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

Unified Diff: gcc/gcc/testsuite/gcc.dg/dfp/usual-arith-conv-const.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/struct-layout-1.c ('k') | gcc/gcc/testsuite/gcc.dg/format/ms-format1.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/usual-arith-conv-const.c
diff --git a/gcc/gcc/testsuite/gcc.dg/dfp/usual-arith-conv-const.c b/gcc/gcc/testsuite/gcc.dg/dfp/usual-arith-conv-const.c
deleted file mode 100644
index 3f06e4753ffd6a62be2f8977b75080bec1d6a988..0000000000000000000000000000000000000000
--- a/gcc/gcc/testsuite/gcc.dg/dfp/usual-arith-conv-const.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-std=gnu99" } */
-
-/* Test various conversions involving decimal floating types. */
-
-/* Assertion that constant C is of type T. */
-#define ASSERT_CONST_TYPE(C, T) \
- do { \
- typedef T type; \
- typedef type **typepp; \
- typedef __typeof__((C)) ctype; \
- typedef ctype **ctypepp; \
- typepp x = 0; \
- ctypepp y = 0; \
- x = y; \
- y = x; \
- } while (0)
-
-int
-main ()
-{
- ASSERT_CONST_TYPE (3 + 2.1df, _Decimal32); /* { dg-bogus "assignment from incompatible pointer type" } */
- ASSERT_CONST_TYPE (1.3df + 2, _Decimal32); /* { dg-bogus "assignment from incompatible pointer type" } */
- ASSERT_CONST_TYPE (56U - 55.0dd, _Decimal64); /* { dg-bogus "assignment from incompatible pointer type" } */
- ASSERT_CONST_TYPE (5 * .2DL, _Decimal128); /* { dg-bogus "assignment from incompatible pointer type" } */
- ASSERT_CONST_TYPE (.88dl / 2L, _Decimal128); /* { dg-bogus "assignment from incompatible pointer type" } */
- ASSERT_CONST_TYPE (.114df - 1.6dd, _Decimal64); /* { dg-bogus "assignment from incompatible pointer type" } */
- ASSERT_CONST_TYPE (3L - 1 + .55df, _Decimal32); /* { dg-bogus "assignment from incompatible pointer type" } */
-
- return 0;
-}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/struct-layout-1.c ('k') | gcc/gcc/testsuite/gcc.dg/format/ms-format1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698