]> granicus.if.org Git - clang/commitdiff
Rename test.cc files to test.cpp.
authorNico Weber <nicolasweber@gmx.de>
Mon, 22 Dec 2014 18:13:07 +0000 (18:13 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 22 Dec 2014 18:13:07 +0000 (18:13 +0000)
The lit.cfg files only add .cpp to suffixes, so these tests used to never run,
oops.  (Also tweak to of these tests in minor ways to make the actually pass.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@224718 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/builtin-recursive.cpp [moved from test/CodeGen/builtin-recursive.cc with 59% similarity]
test/CodeGenCXX/nrvo-noreturn.cpp [moved from test/CodeGenCXX/nrvo-noreturn.cc with 100% similarity]
test/CodeGenCXX/pr21989.cpp [moved from test/CodeGenCXX/pr21989.cc with 100% similarity]
test/Driver/freebsd.cpp [moved from test/Driver/freebsd.cc with 100% similarity]
test/Sema/128bitfloat.cpp [moved from test/Sema/128bitfloat.cc with 100% similarity]
test/SemaCXX/vtable-instantiation.cpp [moved from test/SemaCXX/vtable-instantiation.cc with 89% similarity]

similarity index 59%
rename from test/CodeGen/builtin-recursive.cc
rename to test/CodeGen/builtin-recursive.cpp
index 81e9b9a37c2561ff0db09cc4bf05a9d5130cd311..67d8a44c907a1edf1df61d9ecb4538bc50192351 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -nostdsysteminc -nobuiltininc -isystem Inputs -emit-llvm-only %s
+// RUN: %clang_cc1 -nostdsysteminc -nobuiltininc -isystem %S/Inputs -emit-llvm-only %s
 
 // This used to cause a read past the end of a global variable.
 
similarity index 89%
rename from test/SemaCXX/vtable-instantiation.cc
rename to test/SemaCXX/vtable-instantiation.cpp
index 2a1b98900647443b134b6130f4315bb8f002b917..78f2b3ed1a2afabbba0528c6c92420fd5a6e4982 100644 (file)
@@ -41,7 +41,7 @@ namespace PR9325 {
 
   void f()
   {
-    Target<int*>* traits = &Provider<int*>::Instance;
+    Target<int*>* traits = &Provider<int*>::Instance; // expected-note{{requested here}}
   }
 }
 
@@ -60,7 +60,7 @@ namespace PR10020 {
   };
 
   template <typename Type>
-  GMG<Type> GMG<Type>::singleton;
+  GMG<Type> GMG<Type>::singleton; // expected-note{{requested here}}
 
   void test(void) {
     GMG<int>::Method(); // expected-note{{in instantiation of}}