Fixed some bugs.
[llvm/zpu.git] / test / FrontendC++ / 2010-05-12-PtrToMember-Dbg.cpp
blob66acfbe4b326fc9122ddf8258810530ca13eabe3
1 //RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep DW_TAG_auto_variable
2 class Foo
4 public:
5 int x;
6 int y;
7 Foo (int i, int j) { x = i; y = j; }
8 };
11 Foo foo(10, 11);
13 int main() {
14 int Foo::* pmi = &Foo::y;
15 return foo.*pmi;