[cfe-commits] r88749 - in /cfe/trunk/test: CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp Parser/2008-10-31-parse-noop-failure.c SemaCXX/decltype-this.cpp
Daniel Dunbar
daniel at zuster.org
Fri Nov 13 19:24:05 PST 2009
Author: ddunbar
Date: Fri Nov 13 21:24:04 2009
New Revision: 88749
URL: http://llvm.org/viewvc/llvm-project?rev=88749&view=rev
Log:
Fix broken tests, exposed by improved -verify.
Modified:
cfe/trunk/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp
cfe/trunk/test/Parser/2008-10-31-parse-noop-failure.c
cfe/trunk/test/SemaCXX/decltype-this.cpp
Modified: cfe/trunk/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp?rev=88749&r1=88748&r2=88749&view=diff
==============================================================================
--- cfe/trunk/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp (original)
+++ cfe/trunk/test/CXX/dcl.decl/dcl.meaning/dcl.mptr/p3.cpp Fri Nov 13 21:24:04 2009
@@ -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 @@
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}}
}
Modified: cfe/trunk/test/Parser/2008-10-31-parse-noop-failure.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/2008-10-31-parse-noop-failure.c?rev=88749&r1=88748&r2=88749&view=diff
==============================================================================
--- cfe/trunk/test/Parser/2008-10-31-parse-noop-failure.c (original)
+++ cfe/trunk/test/Parser/2008-10-31-parse-noop-failure.c Fri Nov 13 21:24:04 2009
@@ -1,4 +1,4 @@
-// RUN: clang-cc -verify -parse-noop %t
+// RUN: clang-cc -verify -parse-noop %s
void add_attribute(id) int id; {}
Modified: cfe/trunk/test/SemaCXX/decltype-this.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/decltype-this.cpp?rev=88749&r1=88748&r2=88749&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/decltype-this.cpp (original)
+++ cfe/trunk/test/SemaCXX/decltype-this.cpp Fri Nov 13 21:24:04 2009
@@ -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;
};
More information about the cfe-commits
mailing list