summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/unknown-type-name.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/unknown-type-name.cpp')
-rw-r--r--test/SemaCXX/unknown-type-name.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/SemaCXX/unknown-type-name.cpp b/test/SemaCXX/unknown-type-name.cpp
index 9086c9acc4..bacdee4b37 100644
--- a/test/SemaCXX/unknown-type-name.cpp
+++ b/test/SemaCXX/unknown-type-name.cpp
@@ -72,9 +72,7 @@ void f(int, T::type x, char) { } // expected-error{{missing 'typename'}}
int *p;
-// FIXME: We should assume that 'undeclared' is a type, not a parameter name
-// here, and produce an 'unknown type name' diagnostic instead.
-int f1(undeclared, int); // expected-error{{requires a type specifier}}
+int f1(undeclared, int); // expected-error{{unknown type name 'undeclared'}}
int f2(undeclared, 0); // expected-error{{undeclared identifier}}