summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/p6927.C
blob: 22b4875e32a1c8159742409de8e7aa72251168d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do run  }
// prms-id: 6927

class Object {
public:
  Object();
  int Value;
};

Object::Object() : Value(-1) { }

Object *pArr = new Object[2];

int main() {
  if (pArr[0].Value != -1 || pArr[1].Value != -1)
    return 1;
}