[cfe-commits] r149450 - /cfe/trunk/test/CodeGenCXX/for-range-temporaries.cpp

Richard Smith richard-llvm at metafoo.co.uk
Tue Jan 31 15:43:26 PST 2012


Author: rsmith
Date: Tue Jan 31 17:43:25 2012
New Revision: 149450

URL: http://llvm.org/viewvc/llvm-project?rev=149450&view=rev
Log:
Extend for-range temporary cleanups codegen test to catch the bug which Eli
fixed in r149440.

Modified:
    cfe/trunk/test/CodeGenCXX/for-range-temporaries.cpp

Modified: cfe/trunk/test/CodeGenCXX/for-range-temporaries.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/for-range-temporaries.cpp?rev=149450&r1=149449&r2=149450&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/for-range-temporaries.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/for-range-temporaries.cpp Tue Jan 31 17:43:25 2012
@@ -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 @@
 void body(const I &);
 
 #ifdef TEMPLATE
+#ifdef DEPENDENT
 template<typename D>
+#else
+template<typename>
+#endif
 #endif
 void for_temps() {
   A a;





More information about the cfe-commits mailing list