diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-19 03:48:05 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-19 03:48:05 +0000 |
commit | ba65f505b7cc2551571b299d05d767e0a892aaae (patch) | |
tree | 509827e5964e85dc82200ac60a909ccf77cccb92 /test/Parser/cxx-decl.cpp | |
parent | dc1088f6201c3fb8f3f97f54c343f7d163fbec06 (diff) |
Fix five more cases of tokens which can legally follow a type specifier.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r-- | test/Parser/cxx-decl.cpp | 14 |
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 |