Mercurial > hg > CbC > CbC_llvm
view clang/test/SemaCXX/cxx11-user-defined-literals-unused.cpp @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line source
// 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>(); } }