diff options
Diffstat (limited to 'test/SemaTemplate/instantiate-declref-ice.cpp')
-rw-r--r-- | test/SemaTemplate/instantiate-declref-ice.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-declref-ice.cpp b/test/SemaTemplate/instantiate-declref-ice.cpp new file mode 100644 index 0000000..21ee872 --- /dev/null +++ b/test/SemaTemplate/instantiate-declref-ice.cpp @@ -0,0 +1,7 @@ +// RUN: clang-cc -fsyntax-only -verify %s + +template<int i> struct x { + static const int j = i; + x<j>* y; +}; + |