summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/bugprone-switch-missing-default-case.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-tidy/test/bugprone-switch-missing-default-case.cpp')
-rw-r--r--tools/clang-tidy/test/bugprone-switch-missing-default-case.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/clang-tidy/test/bugprone-switch-missing-default-case.cpp b/tools/clang-tidy/test/bugprone-switch-missing-default-case.cpp
new file mode 100644
index 0000000000..fac442d90d
--- /dev/null
+++ b/tools/clang-tidy/test/bugprone-switch-missing-default-case.cpp
@@ -0,0 +1,7 @@
+void func() {
+ int radius;
+ switch (radius) {
+ case 0:
+ break;
+ }
+}