]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaObjC/self-comparison.m
Vendor import of clang release_34 branch r197841 (effectively, 3.4 RC3):
[FreeBSD/FreeBSD.git] / test / SemaObjC / self-comparison.m
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2
3 @interface A {
4   id xxx;
5 }
6 -(int)bar;
7 @end
8 @implementation A
9 -(int)bar {
10   return xxx == xxx; // expected-warning {{self-comparison always evaluates to true}}
11 }
12 @end