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.
+
+@interface A
+@end
+
+extern A *a;
+
+@interface X
+@end
+
+@implementation X
+
+-(void)test {
+  struct S {
+    A *a;
+    int b;
+  };
+  struct S s[] = {{a, 0}, {(void *)0, 0}};
+}
+@end


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.
+
+@interface A
+@end
+
+extern A *a;
+
+@interface X
+@end
+
+@implementation X
+
+-(void)test {
+  struct S {
+    A *a;
+    int b;
+  };
+  struct S s[] = {{a, 0}, {(void *)0, 0}};
+}
+@end
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to