| 31 | using spvtest::GetIdBound; |
| 32 | |
| 33 | TEST(ModuleTest, SetIdBound) { |
| 34 | Module m; |
| 35 | // It's initialized to 0. |
| 36 | EXPECT_EQ(0u, GetIdBound(m)); |
| 37 | |
| 38 | m.SetIdBound(19); |
| 39 | EXPECT_EQ(19u, GetIdBound(m)); |
| 40 | |
| 41 | m.SetIdBound(102); |
| 42 | EXPECT_EQ(102u, GetIdBound(m)); |
| 43 | } |
| 44 | |
| 45 | // Returns an IRContext owning the module formed by assembling the given text, |
| 46 | // then loading the result. |
nothing calls this directly
no test coverage detected