aboutsummaryrefslogtreecommitdiff
path: root/test/PCH/objc_exprs.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-15 06:20:27 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-11-15 06:20:27 +0000
commit64482c6ddba162c0c4df07ed4791fb08736d5a4c (patch)
treee001a4c9b06d9df014d378585a59f9dc31a4f1d3 /test/PCH/objc_exprs.h
parente7bbab91f5cc899104d0a1dee6059d8413c70eeb (diff)
[PCH] When serializing an PseudoObjectExpr or AtomicExpr, the serialization code must be set
otherwise it will crash with asserts on or it will be written as null pointer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/PCH/objc_exprs.h')
-rw-r--r--test/PCH/objc_exprs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/PCH/objc_exprs.h b/test/PCH/objc_exprs.h
index b811430c2e..807304c20f 100644
--- a/test/PCH/objc_exprs.h
+++ b/test/PCH/objc_exprs.h
@@ -16,3 +16,11 @@ typedef typeof(id<foo>) objc_id_protocol_ty;
typedef typeof(itf*) objc_interface_ty;
typedef typeof(itf<foo>*) objc_qual_interface_ty;
+
+@interface PP
+@property (assign) id prop;
+@end
+
+static inline id getPseudoObject(PP *p) {
+ return p.prop;
+}