diff options
Diffstat (limited to 'clang/test/Modules/templates.mm')
-rw-r--r-- | clang/test/Modules/templates.mm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/Modules/templates.mm b/clang/test/Modules/templates.mm index cd80e2480bf..79e975a1ad1 100644 --- a/clang/test/Modules/templates.mm +++ b/clang/test/Modules/templates.mm @@ -116,4 +116,9 @@ void testStaticDataMember() { (void) getStaticDataMemberRight(); } - +void testWithAttributes() { + auto a = make_with_attributes_left(); + auto b = make_with_attributes_right(); + static_assert(alignof(decltype(a)) == 2, ""); + static_assert(alignof(decltype(b)) == 2, ""); +} |