diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-06-12 18:53:02 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-06-12 18:53:02 +0000 |
| commit | b0e8e228ff080d01943381aa272655d0eb25bb90 (patch) | |
| tree | 3dd9c1ff7dedbe7b9353b4d2735a333f0b9956b2 /clang/test/SemaTemplate/dependent-names.cpp | |
| parent | 9ebb4d2127ccc60484f9050aebc5c6b05bd20d0f (diff) | |
| download | bcm5719-llvm-b0e8e228ff080d01943381aa272655d0eb25bb90.tar.gz bcm5719-llvm-b0e8e228ff080d01943381aa272655d0eb25bb90.zip | |
Fix PR4365.
llvm-svn: 73240
Diffstat (limited to 'clang/test/SemaTemplate/dependent-names.cpp')
| -rw-r--r-- | clang/test/SemaTemplate/dependent-names.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/dependent-names.cpp b/clang/test/SemaTemplate/dependent-names.cpp new file mode 100644 index 00000000000..95ee2d2b9d1 --- /dev/null +++ b/clang/test/SemaTemplate/dependent-names.cpp @@ -0,0 +1,16 @@ +// RUN: clang-cc -fsyntax-only -verify %s + +typedef double A; +template<typename T> class B { + typedef int A; +}; + +template<typename T> struct X : B<T> { + static A a; +}; + +int a0[sizeof(X<int>::a) == sizeof(double) ? 1 : -1]; + +// PR4365. +template<class T> class Q; +template<class T> class R : Q<T> {T current;}; |

