aboutsummaryrefslogtreecommitdiffstats
path: root/test/FrontendC++/2006-03-01-GimplifyCrash.cpp
blob: b0d00fe17ddfdab2dcfe65fee30f1fa6ef0b4e27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %llvmgxx -S %s -o -

struct PrefMapElem {
  virtual ~PrefMapElem(); 
  unsigned int fPrefId;
};

int foo() {
  PrefMapElem* fMap;
  if (fMap[0].fPrefId == 1)
    return 1;
  
  return 0;
}