Skip to content

Commit

Permalink
Keep separate inout prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel committed May 10, 2023
1 parent 69dd0ee commit 0a8550c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Units/parser-d.r/simple.d.d/expected.tags
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ attr_decl input.d /^@attr(i) int attr_decl = 1;$/;" v
bar input.d /^ bar,$/;" e enum:Enum file:
bar input.d /^ public AliasInt bar()$/;" f class:Class
conditional input.d /^ T conditional;$/;" v file:
f_inout input.d /^inout(int)* f_inout(inout(int)* p) { return p; }$/;" f
foo input.d /^ foo,$/;" e enum:Enum file:
g_inout input.d /^inout(int)* g_inout(inout(int)* p) { return p; }$/;" f
globalVar input.d /^__gshared int globalVar;$/;" v
i input.d /^int i;$/;" v
main input.d /^void main(string[] args)$/;" f file:
Expand Down
7 changes: 4 additions & 3 deletions Units/parser-d.r/simple.d.d/input.d
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum Enum : int

interface Interface
{
public AliasInt bar();
public AliasInt bar(); // FIXME prototypes
}

class Class : Interface
Expand Down Expand Up @@ -73,7 +73,8 @@ Object obj;

const(int)* type_con;
immutable(int)* type_imm;
inout(int)* f_inout(inout(int)* p) { return p; }
inout(int)* f_inout(inout Object); // FIXME prototypes
inout(int)* g_inout(inout(int)* p) { return p; }
shared(int)[] type_shar;

private:
Expand All @@ -86,7 +87,7 @@ int error;
@attr(i) int attr_decl = 1;
@attr(i) attr_decl_infer = 1; // FIXME
@(obj) T attr_anon;
void attr_post() @attr(obj); // FIXME
void attr_post() @attr(obj); // FIXME prototypes

static if (is(typeof(__traits(getMember, a, name)) == function))
T conditional;
Expand Down

0 comments on commit 0a8550c

Please sign in to comment.