commit | 61a8495e1e0485bd40f613004bf29f8a925ab37c | [log] [tgz] |
---|---|---|
author | Andrew Top <aabtop@google.com> | Tue Apr 30 15:07:33 2019 -0700 |
committer | Andrew Top <aabtop@google.com> | Thu May 02 17:06:51 2019 -0700 |
tree | 8b4860759d8854c2c58b6db4cf3ad2bf3f68aa5c | |
parent | 193dc3d54bfe1fcc7a4d95650f8e9f2c8d9e7d1e [diff] [blame] |
Import Cobalt 19.master.0.203780 Includes the following patches: https://cobalt-review.googlesource.com/c/cobalt/+/5210 by errong.leng@samsung.com https://cobalt-review.googlesource.com/c/cobalt/+/5270 by linus.wang@samsung.com
diff --git a/src/third_party/llvm-project/clang/test/Rewriter/rewrite-weak-attr.m b/src/third_party/llvm-project/clang/test/Rewriter/rewrite-weak-attr.m new file mode 100644 index 0000000..f8eb3b7 --- /dev/null +++ b/src/third_party/llvm-project/clang/test/Rewriter/rewrite-weak-attr.m
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -triple i686-pc-win32 -fms-extensions -fblocks -Dnil=0 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -o - %s +int main() { + __weak __block id foo = nil; + __block id foo2 = nil; + id foo3 = nil; + + void (^myblock)() = ^{ + foo = nil; + foo2 = nil; + [foo3 bar]; + id foo4 = foo3; + }; +}