From bc4a980bdf6674083c092179cd0d173fcc62eff9 Mon Sep 17 00:00:00 2001 From: Léo Gourdin Date: Wed, 10 Mar 2021 10:44:43 +0100 Subject: fp test --- test/gourdinl/fp_init.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/gourdinl/fp_init.c (limited to 'test/gourdinl') diff --git a/test/gourdinl/fp_init.c b/test/gourdinl/fp_init.c new file mode 100644 index 00000000..1d835994 --- /dev/null +++ b/test/gourdinl/fp_init.c @@ -0,0 +1,7 @@ +int main (float *x) { + double a = 1.0; + float b = 1.0f; + printf("%f", a); + *x = b; + return b; +} -- cgit