diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-11-13 21:23:46 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-11-13 21:23:46 +0000 |
| commit | 6f04b1e605ffaca74abbaeb6f75340e45786e807 (patch) | |
| tree | f66acb1b60ab348ab55704df246fcee689580d3d /clang/test/CodeGen/const-init.c | |
| parent | f75c1f7a732847b17858a95440bdc0ef42edf744 (diff) | |
| download | bcm5719-llvm-6f04b1e605ffaca74abbaeb6f75340e45786e807.tar.gz bcm5719-llvm-6f04b1e605ffaca74abbaeb6f75340e45786e807.zip | |
Obvious fix for PR5474.
llvm-svn: 88696
Diffstat (limited to 'clang/test/CodeGen/const-init.c')
| -rw-r--r-- | clang/test/CodeGen/const-init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/const-init.c b/clang/test/CodeGen/const-init.c index e25da9c6eba..caef3e14c07 100644 --- a/clang/test/CodeGen/const-init.c +++ b/clang/test/CodeGen/const-init.c @@ -111,3 +111,9 @@ void *g20(void) { // PR4108 struct g21 {int g21;}; const struct g21 g21 = (struct g21){1}; + +// PR5474 +struct g22 {int x;} __attribute((packed)); +struct g23 {char a; short b; char c; struct g22 d;}; +struct g23 g24 = {1,2,3,4}; + |

