-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Zig Version
0.16.0-dev.747+493ad58ff
Steps to Reproduce and Observed Behavior
$ printf "typedef struct A {} A, __attribute__((deprecated)) B;\n" > /tmp/a.h
$ zig translate-c /tmp/a.hresults in error:
/tmp/a.h:1:24: error: expected identifier or '('
typedef struct A {} A, __attribute__((deprecated)) B;
^
/tmp/a.h:1:24: error: expected ';', found '__attribute__'
typedef struct A {} A, __attribute__((deprecated)) B;
^
Expected Behavior
Aro-based translate-c should correctly parse this code like clang did.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working