aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/reference-in-blocks.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/reference-in-blocks.cpp')
-rw-r--r--test/CodeGenCXX/reference-in-blocks.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/reference-in-blocks.cpp b/test/CodeGenCXX/reference-in-blocks.cpp
index 388ec7c4bb..f08ef56880 100644
--- a/test/CodeGenCXX/reference-in-blocks.cpp
+++ b/test/CodeGenCXX/reference-in-blocks.cpp
@@ -41,3 +41,13 @@ int main() {
a->F();
return 0;
}
+
+// rdar://8382559
+namespace radar8382559 {
+ void func(bool& outHasProperty);
+
+ void test() {
+ __attribute__((__blocks__(byref))) bool hasProperty = false;
+ func(hasProperty);
+ }
+}