diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-16 07:51:43 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-16 07:51:43 +0000 |
commit | d15bbcc92bfe142521c42c3ce96dc75909bd2bb7 (patch) | |
tree | 96f51500bef661a5467b5f2359018ff935073b55 /gcc/testsuite/lib/target-supports.exp | |
parent | d7f82fee8b5adfc0c5be46cfcb8e171134ad5fa9 (diff) | |
download | gcc-d15bbcc92bfe142521c42c3ce96dc75909bd2bb7.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193551 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/lib/target-supports.exp')
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index dd3a75aaef4..184e1611b21 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1742,6 +1742,23 @@ proc check_effective_target_double64plus { } { }] } +# Return 1 if the target supports 'w' suffix on floating constant +# 0 otherwise. + +proc check_effective_target_has_w_floating_suffix { } { + return [check_no_compiler_messages w_fp_suffix object { + float dummy = 1.0w; + } "-std=gnu++03 -w"] +} + +# Return 1 if the target supports 'q' suffix on floating constant +# 0 otherwise. + +proc check_effective_target_has_q_floating_suffix { } { + return [check_no_compiler_messages q_fp_suffix object { + float dummy = 1.0q; + } "-std=gnu++03 -w"] +} # Return 1 if the target supports compiling fixed-point, # 0 otherwise. |