summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/readability-magic-numbers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-tidy/test/readability-magic-numbers.cpp')
-rw-r--r--tools/clang-tidy/test/readability-magic-numbers.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/clang-tidy/test/readability-magic-numbers.cpp b/tools/clang-tidy/test/readability-magic-numbers.cpp
new file mode 100644
index 0000000000..430fa17056
--- /dev/null
+++ b/tools/clang-tidy/test/readability-magic-numbers.cpp
@@ -0,0 +1,4 @@
+void func() {
+ int radius = 2;
+ double circleArea = 3.1415926535 * radius * radius;
+}