foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.C]] {
# We don't try to use the loop-optimizing options, since they are highly
# unlikely to make any difference to PCH.
- dg-pch $subdir $test [list "-g" "-O2 -g" "-O2"] ".H"
+ dg-flags-pch $subdir $test "-fno-modules" [list "-g" "-O2 -g" "-O2"] ".H"
}
set dg-do-what-default "$old_dg_do_what_default"
template<>
extern void f2<void> (); // { dg-error "explicit template specialization cannot have a storage class" }
-export template<class T> // { dg-warning "keyword 'export'" }
+export template<class T> // { dg-message "'export'" }
static void* f3 ();
// 1
// template definition
-export template <class T> // { dg-warning "" }
+export template <class T> // { dg-message "export" }
bool templ_one(T a) {
if (a > 0)
return true;
template <class T2> bool compare_ge(T2 test);
};
-export template <class T> // { dg-warning "" }
+export template <class T> // { dg-message "export" }
const bool X_one<T>::is_specialized = false;
-export template <class T> // { dg-warning "" }
+export template <class T> // { dg-message "export" }
unsigned short X_one<T>::ret_id() {
return id;
}
-export template <class T2> // { dg-warning "" }
+export template <class T2> // { dg-message "export" }
bool compare_ge(T2 test) {
if (test > type) // { dg-error "" } .*
return true;