Mercurial > hg > CbC > CbC_llvm
comparison clang/test/Sema/fp16-sema.c @ 221:79ff65ed7e25
LLVM12 Original
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Jun 2021 19:15:29 +0900 |
parents | 1d019706d866 |
children | c4bab56944e8 |
comparison
equal
deleted
inserted
replaced
220:42394fc6a535 | 221:79ff65ed7e25 |
---|---|
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 } |