diff --git a/tests/spec/cast_int.i b/tests/spec/cast_int.i
new file mode 100644
index 0000000000000000000000000000000000000000..21505c3ff130cd49409a775ca65eb8f328c7dac5
--- /dev/null
+++ b/tests/spec/cast_int.i
@@ -0,0 +1,6 @@
+unsigned short int toto;
+
+/*@ensures toto==(unsigned short int)param;*/
+int F(int param){
+return 0;
+}
diff --git a/tests/spec/oracle/cast_int.res.oracle b/tests/spec/oracle/cast_int.res.oracle
new file mode 100644
index 0000000000000000000000000000000000000000..23501c9b3c51cb9516283692958b24e02dc3f771
--- /dev/null
+++ b/tests/spec/oracle/cast_int.res.oracle
@@ -0,0 +1,12 @@
+[kernel] Parsing tests/spec/cast_int.i (no preprocessing)
+/* Generated by Frama-C */
+unsigned short toto;
+/*@ ensures toto ≡ (unsigned short)\old(param); */
+int F(int param)
+{
+  int __retres;
+  __retres = 0;
+  return __retres;
+}
+
+