From: Daniel Dunbar Date: Sat, 14 Nov 2009 03:24:04 +0000 (+0000) Subject: Fix broken tests, exposed by improved -verify. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba69b3c1050447db3c91a41ff25ce8cd29d9b021;p=clang Fix broken tests, exposed by improved -verify. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@88749 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp b/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp index 101d75fc0f..5f9a5345cf 100644 --- a/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp +++ b/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp @@ -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' requested here}} void A::*p = 0; // expected-error{{'p' declared as a member pointer to void}} } diff --git a/test/Parser/2008-10-31-parse-noop-failure.c b/test/Parser/2008-10-31-parse-noop-failure.c index 0598ea7dc9..8243cb9731 100755 --- a/test/Parser/2008-10-31-parse-noop-failure.c +++ b/test/Parser/2008-10-31-parse-noop-failure.c @@ -1,4 +1,4 @@ -// RUN: clang-cc -verify -parse-noop %t +// RUN: clang-cc -verify -parse-noop %s void add_attribute(id) int id; {} diff --git a/test/SemaCXX/decltype-this.cpp b/test/SemaCXX/decltype-this.cpp index fc001063c5..c6bf299f3f 100644 --- a/test/SemaCXX/decltype-this.cpp +++ b/test/SemaCXX/decltype-this.cpp @@ -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 struct is_same { static const bool value = false; };