//===-- main.cpp ------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #include template class A { public: void accessMember(T a); T accessMemberConst() const; static int accessStaticMember(); void accessMemberInline(T a) __attribute__ ((always_inline)) { m_a = a; // breakpoint 4 } T m_a; static int s_a; }; template int A::s_a = 5; template void A::accessMember(T a) { m_a = a; // breakpoint 1 } template T A::accessMemberConst() const { return m_a; // breakpoint 2 } template int A::accessStaticMember() { return s_a; // breakpoint 3 } int main() { A my_a; my_a.accessMember(3); my_a.accessMemberConst(); A::accessStaticMember(); my_a.accessMemberInline(5); }