diff options
Diffstat (limited to 'test/Parser/cxx-ambig-decl-expr.cpp')
-rw-r--r-- | test/Parser/cxx-ambig-decl-expr.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/Parser/cxx-ambig-decl-expr.cpp b/test/Parser/cxx-ambig-decl-expr.cpp index b5ff728b47..feb185fbe3 100644 --- a/test/Parser/cxx-ambig-decl-expr.cpp +++ b/test/Parser/cxx-ambig-decl-expr.cpp @@ -7,4 +7,7 @@ struct X { void f() { void (*ptr)(int, int) = &X::f<int, int>; + + unknown *p = 0; // expected-error {{unknown type name 'unknown'}} + unknown * p + 0; // expected-error {{undeclared identifier 'unknown'}} } |