1
0

Test constexpr.

This commit is contained in:
Captain ALM 2022-08-15 00:19:08 +01:00
parent 423e3e342b
commit 4bb0b4a247
Signed by: alfred
GPG Key ID: 4E4ADD02609997B1

View File

@ -7,6 +7,7 @@ void print(int x)
int main() int main()
{ {
print(static_cast<int>(5.5F)); constexpr float testVal { 5.5F };
print(static_cast<int>(testVal));
return 0; return 0;
} }