aboutsummaryrefslogtreecommitdiff
path: root/test/Index/boxed-exprs.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-09 17:46:47 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2012-05-09 17:46:47 +0000
commitc44c0e4e2f3f911319a6a5ab564fe59a4ece45a0 (patch)
treed5f24bf9aa462b79100e46ac081385b271529ea7 /test/Index/boxed-exprs.h
parent50b5a5c32e07301e4edcc01aca1f8a49a128c66c (diff)
[libclang] Add a test for objc boxed expressions.
rdar://11407754 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Index/boxed-exprs.h')
-rw-r--r--test/Index/boxed-exprs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/boxed-exprs.h b/test/Index/boxed-exprs.h
new file mode 100644
index 0000000000..bdb80383d7
--- /dev/null
+++ b/test/Index/boxed-exprs.h
@@ -0,0 +1,10 @@
+
+@interface NSString @end
+
+@interface NSString (NSStringExtensionMethods)
++ (id)stringWithUTF8String:(const char *)nullTerminatedCString;
+@end
+
+static inline void infoo(const char *cs) {
+ NSString *s = @(cs);
+}