aboutsummaryrefslogtreecommitdiff
path: root/tests/float-promote.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-11 18:43:18 -0800
committerMichael Forney <mforney@mforney.org>2019-02-12 01:55:14 -0800
commiteddc4693e49f70cd214b7645cb9fce54a89fbb6c (patch)
treefa1b640f49cde25e323aa0629aed64c064da930e /tests/float-promote.c
Initial import
Diffstat (limited to 'tests/float-promote.c')
-rw-r--r--tests/float-promote.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/float-promote.c b/tests/float-promote.c
new file mode 100644
index 0000000..572719a
--- /dev/null
+++ b/tests/float-promote.c
@@ -0,0 +1,8 @@
+void g1();
+void g2(int, ...);
+void g3(float);
+void f(void) {
+ g1(1.0f);
+ g2(0, 1.0f);
+ g3(1.0f);
+}