MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / main

Function main

tests/ImplicitCast2Test.cpp:7–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5struct A { operator int() { return 2;} };
6
7int main()
8{
9 float f = 1.0f;
10
11 FloatingCast(f);
12
13 int i = 1;
14 IntegralToBoolean(i);
15
16 int ii = int(A());
17}

Callers

nothing calls this directly

Calls 3

FloatingCastFunction · 0.85
IntegralToBooleanFunction · 0.85
AClass · 0.70

Tested by

no test coverage detected