summaryrefslogtreecommitdiffstats
path: root/Tests/CompileFeatures/cxx_user_literals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CompileFeatures/cxx_user_literals.cpp')
-rw-r--r--Tests/CompileFeatures/cxx_user_literals.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/CompileFeatures/cxx_user_literals.cpp b/Tests/CompileFeatures/cxx_user_literals.cpp
new file mode 100644
index 0000000..9e5a588
--- /dev/null
+++ b/Tests/CompileFeatures/cxx_user_literals.cpp
@@ -0,0 +1,7 @@
+
+long double operator "" _meters(long double);
+
+void someFunc()
+{
+ long double i = 1.2_meters;
+}