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

Unified Diff: gcc/gcc/testsuite/gcc.dg/dfp/call-by-value.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/Wbad-function-cast-1.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/compare-eq.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/dfp/call-by-value.c
diff --git a/gcc/gcc/testsuite/gcc.dg/dfp/call-by-value.c b/gcc/gcc/testsuite/gcc.dg/dfp/call-by-value.c
deleted file mode 100644
index 4232a30186c9f427cab7ede048d4642a66fb43f8..0000000000000000000000000000000000000000
--- a/gcc/gcc/testsuite/gcc.dg/dfp/call-by-value.c
+++ /dev/null
@@ -1,45 +0,0 @@
-/* { dg-options "-std=gnu99" } */
-
-/* C99 6.9.1(9) Function definitions; parameter has automatic storage.
-
- Test that actual parameters are passed by value and that modifications
- made within functions are lost on function return. */
-
-extern void abort (void);
-
-int foo32 (_Decimal32 z)
-{
- z = z + 1.0df;
-}
-
-int foo64 (_Decimal64 z)
-{
- z = z + 1.0dd;
-}
-
-int foo128 (_Decimal128 z)
-{
- z = z + 1.0dl;
-}
-
-int
-main ()
-{
- _Decimal32 d32 = 1.1df;
- _Decimal64 d64 = 1.2dd;
- _Decimal128 d128 = 1.3dl;
-
- foo32 (d32);
- if (d32 != 1.1df)
- abort ();
-
- foo64 (d64);
- if (d64 != 1.2dd)
- abort ();
-
- foo128 (d128);
- if (d128 != 1.3dl)
- abort ();
-
- return 0;
-}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/dfp/Wbad-function-cast-1.c ('k') | gcc/gcc/testsuite/gcc.dg/dfp/compare-eq.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698