File tree 2 files changed +19
-1
lines changed
regression/ansi-c/VS_extensions1 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ __declspec(thread) int thread_local;
20
20
21
21
struct __declspec(dllimport ) some_struct_tag { int x ; };
22
22
23
+ typedef union __declspec(intrin_type ) __declspec (align (8 )) u {
24
+ int x ;
25
+ int y ;
26
+ } u2 ;
27
+
23
28
//__delegate int GetDayOfWeek();
24
29
25
30
// __event
Original file line number Diff line number Diff line change @@ -1440,7 +1440,20 @@ msc_declspec_opt:
1440
1440
{
1441
1441
init ($$, ID_nil);
1442
1442
}
1443
- | msc_declspec
1443
+ | msc_declspec_opt msc_declspec
1444
+ {
1445
+ if (parser_stack($1 ).is_not_nil())
1446
+ {
1447
+ $$ = $1 ;
1448
+ exprt::operandst &operands = parser_stack($1 ).operands();
1449
+ operands.insert(
1450
+ operands.end(),
1451
+ parser_stack ($2 ).operands().begin(),
1452
+ parser_stack($2 ).operands().end());
1453
+ }
1454
+ else
1455
+ $$ = $2 ;
1456
+ }
1444
1457
;
1445
1458
1446
1459
storage_class :
You can’t perform that action at this time.
0 commit comments