summaryrefslogtreecommitdiff
path: root/tests/auto/cplusplus/cxx11/data/userDefinedLiterals.1.cpp
blob: 6352a82a28907a25be0c5784358a259955f72526 (plain)
1
2
3
4
5
6
7
constexpr long double operator"" _inv(long double value) {
  return 1.0 / value;
}
int main() {
  auto foo = operator"" _inv(2.3);
  return 12_km + 0.5_Pa + 'c'_X + "abd"_L + u"xyz"_M + 10ms;
}