diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-12-21 16:05:12 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-12-21 16:05:12 +0000 |
| commit | 70b1cc2ea48160baa4dec435dbc8a5bbf8d0bf5a (patch) | |
| tree | e5bbc54b08abdf4d49a8be1e7f448ba076069636 /clang | |
| parent | ff78eda678cdd7a8bb7608fc8c77f6c61650574e (diff) | |
| download | bcm5719-llvm-70b1cc2ea48160baa4dec435dbc8a5bbf8d0bf5a.tar.gz bcm5719-llvm-70b1cc2ea48160baa4dec435dbc8a5bbf8d0bf5a.zip | |
Add test for C++ [temp.friend]p8, which bans partial specializations from being friends
llvm-svn: 122335
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CXX/temp/temp.decls/temp.friend/p8.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CXX/temp/temp.decls/temp.friend/p8.cpp b/clang/test/CXX/temp/temp.decls/temp.friend/p8.cpp new file mode 100644 index 00000000000..d0221a3668d --- /dev/null +++ b/clang/test/CXX/temp/temp.decls/temp.friend/p8.cpp @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +template<class T> class A { }; + +class X { + template<class T> friend class A<T*>; // expected-error{{partial specialization cannot be declared as a friend}} +}; |

