summaryrefslogtreecommitdiffstats
path: root/llvm/test/C++Frontend/2003-11-18-EnumArray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/C++Frontend/2003-11-18-EnumArray.cpp')
-rw-r--r--llvm/test/C++Frontend/2003-11-18-EnumArray.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/C++Frontend/2003-11-18-EnumArray.cpp b/llvm/test/C++Frontend/2003-11-18-EnumArray.cpp
new file mode 100644
index 00000000000..6eaf9d66f2d
--- /dev/null
+++ b/llvm/test/C++Frontend/2003-11-18-EnumArray.cpp
@@ -0,0 +1,14 @@
+// RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
+
+enum TchkType {
+ tchkNum, tchkString, tchkSCN, tchkNone
+};
+
+struct Operator {
+ enum TchkType tchk[8];
+};
+
+struct Operator opTab[] = {
+ {{tchkNum, tchkNum, tchkString} }
+};
+
OpenPOWER on IntegriCloud