mirror of https://github.com/WerWolv/ImHex.git
35 lines
723 B
C++
35 lines
723 B
C++
#pragma once
|
|
|
|
#include "test_pattern.hpp"
|
|
|
|
namespace hex::test {
|
|
|
|
class TestPatternExtraSemicolon : public TestPattern {
|
|
public:
|
|
TestPatternExtraSemicolon() : TestPattern("ExtraSemicolon") {
|
|
|
|
}
|
|
~TestPatternExtraSemicolon() override = default;
|
|
|
|
[[nodiscard]]
|
|
std::string getSourceCode() const override {
|
|
return R"(
|
|
struct Test {
|
|
u32 x;;;
|
|
u8 y;
|
|
float z;;
|
|
};;
|
|
|
|
struct Test2 {
|
|
u32 x;
|
|
u32 y;
|
|
};
|
|
|
|
Test test @ 0x00;;;
|
|
Test test2 @ 0x10;
|
|
)";
|
|
}
|
|
|
|
};
|
|
|
|
} |