[PATCH] D27909: Add a lit test for PR31374
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 18 19:06:28 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL290075: Add a lit test for PR31374 (authored by yaxunl).
Changed prior to commit:
https://reviews.llvm.org/D27909?vs=81907&id=81910#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27909
Files:
cfe/trunk/test/CodeGenObjC/nullptr-assert.m
Index: cfe/trunk/test/CodeGenObjC/nullptr-assert.m
===================================================================
--- cfe/trunk/test/CodeGenObjC/nullptr-assert.m
+++ cfe/trunk/test/CodeGenObjC/nullptr-assert.m
@@ -0,0 +1,22 @@
+// RUN: %clang_cc1 -Wno-objc-root-class -o /dev/null -triple x86_64-- -emit-llvm %s
+// REQUIRES: asserts
+// Verify there is no assertion.
+
+ at interface A
+ at end
+
+extern A *a;
+
+ at interface X
+ at end
+
+ at implementation X
+
+-(void)test {
+ struct S {
+ A *a;
+ int b;
+ };
+ struct S s[] = {{a, 0}, {(void *)0, 0}};
+}
+ at end
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27909.81910.patch
Type: text/x-patch
Size: 567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161219/6a416dc1/attachment.bin>
More information about the cfe-commits
mailing list