File tree 2 files changed +11
-6
lines changed
regression/cpp/gcc_attributes2
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 @@ -4526,6 +4526,12 @@ bool Parser::rClassSpec(typet &spec)
4526
4526
std::cout << std::string (__indent, ' ' ) << " Parser::rClassSpec 3\n " ;
4527
4527
#endif
4528
4528
4529
+ if (!optAlignas (spec))
4530
+ return false ;
4531
+
4532
+ if (!optAttribute (spec))
4533
+ return false ;
4534
+
4529
4535
if (lex.LookAhead (0 )==' {' )
4530
4536
{
4531
4537
// no tag
@@ -4535,12 +4541,6 @@ bool Parser::rClassSpec(typet &spec)
4535
4541
}
4536
4542
else
4537
4543
{
4538
- if (!optAlignas (spec))
4539
- return false ;
4540
-
4541
- if (!optAttribute (spec))
4542
- return false ;
4543
-
4544
4544
irept name;
4545
4545
4546
4546
if (!rName (name))
You can’t perform that action at this time.
0 commit comments