Added a test to the optimizer.

This commit is contained in:
Vincent St-Amour 2010-07-23 16:47:30 -04:00
parent 83987fffac
commit ea580e6ff8
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#lang typed/scheme #:optimize
(require racket/unsafe/ops)
(let ((x (+ 1.0 2.0)))
x)

View File

@ -0,0 +1,6 @@
#lang typed/scheme #:optimize
(require racket/unsafe/ops)
(let ((x (unsafe-fl+ 1.0 2.0)))
x)

View File

@ -0,0 +1,6 @@
#lang typed/scheme
(require racket/unsafe/ops)
(let ((x (+ 1.0 2.0)))
x)