1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wunused
2
3 namespace {
operator ""_x(long double value)4 double operator"" _x(long double value) { return double(value); }
operator ""_ii(long double value)5 int operator"" _ii(long double value) { return int(value); } // expected-warning {{not needed and will not be emitted}}
6 }
7
8 namespace rdar13589856 {
value()9 template<class T> double value() { return 3.2_x; }
valuei()10 template<class T> int valuei() { return 3.2_ii; }
11
get_value()12 double get_value() { return value<double>(); }
13 }
14