diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-16 00:47:45 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-16 00:47:45 +0000 |
commit | 56eca6c6aa7c6c1a48ef9abb3fd8d40650002cb7 (patch) | |
tree | e97c9cee3af3e95b49025ddaaec2f883e35b94f6 /test/CXX | |
parent | 829f41a7fd7beb33eeb512111681b73d21011262 (diff) |
PR41192: fix cases where "missing ';' after class" error would
incorrectly fire.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX')
-rw-r--r-- | test/CXX/cpp/cpp.module/p2.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/CXX/cpp/cpp.module/p2.cpp b/test/CXX/cpp/cpp.module/p2.cpp index ae68a508a0..d5bf4fa1a6 100644 --- a/test/CXX/cpp/cpp.module/p2.cpp +++ b/test/CXX/cpp/cpp.module/p2.cpp @@ -13,10 +13,9 @@ template<> struct import<0> { }; // OK, not an import-declaration. -// FIXME: This is valid, see PR41192 -struct A {} // FIXME expected-error {{expected ';'}} +struct A {} ::import -<empty.h>::a; // FIXME expected-error {{requires a type specifier}} +<empty.h>::a; // This is invalid: the tokens after 'import' are a header-name, so cannot be // parsed as a template-argument-list. |