summaryrefslogtreecommitdiffstats
path: root/test/CXX
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-04-16 00:47:45 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-04-16 00:47:45 +0000
commit56eca6c6aa7c6c1a48ef9abb3fd8d40650002cb7 (patch)
treee97c9cee3af3e95b49025ddaaec2f883e35b94f6 /test/CXX
parent829f41a7fd7beb33eeb512111681b73d21011262 (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.cpp5
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.