Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only |
Eli Friedman | eab975d | 2009-08-29 04:08:08 +0000 | [diff] [blame] | 2 | // PR4809 |
| 3 | // This test is primarily checking that this doesn't crash, not the particular |
| 4 | // diagnostics. |
| 5 | |
| 6 | const template basic_istream<char>; // expected-error {{expected unqualified-id}} |
| 7 | |
| 8 | namespace S {} |
| 9 | template <class X> class Y { |
| 10 | void x() { S::template y<char>(1); } // expected-error {{does not refer to a template}} \ |
Douglas Gregor | ca1bdd7 | 2009-11-04 00:56:37 +0000 | [diff] [blame] | 11 | // expected-error {{unqualified-id}} |
Eli Friedman | eab975d | 2009-08-29 04:08:08 +0000 | [diff] [blame] | 12 | }; |