| 34 | }; |
| 35 | |
| 36 | TEST_F(TestIRNode, NonDebugLocN) { |
| 37 | const std::string Code = "extern \"C\" {\n" |
| 38 | "void API();\n" |
| 39 | "void test() { API(); }\n" |
| 40 | "}"; |
| 41 | SourceFileManager SFM; |
| 42 | SFM.createFile("test.cpp", Code); |
| 43 | ASSERT_TRUE(load(SFM.getSrcDirPath(), SFM.getFilePath("test.cpp"), "-O0 -w")); |
| 44 | auto *I = AH->getInstruction("test", 0, 0); |
| 45 | ASSERT_TRUE(I); |
| 46 | ASSERT_THROW((void)IRNode(*I), std::runtime_error); |
| 47 | } |
nothing calls this directly
no test coverage detected