| commit | cbe3be67e42644ed596a4cc4444ea0cae48b39e6 | [log] [tgz] |
|---|---|---|
| author | Douglas Gregor <doug.gregor@gmail.com> | Fri May 15 21:45:53 2009 +0000 |
| committer | Douglas Gregor <doug.gregor@gmail.com> | Fri May 15 21:45:53 2009 +0000 |
| tree | 49fb2aa5b377050c0f3eef363fde77b979f2e088 | |
| parent | 4850df6d9978b2d04d70b7f0f45576a93474403e [diff] [blame] |
Template instantiation for WhileStmt and CXXConditionDeclExpr. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71896 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index e7c4af1..3b88700 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp
@@ -87,3 +87,14 @@ }; template struct X7<int>; + +template<typename T> struct While0 { + void f(T t) { + while (t) { + } + + while (T t2 = T()) ; + } +}; + +template struct While0<float>;