aboutsummaryrefslogtreecommitdiff
path: root/test/FixIt/fixit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/FixIt/fixit.cpp')
-rw-r--r--test/FixIt/fixit.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp
index 9ed4f3b0cf..c881c63e6b 100644
--- a/test/FixIt/fixit.cpp
+++ b/test/FixIt/fixit.cpp
@@ -199,3 +199,8 @@ template<class T> typedef Mystery<T>::type getMysteriousThing() { // \
expected-error {{missing 'typename' prior to dependent}}
return Mystery<T>::get();
}
+
+template<template<typename> Foo, // expected-error {{expected 'class' before 'Foo'}}
+ template<typename> typename Bar, // expected-error {{expected 'class' instead of 'typename'}}
+ template<typename> struct Baz> // expected-error {{expected 'class' instead of 'struct'}}
+void func();