repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Silence -Wunused-variable in release builds.
[llvm/stm8.git]
/
test
/
FrontendC++
/
2010-04-30-OptimizedMethod-Dbg.cpp
blob
761c0dc097a4cde72ee03e810556aaed88990877
1
// RUN: %llvmgcc -g -S -O2 %s -o - | FileCheck %s
2
3
class
foo
{
4
public
:
5
int
bar
(
int
x
);
6
static int
baz
(
int
x
);
7
};
8
9
int
foo
::
bar
(
int
x
) {
10
// CHECK: {{i32 [0-9]+, i1 true(, i[0-9]+ [^\}]+[}]|[}]) ; \[ DW_TAG_subprogram \]}}
11
return
x
*
4
+
1
;
12
}
13
14
int
foo
::
baz
(
int
x
) {
15
// CHECK: {{i32 [0-9]+, i1 true(, i[0-9]+ [^\},]+[}]|[}]) ; \[ DW_TAG_subprogram \]}}
16
return
x
*
4
+
1
;
17
}
18