From 2705819240d39768fe0429d8d7469a53b2bf685b Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 28 Jul 2015 00:01:13 +0000 Subject: [PATCH] [test] Follow-up for r243343, also add a test case using an enum for designated enum. llvm-svn: 243355 --- clang/test/CodeGenObjCXX/designated-initializers.mm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/clang/test/CodeGenObjCXX/designated-initializers.mm b/clang/test/CodeGenObjCXX/designated-initializers.mm index 41a4271..71ffe1f 100644 --- a/clang/test/CodeGenObjCXX/designated-initializers.mm +++ b/clang/test/CodeGenObjCXX/designated-initializers.mm @@ -34,3 +34,11 @@ int vals5[3] = { 6 }; // CHECK: @vals5 = global [3 x i32] [i32 1, i32 2, i32 6] + +enum SomeEnum : unsigned char { + blah = 255 +}; +char vals6[] = { + [blah] = 'a' +}; +// CHECK: @vals6 = global [256 x i8] c"\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00a" -- 2.7.4