summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-20 15:50:13 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-20 15:50:13 +0000
commit64d9257e38a08bc836508a4159723bc1e39194ad (patch)
tree23303a85a04123004ca3614e63cc57cf94cd085b /clang/test
parentec7e6e09463a932bf01d64241888df85e692e665 (diff)
downloadbcm5719-llvm-64d9257e38a08bc836508a4159723bc1e39194ad.tar.gz
bcm5719-llvm-64d9257e38a08bc836508a4159723bc1e39194ad.zip
When performing layout for an Objective-C class, make sure to dig out
the definition of that class. Fixes PR11613 / <rdar://problem/10604077>. llvm-svn: 146976
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenObjC/forward-class-impl-metadata.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/forward-class-impl-metadata.m b/clang/test/CodeGenObjC/forward-class-impl-metadata.m
index e9e08589d19..371abf2ade9 100644
--- a/clang/test/CodeGenObjC/forward-class-impl-metadata.m
+++ b/clang/test/CodeGenObjC/forward-class-impl-metadata.m
@@ -39,3 +39,9 @@ int f0(A *a) {
@implementation A
@synthesize p0 = _p0;
@end
+
+@interface B
+@end
+@class B;
+@implementation B
+@end
OpenPOWER on IntegriCloud