aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/const-init.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-04-30 07:03:22 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-04-30 07:03:22 +0000
commit944af7156db03d4ad15973dad259ab51d405e609 (patch)
tree56cefc5d776c8482e07095e1752b4484984327c3 /test/CodeGen/const-init.c
parent09c43d1e4dc7e0d2e80f2158bd1a03f7c793eb4f (diff)
Fix for PR4108: be a bit looser with the casts that we accept in
constant initializers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/const-init.c')
-rw-r--r--test/CodeGen/const-init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c
index a7220e0c29..1f9d74c7e9 100644
--- a/test/CodeGen/const-init.c
+++ b/test/CodeGen/const-init.c
@@ -96,4 +96,9 @@ void *g20(void) {
return l0.f1;
}
+// PR4108
+struct g21 {int g21;};
+const struct g21 g21 = (struct g21){1};
+
// RUN: true
+