This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2, testsuite]: Add dg-error for unsupported floating suffix


On Thu, Nov 15, 2012 at 1:35 AM, Uros Bizjak <ubizjak@gmail.com> wrote:

> Attached patch fixes following testsuite failure
>
> FAIL: g++.dg/cpp0x/gnu_fext-numeric-literals.C (test for excess errors)
> FAIL: g++.dg/cpp0x/std_fext-numeric-literals.C (test for excess errors)
>
> on targets that don't support Q and W floating suffixes.

This revision auto-detect support for Q and W suffixes.

2012-11-15  Uros Bizjak  <ubizjak@gmail.com>

	* lib/target_suports.exp
	(check_effective_target_has_w_floating_suffix): New procedure.
	(check_effective_target_has_q_floating_suffix): Ditto.
	* g++.dg/cpp0x/gnu_fext-numeric-literals.C: Add dg-error directive
	for unsupported non-standard suffix on floating constant.
	* g++.dg/cpp0x/std_fext-numeric-literals.C: Ditto.

Tested on alphaev68-pc-linux-gnu and x86_64-pc-linux-gnu.

OK for mainline?

Uros.

Attachment: t.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]