2 /* { dg-do compile } */
3 /* { dg-options "-Wignored-qualifiers" } */
5 volatile void bar(); /* { dg-warning "type qualifiers ignored" } */
9 const int bla(); /* { dg-warning "type qualifiers ignored" } */
10 static const A getA(); /* { dg-bogus "type qualifiers" } */
13 template<typename T> const T getfoo(const T def) /* { dg-bogus "type qualifiers ignored" } */
16 template<typename T> class Pair
19 T getLeft() const { return T(); } /* { dg-bogus "type qualifiers ignored" } */
20 const T getRight() const { return T(); } /* { dg-bogus "type qualifiers ignored" } */
23 template <typename T> struct S {
24 const int f(); /* { dg-warning "type qualifiers ignored" } */
25 const T g(); /* { dg-bogus "type qualifiers ignored" } */
39 b.h(); /* { dg-bogus "type qualifiers ignored" } */
40 b.g(); /* { dg-bogus "type qualifiers ignored" } */
42 return getfoo<int*>(&i);