File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,18 @@ static Func4(); // class specifier "static" is introduced
19
19
forward Func4 (); // OK (class specifiers are only mandatory in function definitions, not declarations)
20
20
static Func4 (){} // OK (class specifier "static" is in place)
21
21
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)
25
25
forward static stock Func5 (); // error 025: function heading differs from prototype
26
26
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
28
35
29
36
main (){}
You can’t perform that action at this time.
0 commit comments