Skip to content

Commit 29b9e73

Browse files
committed
C++ front-end: support attributes with tag-less structs
Seen in GCC's STL.
1 parent 2656aa8 commit 29b9e73

File tree

1 file changed

+4
-0
lines changed
  • regression/cpp/type_traits_essentials1

1 file changed

+4
-0
lines changed

regression/cpp/type_traits_essentials1/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ template<typename T> using x=V<T>;
2828

2929
#ifdef __GNUC__
3030
using type __attribute__((__nodebug__)) = int;
31+
template <std::size_t _Align = __alignof__(int)>
32+
struct __attribute__((__aligned__((_Align))))
33+
{
34+
} __align;
3135
#endif
3236

3337
struct alignas(0x1) t

0 commit comments

Comments
 (0)