aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r--test/Parser/cxx-decl.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp
index aa775c8c76..ee292fdae0 100644
--- a/test/Parser/cxx-decl.cpp
+++ b/test/Parser/cxx-decl.cpp
@@ -134,7 +134,7 @@ struct S {
namespace TestIsValidAfterTypeSpecifier {
-struct s {};
+struct s {} v;
namespace a {
struct s operator++(struct s a)
@@ -148,6 +148,18 @@ operator++(struct s a)
{ return a; }
}
+struct X {
+ struct s
+ friend f();
+ struct s
+ virtual f();
+};
+
+struct s
+&r0 = v;
+struct s
+bitand r2 = v;
+
}
// PR8380