This should always be signed chars, so use int8_t. This fixes a miscompile when
[llvm/stm8.git] / test / FrontendC++ / 2006-03-01-GimplifyCrash.cpp
blobb0d00fe17ddfdab2dcfe65fee30f1fa6ef0b4e27
1 // RUN: %llvmgxx -S %s -o -
3 struct PrefMapElem {
4 virtual ~PrefMapElem();
5 unsigned int fPrefId;
6 };
8 int foo() {
9 PrefMapElem* fMap;
10 if (fMap[0].fPrefId == 1)
11 return 1;
13 return 0;