summaryrefslogtreecommitdiffstats
path: root/tools/clang-tidy/test/cppcoreguidelines-narrowing-conversions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang-tidy/test/cppcoreguidelines-narrowing-conversions.cpp')
-rw-r--r--tools/clang-tidy/test/cppcoreguidelines-narrowing-conversions.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/clang-tidy/test/cppcoreguidelines-narrowing-conversions.cpp b/tools/clang-tidy/test/cppcoreguidelines-narrowing-conversions.cpp
new file mode 100644
index 0000000000..b10b0fa1c3
--- /dev/null
+++ b/tools/clang-tidy/test/cppcoreguidelines-narrowing-conversions.cpp
@@ -0,0 +1,4 @@
+class Foo {
+ int f;
+ void a_f(double val) { f = val;}
+};