minix/external/bsd/llvm/dist/clang/test/SemaCXX/cxx11-user-defined-literals-unused.cpp
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

13 lines
434 B
C++

// RUN: %clang_cc1 -std=c++11 -verify %s -Wunused
namespace {
double operator"" _x(long double value) { return double(value); }
int operator"" _ii(long double value) { return int(value); } // expected-warning {{not needed and will not be emitted}}
}
namespace rdar13589856 {
template<class T> double value() { return 3.2_x; }
template<class T> int valuei() { return 3.2_ii; }
double get_value() { return value<double>(); }
}