freebsd-nq/test/SemaTemplate/instantiate-enum.cpp
2009-06-02 17:58:47 +00:00

12 lines
182 B
C++

// RUN: clang-cc -fsyntax-only %s
template<typename T, T I, int J>
struct adder {
enum {
value = I + J,
value2
};
};
int array1[adder<long, 3, 4>::value == 7? 1 : -1];