Mercurial > hg > CbC > CbC_llvm
diff 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 |
line wrap: on
line diff
--- a/clang/test/Sema/fp16-sema.c Mon May 25 11:55:54 2020 +0900 +++ b/clang/test/Sema/fp16-sema.c Tue Jun 08 06:07:14 2021 +0900 @@ -28,3 +28,9 @@ typedef __fp16 (*tf1) (void); // expected-error {{function return value cannot have __fp16 type; did you forget * ?}} typedef __fp16 *(*tg1) (void); +void testComplex() { + // FIXME: Should these be valid? + _Complex __fp16 a; // expected-error {{'_Complex half' is invalid}} + __fp16 b; + a = __builtin_complex(b, b); // expected-error {{'_Complex half' is invalid}} +}