File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
regression/cpp/gcc_attributes2 Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
#ifdef __GNUC__
2
2
typedef int my_int16_t __attribute__ ((__mode__(__HI__)));
3
3
static_assert (sizeof (my_int16_t ) == 2, "16 bit");
4
+
5
+ template <std::size_t _Align = __alignof__(int )>
6
+ struct __attribute__ ((__aligned__((_Align))))
7
+ {
8
+ } __align;
4
9
#endif
5
10
6
11
int main ()
Original file line number Diff line number Diff line change @@ -4486,6 +4486,12 @@ bool Parser::rClassSpec(typet &spec)
4486
4486
std::cout << std::string (__indent, ' ' ) << " Parser::rClassSpec 3\n " ;
4487
4487
#endif
4488
4488
4489
+ if (!optAlignas (spec))
4490
+ return false ;
4491
+
4492
+ if (!optAttribute (spec))
4493
+ return false ;
4494
+
4489
4495
if (lex.LookAhead (0 )==' {' )
4490
4496
{
4491
4497
// no tag
@@ -4495,12 +4501,6 @@ bool Parser::rClassSpec(typet &spec)
4495
4501
}
4496
4502
else
4497
4503
{
4498
- if (!optAlignas (spec))
4499
- return false ;
4500
-
4501
- if (!optAttribute (spec))
4502
- return false ;
4503
-
4504
4504
irept name;
4505
4505
4506
4506
if (!rName (name))
You can’t perform that action at this time.
0 commit comments