Mercurial > hg > CbC > CbC_llvm
comparison clang/test/SemaCXX/complex-conversion.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
232:70dce7da266c | 236:c4bab56944e8 |
---|---|
13 take<double>(1.0i); // expected-error {{implicit conversion from '_Complex double' to 'double' is not permitted in C++}} | 13 take<double>(1.0i); // expected-error {{implicit conversion from '_Complex double' to 'double' is not permitted in C++}} |
14 take<_Complex float>(Complex); | 14 take<_Complex float>(Complex); |
15 | 15 |
16 // Conversion to bool doesn't actually discard the imaginary part. | 16 // Conversion to bool doesn't actually discard the imaginary part. |
17 take<bool>(Complex); | 17 take<bool>(Complex); |
18 | |
19 using B = _Complex double; | |
20 B c; | |
21 c *= double(); | |
18 } | 22 } |