Skip to content

Commit 3f762c7

Browse files
committed
Update tests
1 parent 32819a3 commit 3f762c7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

source/compiler/tests/class_specifiers_p2.pwn

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@ static Func4(); // class specifier "static" is introduced
1919
forward Func4(); // OK (class specifiers are only mandatory in function definitions, not declarations)
2020
static Func4(){} // OK (class specifier "static" is in place)
2121

22-
static Func5(){} // Func5() is "finalized"; subsequent forward declarations
23-
// for this function can't introduce any new class specifiers
24-
forward static Func5(); // OK (no new class specifiers)
22+
stock Func5(){} // Func5() is "finalized"; subsequent forward declarations
23+
// for this function can't introduce specifiers "static" and "public"
24+
forward stock Func5(); // OK (no new class specifiers)
2525
forward static stock Func5(); // error 025: function heading differs from prototype
2626

27-
#pragma unused Func4, Func5
27+
Func6(){}
28+
forward stock Func6(); // OK (specifier "stock" can be introduced after the definition)
29+
30+
forward stock Func7(); // specifier "stock" is introduced, but it's not mandatory to use it
31+
// in the function definition
32+
Func7(){} // OK
33+
34+
#pragma unused Func4, Func5, Func6, Func7
2835

2936
main(){}

0 commit comments

Comments
 (0)