From patchwork Wed Jun 1 17:52:27 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Diego Novillo X-Patchwork-Id: 98232 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 6B8ADB6F93 for ; Thu, 2 Jun 2011 03:52:47 +1000 (EST) Received: (qmail 29203 invoked by alias); 1 Jun 2011 17:52:45 -0000 Received: (qmail 29195 invoked by uid 22791); 1 Jun 2011 17:52:45 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD, URI_HEX X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Jun 2011 17:52:31 +0000 Received: from wpaz29.hot.corp.google.com (wpaz29.hot.corp.google.com [172.24.198.93]) by smtp-out.google.com with ESMTP id p51HqT6t021837; Wed, 1 Jun 2011 10:52:29 -0700 Received: from topo.tor.corp.google.com (topo.tor.corp.google.com [172.29.41.2]) by wpaz29.hot.corp.google.com with ESMTP id p51HqRsn014985; Wed, 1 Jun 2011 10:52:27 -0700 Received: by topo.tor.corp.google.com (Postfix, from userid 54752) id 53F5A1DA1C9; Wed, 1 Jun 2011 13:52:27 -0400 (EDT) To: reply@codereview.appspotmail.com, crowl@google.com, gcc-patches@gcc.gnu.org Subject: [pph] Add one failing C test (issue4524085) Message-Id: <20110601175227.53F5A1DA1C9@topo.tor.corp.google.com> Date: Wed, 1 Jun 2011 13:52:27 -0400 (EDT) From: dnovillo@google.com (Diego Novillo) X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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. --- This patch is available for review at http://codereview.appspot.com/4524085 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 */ + +_Complex float b; + +void foo (void) +{ + _Complex float a = __FLT_MAX__; + b = __FLT_MAX__ + a; +} +#endif