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 | 1600e2452113ec9979e866525c86b4ab83d866ff (patch) | |
| tree | 4a9a73c0aeb200b4aa17b1306c021610fa865ccb /clang/test/CXX/cpp/cpp.module/p2.cpp | |
| parent | 1826095a5faa4303c9fb5d3c5aadc46bf66c1cd6 (diff) | |
| download | bcm5719-llvm-1600e2452113ec9979e866525c86b4ab83d866ff.tar.gz bcm5719-llvm-1600e2452113ec9979e866525c86b4ab83d866ff.zip | |
PR41192: fix cases where "missing ';' after class" error would
incorrectly fire.
llvm-svn: 358467
Diffstat (limited to 'clang/test/CXX/cpp/cpp.module/p2.cpp')
| -rw-r--r-- | clang/test/CXX/cpp/cpp.module/p2.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/CXX/cpp/cpp.module/p2.cpp b/clang/test/CXX/cpp/cpp.module/p2.cpp index ae68a508a02..d5bf4fa1a65 100644 --- a/clang/test/CXX/cpp/cpp.module/p2.cpp +++ b/clang/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. |

