This repository was archived by the owner on Apr 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 2531
2531
(assert_invalid (module (func (result f32 ) (f32.nearest (i64.const 0 )))) " type mismatch" )
2532
2532
(assert_invalid (module (func (result f32 ) (f32.sqrt (i64.const 0 )))) " type mismatch" )
2533
2533
(assert_invalid (module (func (result f32 ) (f32.trunc (i64.const 0 )))) " type mismatch" )
2534
+
2535
+ ;; These float literal patterns are only allowed in scripts, not in text format.
2536
+ (assert_malformed
2537
+ (module quote " (func (result f32) (f32.const nan:arithmetic))" )
2538
+ " unexpected token"
2539
+ )
2540
+ (assert_malformed
2541
+ (module quote " (func (result f32) (f32.const nan:canonical))" )
2542
+ " unexpected token"
2543
+ )
Original file line number Diff line number Diff line change 2531
2531
(assert_invalid (module (func (result f64 ) (f64.nearest (i64.const 0 )))) " type mismatch" )
2532
2532
(assert_invalid (module (func (result f64 ) (f64.sqrt (i64.const 0 )))) " type mismatch" )
2533
2533
(assert_invalid (module (func (result f64 ) (f64.trunc (i64.const 0 )))) " type mismatch" )
2534
+
2535
+ ;; These float literal patterns are only allowed in scripts, not in text format.
2536
+ (assert_malformed
2537
+ (module quote " (func (result f64) (f64.const nan:arithmetic))" )
2538
+ " unexpected token"
2539
+ )
2540
+ (assert_malformed
2541
+ (module quote " (func (result f64) (f64.const nan:canonical))" )
2542
+ " unexpected token"
2543
+ )
You can’t perform that action at this time.
0 commit comments