mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-02 08:46:23 +00:00
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102746 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ccff812777
commit
95dbda70c4
17
test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp
Normal file
17
test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
// RUN: %llvmgcc -g -S -O2 %s -o %t
|
||||
// RUN: grep "i1 false, i1 true. . . DW_TAG_subprogram" %t | count 2
|
||||
|
||||
class foo {
|
||||
public:
|
||||
int bar(int x);
|
||||
static int baz(int x);
|
||||
};
|
||||
|
||||
int foo::bar(int x) {
|
||||
return x*4 + 1;
|
||||
}
|
||||
|
||||
int foo::baz(int x) {
|
||||
return x*4 + 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user