summaryrefslogtreecommitdiff
path: root/tests/auto/cplusplus/cxx11/data/userDefinedLiterals.1.cpp
blob: f194b3ed51da39d246f2096141e6037e340fd9f1 (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;
}