MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / pragma_asm_2

Method pragma_asm_2

test/testpreprocessor.cpp:1516–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1514 }
1515
1516 void pragma_asm_2() {
1517 const char filedata[] = "#pragma asm\n"
1518 " mov @w1, 11\n"
1519 "#pragma endasm ( temp=@w1 )\n"
1520 "bbb";
1521
1522 // Preprocess => actual result..
1523 const std::map<std::string, std::string> actual = getcode(settings0, *this, filedata);
1524
1525 // Compare results..
1526 ASSERT_EQUALS(1, actual.size());
1527 ASSERT_EQUALS("asm ( )\n;\n\nbbb", actual.at(""));
1528 }
1529
1530 void endifsemicolon() {
1531 const char filedata[] = "void f() {\n"

Callers

nothing calls this directly

Calls 2

atMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected