1 /* Test that expressions involving __fp16 values have the right types. */
2 /* { dg-do compile } */
3 /* { dg-options "-mfp16-format=ieee" } */
5 /* This produces a diagnostic if EXPR doesn't have type TYPE. */
6 #define CHECK(expr,type) \
9 __typeof (expr) *p = &v; \
22 CHECK ((__fp16
)(f1
+f2
), __fp16
);
23 CHECK ((__fp16
)99.99, __fp16
);
24 CHECK ((f1
+f2
, f1
), __fp16
);