diff options
Diffstat (limited to 'clang-tools-extra/test/clang-tidy/modernize-use-auto-new.cpp')
-rw-r--r-- | clang-tools-extra/test/clang-tidy/modernize-use-auto-new.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang-tools-extra/test/clang-tidy/modernize-use-auto-new.cpp b/clang-tools-extra/test/clang-tidy/modernize-use-auto-new.cpp index 7ced0a4735e..f6984a19b83 100644 --- a/clang-tools-extra/test/clang-tidy/modernize-use-auto-new.cpp +++ b/clang-tools-extra/test/clang-tidy/modernize-use-auto-new.cpp @@ -15,6 +15,10 @@ void auto_new() { // CHECK-MESSAGES: :[[@LINE-1]]:10: warning: use auto when initializing with new // CHECK-FIXES: static auto *a_static = new MyType(); + long long *ll = new long long(); + // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: use auto when initializing with new + // CHECK-FIXES: auto *ll = new long long(); + MyType *derived = new MyDerivedType(); void *vd = new MyType(); |