summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/const-init.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/const-init.c')
-rw-r--r--clang/test/CodeGen/const-init.c6
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};
+
OpenPOWER on IntegriCloud