summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/for-range-temporaries.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-01-31 23:43:25 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-01-31 23:43:25 +0000
commit440e9db9e7292eb717ba7dcaf626aedb907055a2 (patch)
tree9e12db5e95645e19ef68fd0033393eb48c957b38 /clang/test/CodeGenCXX/for-range-temporaries.cpp
parentbcdc282d853cea666c61a8067154075da2914467 (diff)
downloadbcm5719-llvm-440e9db9e7292eb717ba7dcaf626aedb907055a2.tar.gz
bcm5719-llvm-440e9db9e7292eb717ba7dcaf626aedb907055a2.zip
Extend for-range temporary cleanups codegen test to catch the bug which Eli
fixed in r149440. llvm-svn: 149450
Diffstat (limited to 'clang/test/CodeGenCXX/for-range-temporaries.cpp')
-rw-r--r--clang/test/CodeGenCXX/for-range-temporaries.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/for-range-temporaries.cpp b/clang/test/CodeGenCXX/for-range-temporaries.cpp
index c705702f4f5..a03bb0a8152 100644
--- a/clang/test/CodeGenCXX/for-range-temporaries.cpp
+++ b/clang/test/CodeGenCXX/for-range-temporaries.cpp
@@ -1,6 +1,9 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -std=c++11 -emit-llvm -o - -UDESUGAR %s | opt -instnamer -S | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -std=c++11 -emit-llvm -o - -DDESUGAR %s | opt -instnamer -S | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -std=c++11 -emit-llvm -o - -UDESUGAR -DTEMPLATE %s | opt -instnamer -S | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -std=c++11 -emit-llvm -o - -DDESUGAR -DTEMPLATE %s | opt -instnamer -S | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -std=c++11 -emit-llvm -o - -UDESUGAR -DTEMPLATE -DDEPENDENT %s | opt -instnamer -S | FileCheck %s
+// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -std=c++11 -emit-llvm -o - -DDESUGAR -DTEMPLATE -DDEPENDENT %s | opt -instnamer -S | FileCheck %s
struct A {
A();
@@ -67,7 +70,11 @@ struct I {
void body(const I &);
#ifdef TEMPLATE
+#ifdef DEPENDENT
template<typename D>
+#else
+template<typename>
+#endif
#endif
void for_temps() {
A a;
OpenPOWER on IntegriCloud