diff options
author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-05-04 16:11:02 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-05-04 16:11:02 +0000 |
commit | d7f7719e5e082c0b8ea2182dcbd2242b7834aa26 (patch) | |
tree | 70fbd90da02177c8e6ef82adba9fa8ace285a5e3 /test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp | |
parent | 9f4a1da9a0a56a0b0a7f8249f34b3cdea6179c41 (diff) |
Notes
Diffstat (limited to 'test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp')
-rw-r--r-- | test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp b/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp new file mode 100644 index 0000000000000..dc9b16c282272 --- /dev/null +++ b/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp @@ -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; +} + |