Test value printing of template constructs

This commit is contained in:
Vassil Vassilev 2014-05-22 11:08:42 +02:00 committed by sftnight
parent ee9fc709ab
commit ec31eb9db8

View File

@ -0,0 +1,19 @@
//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------
// RUN: cat %s | %cling | FileCheck %s
template<int n> struct F{
enum {RET=F<n-1>::RET*n} ;
};
template<> struct F<0> {
enum {RET = 1};
};
F<7>::RET
//CHECK: (F<7>::<anonymous>) (F<7>::::RET) : (int) 5040
.q