freebsd-nq/test/SemaCXX/decltype-pr4444.cpp
2010-01-01 10:34:51 +00:00

7 lines
140 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
template<typename T, T t>
struct TestStruct {
typedef decltype(t+2) sum_type;
};