summaryrefslogtreecommitdiffstats
path: root/libacc/tests/data/floatdouble.c
diff options
context:
space:
mode:
Diffstat (limited to 'libacc/tests/data/floatdouble.c')
-rw-r--r--libacc/tests/data/floatdouble.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libacc/tests/data/floatdouble.c b/libacc/tests/data/floatdouble.c
new file mode 100644
index 0000000..264c641
--- /dev/null
+++ b/libacc/tests/data/floatdouble.c
@@ -0,0 +1,9 @@
+int main()
+{
+ // Test coercing values when storing.
+ float a = 0.002;
+ double b = 0.1f;
+ int c = 10.002;
+ printf("%g %g %d\n", a, b, c);
+ return 0;
+}