Fix problem executing the CBE
[oota-llvm.git] / test / C++Frontend / pointer_member.cpp
index 3c8e25fe706cf8e8386596232e736fd4d66a077a..46ad7c3a1fe8883f7d2d0da9587d9a244f1c3907 100644 (file)
@@ -1,5 +1,17 @@
+#include <stdio.h>
+
 struct B { int i, j; };
 struct D : public B {};
 int D::*di = &D::i;
 int D::*dj = &D::j;
 
+int main() {
+  D d;
+  d.i = d.j = 0;
+  d.*di = 4;
+  d.*dj = 7;
+
+  printf("%d %d\n", d.i, d.j);
+
+  return 0;
+}