diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-11-12 22:37:43 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-11-12 22:37:43 +0000 |
commit | 6d7542773f7b2eb8e89a674b04405426cf480d32 (patch) | |
tree | 59a882d7a000ecd4be321ede223f0723138aacc8 /test/CodeGenObjCXX/arc-cxx11-member-init.mm | |
parent | 24a4c64ba57cfcce05a829dd53ec8fa850445604 (diff) |
[Objective-C++ IRGen] do not generate .cxx_construct
for class that contains trivially-constructible struct ivar.
rdar://18950072
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221823 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenObjCXX/arc-cxx11-member-init.mm')
-rw-r--r-- | test/CodeGenObjCXX/arc-cxx11-member-init.mm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenObjCXX/arc-cxx11-member-init.mm b/test/CodeGenObjCXX/arc-cxx11-member-init.mm index 85fa5f49c0..9c673cfbeb 100644 --- a/test/CodeGenObjCXX/arc-cxx11-member-init.mm +++ b/test/CodeGenObjCXX/arc-cxx11-member-init.mm @@ -30,3 +30,16 @@ class XClipboardDataSet // CHECK: [[THREE:%.*]] = bitcast i8* [[CALL]] to [[T:%.*]]* // CHECK: store [[T]]* [[THREE]], [[T]]** [[mClipData]], align 8 +// rdar://18950072 +struct Butt { }; + +__attribute__((objc_root_class)) +@interface Foo { + Butt x; + Butt y; + Butt z; +} +@end +@implementation Foo +@end +// CHECK-NOTE: define internal i8* @"\01-[Foo .cxx_construct |