[cfe-commits] r59861 - /cfe/trunk/test/CodeGen/const-init.c

Anders Carlsson andersca at mac.com
Fri Nov 21 22:42:54 PST 2008


Author: andersca
Date: Sat Nov 22 00:42:54 2008
New Revision: 59861

URL: http://llvm.org/viewvc/llvm-project?rev=59861&view=rev
Log:
Add test for PR2992.

Modified:
    cfe/trunk/test/CodeGen/const-init.c

Modified: cfe/trunk/test/CodeGen/const-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/const-init.c?rev=59861&r1=59860&r2=59861&view=diff

==============================================================================
--- cfe/trunk/test/CodeGen/const-init.c (original)
+++ cfe/trunk/test/CodeGen/const-init.c Sat Nov 22 00:42:54 2008
@@ -13,3 +13,11 @@
 intptr_t e = c; // expected-warning {{incompatible pointer to integer conversion}}
 
 int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f;
+
+union s2 {
+  struct {
+    struct { } *f0;
+  } f0;
+};
+
+int g0 = (int)(&(((union s2 *) 0)->f0.f0) - 0);





More information about the cfe-commits mailing list