[cfe-commits] r55615 - /cfe/trunk/test/Sema/array-init.c

Nuno Lopes nunoplopes at sapo.pt
Mon Sep 1 15:28:56 PDT 2008


Author: nlopes
Date: Mon Sep  1 17:28:55 2008
New Revision: 55615

URL: http://llvm.org/viewvc/llvm-project?rev=55615&view=rev
Log:
readd test as it passes correctly. nice, but weird

Modified:
    cfe/trunk/test/Sema/array-init.c

Modified: cfe/trunk/test/Sema/array-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/array-init.c?rev=55615&r1=55614&r2=55615&view=diff

==============================================================================
--- cfe/trunk/test/Sema/array-init.c (original)
+++ cfe/trunk/test/Sema/array-init.c Mon Sep  1 17:28:55 2008
@@ -222,5 +222,19 @@
 struct {int a; int:5;} noNamedImplicit[] = {1,2,3};
 int noNamedImplicitCheck[sizeof(noNamedImplicit) == 3 * sizeof(*noNamedImplicit) ? 1 : -1];
 
+
+// ptrs are constant
+struct soft_segment_descriptor {
+	int ssd_base;
+};
+static int dblfault_tss;
+
+union uniao { int ola; } xpto[1];
+
+struct soft_segment_descriptor gdt_segs[] = {
+	{(int) &dblfault_tss},
+	{ (int)xpto},
+};
+
 static void sppp_ipv6cp_up();
 const struct {} ipcp = { sppp_ipv6cp_up }; //expected-warning{{empty struct extension}} expected-warning{{excess elements in array initializer}}





More information about the cfe-commits mailing list