opnsense-src/test/SemaCXX/decltype-pr4444.cpp

7 lines
140 B
C++
Raw Normal View History

2010-01-01 05:34:51 -05:00
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
2009-06-27 06:45:02 -04:00
template<typename T, T t>
struct TestStruct {
typedef decltype(t+2) sum_type;
};