summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/float16-typeof.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/float16-typeof.c')
-rw-r--r--gcc/testsuite/gcc.dg/float16-typeof.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/float16-typeof.c b/gcc/testsuite/gcc.dg/float16-typeof.c
new file mode 100644
index 0000000000..a781239efa
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/float16-typeof.c
@@ -0,0 +1,9 @@
+/* Test _Float16 constant types. */
+/* { dg-do compile } */
+/* { dg-options "" } */
+/* { dg-add-options float16 } */
+/* { dg-require-effective-target float16 } */
+
+#define WIDTH 16
+#define EXT 0
+#include "floatn-typeof.h"