[cfe-commits] r71953 - in /cfe/trunk: include/clang/AST/Expr.h include/clang/AST/ExprCXX.h lib/AST/Expr.cpp lib/AST/ExprCXX.cpp lib/Sema/SemaTemplateInstantiateExpr.cpp

Anders Carlsson andersca at mac.com
Sat May 16 11:52:59 PDT 2009


On May 16, 2009, at 11:50 AM, Sebastian Redl wrote:

> Author: cornedbee
> Date: Sat May 16 13:50:46 2009
> New Revision: 71953
>
> URL: http://llvm.org/viewvc/llvm-project?rev=71953&view=rev
> Log:
> Implement instantiation of a few boring, simple expressions. I don't  
> think these are testable yet, though.

Sure they're testable!

template<typename T> struct S {
   void f() {
     10;
     10.0;
     "foo";
     't';
     true;
     nullptr;
     _null;
   }
};

template struct S<int>;

:)

Anders




More information about the cfe-commits mailing list