xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/debug-info-method-spec.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // FIXME: Check IR rather than asm, then triple is not needed.
2*0a6a1f1dSLionel Sambuc // RUN: %clang -Xclang -triple=%itanium_abi_triple -fverbose-asm -g -S %s -o - | grep DW_AT_specification
3f4a2713aSLionel Sambuc // Radar 9254491
4f4a2713aSLionel Sambuc class A {
5f4a2713aSLionel Sambuc public:
doSomething(int i)6f4a2713aSLionel Sambuc   void doSomething(int i) { ++i; }
7f4a2713aSLionel Sambuc };
8f4a2713aSLionel Sambuc 
foo(A * a)9f4a2713aSLionel Sambuc void foo(A *a) {
10f4a2713aSLionel Sambuc   a->doSomething(2);
11f4a2713aSLionel Sambuc }
12