xref: /aosp_15_r20/external/clang/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 //RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -o - %s | FileCheck %s
2 //CHECK: DILocalVariable(
3 class Foo
4 {
5  public:
6   int x;
7   int y;
Foo(int i,int j)8   Foo (int i, int j) { x = i; y = j; }
9 };
10 
11 
12 Foo foo(10, 11);
13 
main()14 int main() {
15   int Foo::* pmi = &Foo::y;
16   return foo.*pmi;
17 }
18