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

Function main

tests/IfStmtHandlerTest.cpp:3–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <cstdio>
2
3int main()
4{
5 if
6 constexpr(false) { printf("False\n"); }
7 else if(true) {
8 printf("true");
9 }
10
11 if
12 constexpr(false) { printf("False\n"); }
13 else if constexpr (true) {
14 printf("true");
15 }
16
17 if
18 constexpr(false) printf("False\n");
19 else if(true)
20 printf("true");
21
22
23 int x = 1;
24 if( 1 == x)
25 printf("a");
26 else if (2 == x) {
27 printf ("b");
28
29 if( x == 5 ) printf( "5");
30
31 }
32 else {
33 if (x == 3) printf("r");
34 }
35
36}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected