diff options
Diffstat (limited to 'test/SemaCXX/compare.cpp')
-rw-r--r-- | test/SemaCXX/compare.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaCXX/compare.cpp b/test/SemaCXX/compare.cpp index ebecc0633eda..ca8af2186f74 100644 --- a/test/SemaCXX/compare.cpp +++ b/test/SemaCXX/compare.cpp @@ -206,3 +206,9 @@ void test2(int i, void *vp) { if (vp < 0) { } if (test1 < e) { } // expected-error{{comparison between pointer and integer}} } + +// PR7536 +static const unsigned int kMax = 0; +int pr7536() { + return (kMax > 0); +} |