YouCompleteMe/cpp/llvm/tools/clang/test/CXX/temp/temp.param/p5.cpp
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

14 lines
210 B
C++

// RUN: %clang_cc1 -verify %s -std=c++11
template<const int I> struct S {
decltype(I) n;
int &&r = I;
};
S<5> s;
template<typename T, T v> struct U {
decltype(v) n;
int &&r = v;
};
U<const int, 6> u;