diff options
Diffstat (limited to 'test/CXX/class.derived/p1.cpp')
-rw-r--r-- | test/CXX/class.derived/p1.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CXX/class.derived/p1.cpp b/test/CXX/class.derived/p1.cpp index 98c1d354fa..dcbe63fd09 100644 --- a/test/CXX/class.derived/p1.cpp +++ b/test/CXX/class.derived/p1.cpp @@ -30,4 +30,8 @@ namespace PR11216 { struct Derived3 : decltype(T().foo()) { }; struct Foo { Base foo(); }; Derived3<Foo> d; + + struct Derived4 : :: decltype(Base()) { }; // expected-error {{expected class name}} + + struct Derived5 : PR11216:: decltype(Base()) { }; // expected-error {{expected class name}} } |