* g++.old-deja/g++.other/instan1.C, instan2.C: Move to...
* g++.old-deja/g++.pt/instantiate1.C, instantiate2.C: ...here.
* gcc.dg/cpp/
19960224-2.c, endif.c, if-6.c: Move into...
* gcc.dg/cpp/extratokens.c: ...here.
From-SVN: r38013
+2000-12-04 Neil Booth <neilb@earthling.net>
+
+ * g++.old-deja/g++.other/instan1.C, instan2.C: Move to...
+ * g++.old-deja/g++.pt/instantiate1.C, instantiate2.C: ...here.
+ * gcc.dg/cpp/19960224-2.c, endif.c, if-6.c: Move into...
+ * gcc.dg/cpp/extratokens.c: ...here.
+
2000-12-04 Neil Booth <neilb@earthling.net>
* gcc.dg/cpp/assert_trad1.c, assert_trad2.c, assert_trad3.c:
+++ /dev/null
-// Build don't link:
-// Origin: Neil Booth, from bug report #44
-
-#include <iterator>
-
-template<class T>
-struct X
-{
-};
-
-template<class T>
-X<T> operator+(const X<T>&, const X<T>&);
-
-template<>
-X<int> operator+<int>(const X<int>&, const X<int>&);
+++ /dev/null
-// Build don't link:
-// Origin: Neil Booth, from bug report #36
-
-template <typename t> class vect;
-template <typename t> vect<t> operator-( const vect<t>&, const vect<t>& );
-
-template <typename t>
-class vect
-{
-public:
- vect( t a );
-
- vect( const vect<t>& v );
- ~vect();
-
- vect<t>& operator=( const vect<t>& v );
- vect<t> operator-( void ) const;
- friend vect<t> operator- <>( const vect<t>&, const vect<t>& );
-
-private:
- t a_;
-};
-
-template <typename t> inline
-vect<t>::vect( t a )
-: a_(a)
-{
-}
-
-template <typename t> inline
-vect<t>::vect( const vect<t>& v )
-: a_(v.a_)
-{
-}
-
-template <typename t> inline
-vect<t>::~vect()
-{
-}
-
-template <typename t> inline vect<t>&
-vect<t>::operator=( const vect<t>& v )
-{
- a_ = v.a_;
- return *this;
-}
-
-template <typename t> inline vect<t>
-vect<t>::operator-( void ) const
-{
- return vect<t>( -a_ );
-}
-
-template <typename t> inline vect<t>
-operator-( const vect<t>& u, const vect<t>& v )
-{
- return vect<t>( u.a_ - v.a_ );
-}
-
-int
-main( void )
-{
- vect<double> a( 1.0 ), b( 0.0 );
- b = -a;
-}
--- /dev/null
+// Build don't link:
+// Origin: Neil Booth, from bug report #44
+
+#include <iterator>
+
+template<class T>
+struct X
+{
+};
+
+template<class T>
+X<T> operator+(const X<T>&, const X<T>&);
+
+template<>
+X<int> operator+<int>(const X<int>&, const X<int>&);
--- /dev/null
+// Build don't link:
+// Origin: Neil Booth, from bug report #36
+
+template <typename t> class vect;
+template <typename t> vect<t> operator-( const vect<t>&, const vect<t>& );
+
+template <typename t>
+class vect
+{
+public:
+ vect( t a );
+
+ vect( const vect<t>& v );
+ ~vect();
+
+ vect<t>& operator=( const vect<t>& v );
+ vect<t> operator-( void ) const;
+ friend vect<t> operator- <>( const vect<t>&, const vect<t>& );
+
+private:
+ t a_;
+};
+
+template <typename t> inline
+vect<t>::vect( t a )
+: a_(a)
+{
+}
+
+template <typename t> inline
+vect<t>::vect( const vect<t>& v )
+: a_(v.a_)
+{
+}
+
+template <typename t> inline
+vect<t>::~vect()
+{
+}
+
+template <typename t> inline vect<t>&
+vect<t>::operator=( const vect<t>& v )
+{
+ a_ = v.a_;
+ return *this;
+}
+
+template <typename t> inline vect<t>
+vect<t>::operator-( void ) const
+{
+ return vect<t>( -a_ );
+}
+
+template <typename t> inline vect<t>
+operator-( const vect<t>& u, const vect<t>& v )
+{
+ return vect<t>( u.a_ - v.a_ );
+}
+
+int
+main( void )
+{
+ vect<double> a( 1.0 ), b( 0.0 );
+ b = -a;
+}
+++ /dev/null
-/* { dg-do preprocess } */
-
-#if 0
-#if 0
-#endif / /* { dg-warning "extra tokens" "extra tokens after #endif" } */
-#endif
+++ /dev/null
-/* { dg-do preprocess } */
-/* { dg-options "-pedantic -Wall" } */
-
-/* You can't get away with this in your own code... */
-#ifdef KERNEL
-#define foo
-#endif KERNEL /* { dg-warning "extra tokens" "good warning" } */
-
-/* This will provoke a warning because the '3' is an extension. */
-#line 10 "endif-label.c" 3 /* { dg-warning "extra tokens" "#line extension" } */
-
-/* ... but in a system header, it's acceptable. */
-#ifdef KERNEL
-#define foo
-#endif KERNEL /* { dg-bogus "extra tokens" "bad warning" } */
+++ /dev/null
-/* { dg-do preprocess } */
-#ifdef foo bar /* { dg-error "extra tokens" "tokens after #ifdef" } */
-#endif