]> granicus.if.org Git - clang/commitdiff
Fix broken tests, exposed by improved -verify.
authorDaniel Dunbar <daniel@zuster.org>
Sat, 14 Nov 2009 03:24:04 +0000 (03:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Sat, 14 Nov 2009 03:24:04 +0000 (03:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88749 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp
test/Parser/2008-10-31-parse-noop-failure.c
test/SemaCXX/decltype-this.cpp

index 101d75fc0f48616f1abe4992dcbe21e79830270a..5f9a5345cf1c8d7c43a08ddb9072255fe50351e3 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -fsyntax-only -verify %t
+// RUN: clang-cc -fsyntax-only -verify %s
 class A { 
 public:
   int& i; 
@@ -20,7 +20,7 @@ void f() {
   a.*&A::s = 10; // expected-error{{right hand operand to .* has non pointer-to-member type 'int *'}}
   
   a.*&A::i = 10; // expected-error{{cannot form a pointer-to-member to member 'i' of reference type 'int &'}}
-  ft(a); // expected-note{{in instantiation of function template specialization 'ft' requested here}}
+  ft(a); // expected-note{{in instantiation of function template specialization 'ft<class A>' requested here}}
   
   void A::*p = 0; // expected-error{{'p' declared as a member pointer to void}}
 }
index 0598ea7dc9e7624b96cd3e14ff045f1abac7d33e..8243cb973105403fd4aecb31abbbfc6f487632f9 100755 (executable)
@@ -1,4 +1,4 @@
-// RUN: clang-cc -verify -parse-noop %t
+// RUN: clang-cc -verify -parse-noop %s
 
 void add_attribute(id) int id; {}
 
index fc001063c510b3e927446f1cca5f8609cfe17c02..c6bf299f3f3bf65e6be21b0e9ea36dfa3743d59b 100644 (file)
@@ -1,4 +1,5 @@
-// RUN: clang-cc -fsyntax-only -verify -std=c++0x %t 
+// RUN: clang-cc -fsyntax-only -verify -std=c++0x %s
+
 template<typename T, typename U> struct is_same {
   static const bool value = false;
 };