commit | 0737c0c082e50a4e0f86c20991129872ad261a2b | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Thu Apr 30 07:03:22 2009 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Thu Apr 30 07:03:22 2009 +0000 |
tree | 56cefc5d776c8482e07095e1752b4484984327c3 | |
parent | 441a56966b66468c53659e192303d59464044667 [diff] [blame] |
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
diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c index a7220e0..1f9d74c 100644 --- a/test/CodeGen/const-init.c +++ b/test/CodeGen/const-init.c
@@ -96,4 +96,9 @@ return l0.f1; } +// PR4108 +struct g21 {int g21;}; +const struct g21 g21 = (struct g21){1}; + // RUN: true +