diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Parser/recovery.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/recovery.cpp b/test/Parser/recovery.cpp index b5b0948..4bed257 100644 --- a/test/Parser/recovery.cpp +++ b/test/Parser/recovery.cpp @@ -119,3 +119,9 @@ void MissingSemiInFunction() { struct Inner4 {} // ok, no missing ';' here Inner5; } + +namespace PR17084 { +enum class EnumID {}; +template <typename> struct TempID; +template <> struct TempID<BadType> : BadType, EnumID::Garbage; // expected-error{{use of undeclared identifier 'BadType'}} +} |