diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.brendan/template17.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.brendan/template17.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template17.C b/gcc/testsuite/g++.old-deja/g++.brendan/template17.C new file mode 100644 index 000000000..5f2d45f1c --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/template17.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +// GROUPS passed templates +struct Regex { int i; Regex(char *, int); }; +template<class KEY> +class NDAMName { +public: + static const Regex pattern; + static unsigned sequence_number; +}; + +const Regex NDAMName<'L'>::pattern("^[Ll](.*)$", 1);// { dg-error "type/value mismatch" "mismatch" } +// { dg-error "expected a type" "expected" { target *-*-* } 11 } +// { dg-warning "deprecated" "depr" { target *-*-* } 11 } +unsigned NDAMName<'L'>::sequence_number = 0;// { dg-error "type/value mismatch" "mismatch" } +// { dg-error "expected a type" "exp" { target *-*-* } 14 } |