mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
New test.
llvm-svn: 102746
This commit is contained in:
parent
52c2d4d378
commit
9832115581
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