clang/test/DebugInfo/CXX/method2.cpp
raw| 1 | // RUN: %clang_cc1 -x c++ -debug-info-kind=limited -emit-llvm < %s | FileCheck %s |
| 2 | // Preserve type qualifiers in -flimit-debug-info mode. |
| 3 | |
| 4 | // CHECK: DW_TAG_const_type |
| 5 | class A { |
| 6 | public: |
| 7 | int bar(int arg) const; |
| 8 | }; |
| 9 | |
| 10 | int A::bar(int arg) const{ |
| 11 | return arg+2; |
| 12 | } |
| 13 | |
| 14 | int main() { |
| 15 | A a; |
| 16 | int i = a.bar(2); |
| 17 | return i; |
| 18 | } |