[cfe-commits] r137771 - /cfe/trunk/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp

Eric Christopher echristo at apple.com
Tue Aug 16 14:41:50 PDT 2011


Author: echristo
Date: Tue Aug 16 16:41:50 2011
New Revision: 137771

URL: http://llvm.org/viewvc/llvm-project?rev=137771&view=rev
Log:
Migrate from llvm/test/FrontendC++.

Added:
    cfe/trunk/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp

Added: cfe/trunk/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp?rev=137771&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2010-05-12-PtrToMember-Dbg.cpp Tue Aug 16 16:41:50 2011
@@ -0,0 +1,17 @@
+//RUN: %clang_cc1 -emit-llvm -g -o - %s | FileCheck %s
+//CHECK: DW_TAG_auto_variable
+class Foo
+{
+ public:
+  int x;
+  int y;
+  Foo (int i, int j) { x = i; y = j; }
+};
+
+
+Foo foo(10, 11);
+
+int main() {
+  int Foo::* pmi = &Foo::y;
+  return foo.*pmi;
+}





More information about the cfe-commits mailing list