1 2 3 4
| 419 | //3 |
| 420 | //4 |
| 421 | void TestClass::CPPSTest(int iParam) |
| 422 | { |
| 423 | std::vector<int> intVector; |
| 424 | Yo(intVector, intVector); |
| 425 | |
| 426 | std::string str = "Hey"; |
| 427 | std::string& str2 = str; |
| 428 | |
| 429 | int iVal = 123; |
| 430 | int& iVal2 = iVal; |
| 431 | |
| 432 | StructC1 sC1; |
| 433 | sC1.mValA = 22; |
| 434 | sC1.mValB = 33; |
| 435 | |
| 436 | /*for (int i = 0; i < 100000; i++) |
| 437 | { |
| 438 | OutputDebugStringA("This is a test of the OutputDebugString system\n"); |
| 439 | }*/ |
| 440 | |
| 441 | //int pid = getpid(); |
| 442 | |
| 443 | TestStruct(sC1); |
| 444 | |
| 445 | //assert(false); |
| 446 | |
| 447 | ::MessageBoxA(NULL, "Test", "Zap", 1); |
| 448 | |
| 449 | const char* msg = "Hey!"; |
| 450 | |
| 451 | MethodZ0(MethodZ1(123)); |
| 452 | |
| 453 | { |
| 454 | int zzz = 123; |
| 455 | printf("zzz: %d\n", zzz); |
| 456 | } |
| 457 | int qqq = 333; |
| 458 | |
| 459 | for (int i = 0; i < 10; i++) |
| 460 | { |
| 461 | MethodA(); |
| 462 | MethodB(); |
| 463 | printf("Hey %d\n", i); |
| 464 | } |
| 465 | |
| 466 | MultiClass::ClassD classD; |
| 467 | MultiClass::ClassB* classB = &classD; |
| 468 | MultiClass::ClassC* classC = &classD; |
| 469 | MultiClass::ClassA* classA = classC; |
| 470 | |
| 471 | try |
| 472 | { |
| 473 | throw classB; |
| 474 | printf("After throw\n"); |
| 475 | } |
| 476 | catch (void* ex) |
| 477 | { |
| 478 | printf("Inside handler\n"); |
nothing calls this directly
no test coverage detected