diff options
Diffstat (limited to 'test/FrontendC++')
-rw-r--r-- | test/FrontendC++/2009-07-16-Using.cpp | 2 | ||||
-rw-r--r-- | test/FrontendC++/2009-10-27-crash.cpp | 2 | ||||
-rw-r--r-- | test/FrontendC++/2010-04-30-OptimizedMethod-Dbg.cpp | 17 |
3 files changed, 19 insertions, 2 deletions
diff --git a/test/FrontendC++/2009-07-16-Using.cpp b/test/FrontendC++/2009-07-16-Using.cpp index 1acadf6..c0e0314 100644 --- a/test/FrontendC++/2009-07-16-Using.cpp +++ b/test/FrontendC++/2009-07-16-Using.cpp @@ -1,4 +1,4 @@ -// RUN: %llvmgxx %s -S +// RUN: %llvmgxx %s -S -o /dev/null namespace A { typedef int B; diff --git a/test/FrontendC++/2009-10-27-crash.cpp b/test/FrontendC++/2009-10-27-crash.cpp index 5641aa4..21d0064 100644 --- a/test/FrontendC++/2009-10-27-crash.cpp +++ b/test/FrontendC++/2009-10-27-crash.cpp @@ -1,4 +1,4 @@ -// RUN: %llvmgxx -emit-llvm -S %s +// RUN: %llvmgxx -emit-llvm -S %s -o /dev/null // Radar 7328944 typedef struct 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 0000000..dc9b16c --- /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; +} + |