commit | 902fddd1cf4387267ad7f709019721521fc3ba8e | [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 | 644c4e8429b5121ca58fb58fcaa47af47b3618f9 | |
parent | 8ca336a86af21450a246cede0ad2c995408d065e [diff] [blame] |
Fix for PR4108: be a bit looser with the casts that we accept in constant initializers. llvm-svn: 70483
diff --git a/clang/test/CodeGen/const-init.c b/clang/test/CodeGen/const-init.c index a7220e0..1f9d74c 100644 --- a/clang/test/CodeGen/const-init.c +++ b/clang/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 +