mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-24 08:54:15 +00:00
Adjustments to "decomp" language
This commit is contained in:
@@ -4,20 +4,22 @@
|
||||
// While it's reasonable to expect a well-formed file (and clang-format
|
||||
// will make sure we get one), this will put the parser through its paces.
|
||||
|
||||
// OFFSET: TEST 0x1234
|
||||
// FUNCTION: TEST 0x1234
|
||||
void curly_with_spaces()
|
||||
{
|
||||
static char* msg = "hello";
|
||||
}
|
||||
{
|
||||
static char* msg = "hello";
|
||||
}
|
||||
|
||||
// OFFSET: TEST 0x5555
|
||||
// FUNCTION: TEST 0x5555
|
||||
void weird_closing_curly()
|
||||
{
|
||||
int x = 123; }
|
||||
int x = 123;
|
||||
}
|
||||
|
||||
// OFFSET: HELLO 0x5656
|
||||
void bad_indenting() {
|
||||
if (0)
|
||||
// FUNCTION: HELLO 0x5656
|
||||
void bad_indenting()
|
||||
{
|
||||
int y = 5;
|
||||
}}
|
||||
if (0) {
|
||||
int y = 5;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user