summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/C++Frontend/2003-11-18-EnumArray.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-18 20:30:00 +0000
committerChris Lattner <sabre@nondot.org>2003-11-18 20:30:00 +0000
commit47487608a9877444c0aa03f9dd175be771f9db66 (patch)
tree2b851d7168ee3b3ff4c21c150ec18ae724a5c591 /llvm/test/Regression/C++Frontend/2003-11-18-EnumArray.cpp
parent05906cf0f099247c0a7f731a29f4672d870e2a81 (diff)
downloadbcm5719-llvm-47487608a9877444c0aa03f9dd175be771f9db66.tar.gz
bcm5719-llvm-47487608a9877444c0aa03f9dd175be771f9db66.zip
New testcase for PR125
llvm-svn: 10071
Diffstat (limited to 'llvm/test/Regression/C++Frontend/2003-11-18-EnumArray.cpp')
-rw-r--r--llvm/test/Regression/C++Frontend/2003-11-18-EnumArray.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Regression/C++Frontend/2003-11-18-EnumArray.cpp b/llvm/test/Regression/C++Frontend/2003-11-18-EnumArray.cpp
new file mode 100644
index 00000000000..b4d861b2c38
--- /dev/null
+++ b/llvm/test/Regression/C++Frontend/2003-11-18-EnumArray.cpp
@@ -0,0 +1,12 @@
+enum TchkType {
+ tchkNum, tchkString, tchkSCN, tchkNone
+};
+
+struct Operator {
+ enum TchkType tchk[8];
+};
+
+struct Operator opTab[] = {
+ {{tchkNum, tchkNum, tchkString} }
+};
+
OpenPOWER on IntegriCloud