r243355 - [test] Follow-up for r243343, also add a test case using an enum for designated enum.
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Jul 27 17:01:14 PDT 2015
Author: akirtzidis
Date: Mon Jul 27 19:01:13 2015
New Revision: 243355
URL: http://llvm.org/viewvc/llvm-project?rev=243355&view=rev
Log:
[test] Follow-up for r243343, also add a test case using an enum for designated enum.
Modified:
cfe/trunk/test/CodeGenObjCXX/designated-initializers.mm
Modified: cfe/trunk/test/CodeGenObjCXX/designated-initializers.mm
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/designated-initializers.mm?rev=243355&r1=243354&r2=243355&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/designated-initializers.mm (original)
+++ cfe/trunk/test/CodeGenObjCXX/designated-initializers.mm Mon Jul 27 19:01:13 2015
@@ -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"
More information about the cfe-commits
mailing list