diff options
author | Douglas Gregor <doug.gregor@gmail.com> | 2007-04-24 21:07:22 +0000 |
---|---|---|
committer | Doug Gregor <dgregor@gcc.gnu.org> | 2007-04-24 21:07:22 +0000 |
commit | a28f9a06027182195f2783b2518bea214bc4f730 (patch) | |
tree | 21a107bee43a9514e9a551d2186ed17f546a9d8a /gcc | |
parent | 1965dd3a1f621d899e250ddc84d0d83ba1ada69a (diff) | |
download | gcc-a28f9a06027182195f2783b2518bea214bc4f730.zip gcc-a28f9a06027182195f2783b2518bea214bc4f730.tar.gz gcc-a28f9a06027182195f2783b2518bea214bc4f730.tar.bz2 |
defarg6.C: Only run with -std=gnu++98.
2007-04-24 Douglas Gregor <doug.gregor@gmail.com>
* g++.old-deja/g++.pt/defarg6.C: Only run with
-std=gnu++98.
* g++.old-deja/g++.pt/ucnid-1.C: Ditto.
* g++.dg/cpp0x/variadic61.C: Ditto.
* g++.dg/cpp0x/warn_cxx0x.C: Ditto.
* g++.dg/cpp0x/variadic62.C: Ditto.
* g++.dg/template/meminit1.C: Ditto.
* g++.dg/template/operator7.C: Ditto.
* g++.dg/template/static15.C: Ditto.
* g++.dg/template/invalid1.C: Ditto.
* g++.dg/template/shift1.C: Ditto.
* g++.dg/template/error10.C: Ditto.
From-SVN: r124125
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 15 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp/ucnid-1.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic61.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/variadic62.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/error10.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/invalid1.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/meminit1.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/operator7.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/shift1.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/template/static15.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/defarg6.C | 1 |
12 files changed, 26 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e0cb3dd..32fc7f3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,18 @@ +2007-04-24 Douglas Gregor <doug.gregor@gmail.com> + + * g++.old-deja/g++.pt/defarg6.C: Only run with + -std=gnu++98. + * g++.old-deja/g++.pt/ucnid-1.C: Ditto. + * g++.dg/cpp0x/variadic61.C: Ditto. + * g++.dg/cpp0x/warn_cxx0x.C: Ditto. + * g++.dg/cpp0x/variadic62.C: Ditto. + * g++.dg/template/meminit1.C: Ditto. + * g++.dg/template/operator7.C: Ditto. + * g++.dg/template/static15.C: Ditto. + * g++.dg/template/invalid1.C: Ditto. + * g++.dg/template/shift1.C: Ditto. + * g++.dg/template/error10.C: Ditto. + 2007-04-24 Simon Martin <simartin@users.sourceforge.net> PR diagnostic/25923 diff --git a/gcc/testsuite/g++.dg/cpp/ucnid-1.C b/gcc/testsuite/g++.dg/cpp/ucnid-1.C index d15be4f..7a8f72a 100644 --- a/gcc/testsuite/g++.dg/cpp/ucnid-1.C +++ b/gcc/testsuite/g++.dg/cpp/ucnid-1.C @@ -1,5 +1,5 @@ /* { dg-do preprocess } */ -/* { dg-options "-pedantic -fextended-identifiers" } */ +/* { dg-options "-std=gnu++98 -pedantic -fextended-identifiers" } */ \u00AA /* { dg-error "not valid in an identifier" } */ \u00AB /* { dg-error "not valid in an identifier" } */ diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic61.C b/gcc/testsuite/g++.dg/cpp0x/variadic61.C index 487f78b..d06c5f6 100644 --- a/gcc/testsuite/g++.dg/cpp0x/variadic61.C +++ b/gcc/testsuite/g++.dg/cpp0x/variadic61.C @@ -1,2 +1,2 @@ -// { dg-options "-pedantic" } +// { dg-options "-std=gnu++98 -pedantic" } template<typename... Args> class tuple; // { dg-warning "variadic templates" } diff --git a/gcc/testsuite/g++.dg/cpp0x/variadic62.C b/gcc/testsuite/g++.dg/cpp0x/variadic62.C index dfa41f7..010b3a5 100644 --- a/gcc/testsuite/g++.dg/cpp0x/variadic62.C +++ b/gcc/testsuite/g++.dg/cpp0x/variadic62.C @@ -1,2 +1,2 @@ -// { dg-options "-pedantic-errors" } +// { dg-options "-std=gnu++98 -pedantic-errors" } template<typename... Args> class tuple; // { dg-error "variadic templates" } diff --git a/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C b/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C index 57dfe7b..2b84c93 100644 --- a/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C +++ b/gcc/testsuite/g++.dg/cpp0x/warn_cxx0x.C @@ -1,4 +1,4 @@ -// { dg-options "-Wc++0x-compat" } +// { dg-options "-std=gnu++98 -Wc++0x-compat" } int static_assert; // { dg-warning "will become a keyword" } void foo() diff --git a/gcc/testsuite/g++.dg/template/error10.C b/gcc/testsuite/g++.dg/template/error10.C index dcb4f3e..02ea64b 100644 --- a/gcc/testsuite/g++.dg/template/error10.C +++ b/gcc/testsuite/g++.dg/template/error10.C @@ -1,4 +1,5 @@ // { dg-do compile } +// { dg-options "-std=gnu++98" } // Origin: <tilps at hotmail dot com> // c++/9154: poor error message for ">>" vs "> >" in template argument list diff --git a/gcc/testsuite/g++.dg/template/invalid1.C b/gcc/testsuite/g++.dg/template/invalid1.C index 04b8710..d2fcca6 100644 --- a/gcc/testsuite/g++.dg/template/invalid1.C +++ b/gcc/testsuite/g++.dg/template/invalid1.C @@ -1,4 +1,5 @@ // PR c++/14883 +// { dg-options "-std=gnu++98" } template < class T > struct DomainTraits {}; template < int Dim > class Interval; diff --git a/gcc/testsuite/g++.dg/template/meminit1.C b/gcc/testsuite/g++.dg/template/meminit1.C index 90b0d7d..077bf60 100644 --- a/gcc/testsuite/g++.dg/template/meminit1.C +++ b/gcc/testsuite/g++.dg/template/meminit1.C @@ -1,3 +1,4 @@ +// { dg-options "-std=gnu++98" } template <class T > struct S { diff --git a/gcc/testsuite/g++.dg/template/operator7.C b/gcc/testsuite/g++.dg/template/operator7.C index bd733da..59c8b35 100644 --- a/gcc/testsuite/g++.dg/template/operator7.C +++ b/gcc/testsuite/g++.dg/template/operator7.C @@ -1,4 +1,5 @@ //PR c++/27493 +// { dg-options "-std=gnu++98" } template<operator T> void foo() // { dg-error "before|template" } { diff --git a/gcc/testsuite/g++.dg/template/shift1.C b/gcc/testsuite/g++.dg/template/shift1.C index 22cb0de..a4ceec92 100644 --- a/gcc/testsuite/g++.dg/template/shift1.C +++ b/gcc/testsuite/g++.dg/template/shift1.C @@ -1,4 +1,5 @@ // PR c++/18140 +// { dg-options "-std=gnu++98" } template <int N> struct IntHolder { static const int value = N; diff --git a/gcc/testsuite/g++.dg/template/static15.C b/gcc/testsuite/g++.dg/template/static15.C index 7302b7d..d8faa35 100644 --- a/gcc/testsuite/g++.dg/template/static15.C +++ b/gcc/testsuite/g++.dg/template/static15.C @@ -1,4 +1,5 @@ // PR c++/23667 +// { dg-options "-std=gnu++98" } template<int dummy> struct X diff --git a/gcc/testsuite/g++.old-deja/g++.pt/defarg6.C b/gcc/testsuite/g++.old-deja/g++.pt/defarg6.C index d5425d1..f5f7b7b 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/defarg6.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/defarg6.C @@ -1,4 +1,5 @@ // { dg-do assemble } +// { dg-options "-std=gnu++98" } template <class T> struct C { |