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

Unified Diff: gcc/gcc/testsuite/gcc.dg/torture/complex-alias-1.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/torture/asm-subreg-1.c ('k') | gcc/gcc/testsuite/gcc.dg/torture/dg-torture.exp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/torture/complex-alias-1.c
diff --git a/gcc/gcc/testsuite/gcc.dg/torture/complex-alias-1.c b/gcc/gcc/testsuite/gcc.dg/torture/complex-alias-1.c
deleted file mode 100644
index 6ab4ca0789c5b295a7023bdea76b15ac2f3072ec..0000000000000000000000000000000000000000
--- a/gcc/gcc/testsuite/gcc.dg/torture/complex-alias-1.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Accesses to complex numbers were sometimes marked as scalar and
- sometimes as struct accesses. */
-/* { dg-do run } */
-/* { dg-options "-std=c99" } */
-
-extern void abort (void);
-static double _Complex *fp_cxd(double _Complex *cx) {
- return cx;
-}
-
-int main( ) {
- double _Complex cx = 4.0 + 3.0*(__extension__ 1.0iF);
- double _Complex cx43 = 4.0 + 3.0*(__extension__ 1.0iF);
- double _Complex cx11 = 1.0 + 1.0*(__extension__ 1.0iF);
-
- *fp_cxd(&cx) *= cx11;
- *fp_cxd(&cx) /= cx11;
-
- double r_cx = __real__(cx);
- double i_cx = __imag__(cx);
- double r_cx43 = __real__(cx43);
- double i_cx43 = __imag__(cx43);
-
- if( (r_cx == r_cx43) && (i_cx == i_cx43) ) {
- return 0;
- } else {
- abort ();
- }
-}
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/torture/asm-subreg-1.c ('k') | gcc/gcc/testsuite/gcc.dg/torture/dg-torture.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698