From 95dbda70c43f4c5cbf100f8f02b3e9118767cdc0 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Fri, 30 Apr 2010 19:39:29 +0000 Subject: [PATCH] New test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102746 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../2010-04-30-OptimizedMethod-Dbg.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp 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 00000000000..dc9b16c2822 --- /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; +} + -- 2.34.1