Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenCXX / debug-info-method2.cpp
blob1879b1a364ddc18e147b92572c68923a2405f5fb
1 // RUN: %clang_cc1 -x c++ -debug-info-kind=limited -S -emit-llvm < %s | FileCheck %s
2 // Preserve type qualifiers in -flimit-debug-info mode.
4 // CHECK: DW_TAG_const_type
5 class A {
6 public:
7 int bar(int arg) const;
8 };
10 int A::bar(int arg) const{
11 return arg+2;
14 int main() {
15 A a;
16 int i = a.bar(2);
17 return i;