diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-04-30 18:27:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-04-30 18:27:22 +0000 |
commit | 2c0abf4ae33ab2ba690ccae724b8d6f196e7cfda (patch) | |
tree | b180f1506831cf95f7d9df8b29a3461ef617048a /test/FixIt/fixit.cpp | |
parent | c1c0725978ed31253af5ef4849a124e8fc13ebbb (diff) |
Add FixItHint for -Wnull-conversion to initialize with an appropriate literal.
Reviewed by Doug Gregor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit.cpp')
-rw-r--r-- | test/FixIt/fixit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/FixIt/fixit.cpp b/test/FixIt/fixit.cpp index e9b4d75a6a..86a2dd4475 100644 --- a/test/FixIt/fixit.cpp +++ b/test/FixIt/fixit.cpp @@ -205,7 +205,6 @@ template<template<typename> Foo, // expected-error {{template template parameter template<typename> struct Baz> // expected-error {{template template parameter requires 'class' after the parameter list}} void func(); - namespace ShadowedTagType { class Foo { public: @@ -218,6 +217,9 @@ class Foo { void Foo::SetBar(Bar bar) { bar_ = bar; } // expected-error {{must use 'enum' tag to refer to type 'Bar' in this scope}} } +#define NULL __null +char c = NULL; // expected-warning {{implicit conversion of NULL constant to 'char'}} + namespace arrow_suggest { template <typename T> |