repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
clang
/
test
/
CodeGenCXX
/
debug-info-method2.cpp
blob
1879b1a364ddc18e147b92572c68923a2405f5fb
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.
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
}