| 1 |
// { dg-do assemble } |
| 2 |
// GROUPS passed templates |
| 3 |
struct Regex { int i; Regex(char *, int); }; |
| 4 |
template<class KEY> |
| 5 |
class NDAMName { |
| 6 |
public: |
| 7 |
static const Regex pattern; |
| 8 |
static unsigned sequence_number; |
| 9 |
}; |
| 10 |
|
| 11 |
const Regex NDAMName<'L'>::pattern("^[Ll](.*)$", 1);// { dg-error "type/value mismatch" "mismatch" } |
| 12 |
// { dg-message "expected a type" "expected" { target *-*-* } .-1 } |
| 13 |
// { dg-warning "deprecated|forbids converting a string constant" "depr" { target *-*-* } .-2 } |
| 14 |
unsigned NDAMName<'L'>::sequence_number = 0;// { dg-error "type/value mismatch" "mismatch" } |
| 15 |
// { dg-message "expected a type" "exp" { target *-*-* } .-1 } |