Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / cxx11-user-defined-literals-unused.cpp
blobcd93ffbf21edf4a3a32e6e5bfdc5399edafa0201
1 // RUN: %clang_cc1 -std=c++11 -verify %s -Wunused
3 namespace {
4 double operator"" _x(long double value) { return double(value); }
5 int operator"" _ii(long double value) { return int(value); } // expected-warning {{not needed and will not be emitted}}
8 namespace rdar13589856 {
9 template<class T> double value() { return 3.2_x; }
10 template<class T> int valuei() { return 3.2_ii; }
12 double get_value() { return value<double>(); }