Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Sema/fp16-sema.c @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
173:0572611fdcc8 | 207:2e18cbf3894f |
---|---|
26 extern __fp16 *(*gf1) (void); | 26 extern __fp16 *(*gf1) (void); |
27 | 27 |
28 typedef __fp16 (*tf1) (void); // expected-error {{function return value cannot have __fp16 type; did you forget * ?}} | 28 typedef __fp16 (*tf1) (void); // expected-error {{function return value cannot have __fp16 type; did you forget * ?}} |
29 typedef __fp16 *(*tg1) (void); | 29 typedef __fp16 *(*tg1) (void); |
30 | 30 |
31 void testComplex() { | |
32 // FIXME: Should these be valid? | |
33 _Complex __fp16 a; // expected-error {{'_Complex half' is invalid}} | |
34 __fp16 b; | |
35 a = __builtin_complex(b, b); // expected-error {{'_Complex half' is invalid}} | |
36 } |