summaryrefslogtreecommitdiff
path: root/test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-04-30 19:39:29 +0000
committerDevang Patel <dpatel@apple.com>2010-04-30 19:39:29 +0000
commit95dbda70c43f4c5cbf100f8f02b3e9118767cdc0 (patch)
tree1252e3098ae799797b0e1a7bf9ddb0cc1c0c34ee /test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp
parentccff812777470d294b7d7407783ccb6111ca0d10 (diff)
downloadllvm-95dbda70c43f4c5cbf100f8f02b3e9118767cdc0.tar.gz
llvm-95dbda70c43f4c5cbf100f8f02b3e9118767cdc0.tar.bz2
llvm-95dbda70c43f4c5cbf100f8f02b3e9118767cdc0.tar.xz
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102746 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp')
-rw-r--r--test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp17
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 0000000000..dc9b16c282
--- /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;
+}
+