Fix a buggy constant folding transformation when handling aliases.
[oota-llvm.git] / test / C++Frontend / 2003-11-18-EnumArray.cpp
1 // RUN: %llvmgxx -S %s -o - | llvm-as -f -o /dev/null
2
3 enum TchkType {
4   tchkNum, tchkString, tchkSCN, tchkNone
5 };
6
7 struct Operator {
8   enum TchkType tchk[8];
9 };
10
11 struct Operator opTab[] = {
12   {{tchkNum, tchkNum, tchkString} }
13 };
14