Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2049)

Issue 4524085: [pph] Add one failing C test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 11 months ago by Diego Novillo
Modified:
12 years, 11 months ago
Reviewers:
CC:
Lawrence Crowl, gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -0 lines) Patch
A gcc/testsuite/g++.dg/pph/c120060625-1.h View 1 chunk +13 lines, -0 lines 0 comments Download
A gcc/testsuite/g++.dg/pph/c120060625-1.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 1
Diego Novillo
12 years, 11 months ago (2011-06-01 17:52:29 UTC) #1
This is the last of the large set of failing single-file C test cases I had
collected.  It still fails, but given that we are more people that may
be hacking on the branch now, I wanted to put it out there so I don't
have to keep testing my private set of files anymore.

This fails on read with:

c120060625-1.h:10:22: internal compiler error: invalid built-in macro
"__FLT_MAX__"


Diego.


	* g++.dg/pph/c120060625-1.cc: New.
	* g++.dg/pph/c120060625-1.h: New.

diff --git a/gcc/testsuite/g++.dg/pph/c120060625-1.cc
b/gcc/testsuite/g++.dg/pph/c120060625-1.cc
new file mode 100644
index 0000000..05c7929
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pph/c120060625-1.cc
@@ -0,0 +1 @@
+#include "c120060625-1.h"
diff --git a/gcc/testsuite/g++.dg/pph/c120060625-1.h
b/gcc/testsuite/g++.dg/pph/c120060625-1.h
new file mode 100644
index 0000000..07266d9
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pph/c120060625-1.h
@@ -0,0 +1,13 @@
+#ifndef __PPH_GUARD_H
+#define __PPH_GUARD_H
+/* PR middle-end/28151 */
+/* Testcase by Steven Bosscher <stevenb.gcc@gmail.com> */
+
+_Complex float b;
+
+void foo (void)
+{
+  _Complex float a = __FLT_MAX__;
+  b = __FLT_MAX__ + a;
+}
+#endif

--
This patch is available for review at http://codereview.appspot.com/4524085
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b