[cfe-commits] r41210 - /cfe/trunk/test/Sema/unused-expr.c

Chris Lattner sabre at nondot.org
Mon Aug 20 18:19:46 PDT 2007


Author: lattner
Date: Mon Aug 20 20:19:46 2007
New Revision: 41210

URL: http://llvm.org/viewvc/llvm-project?rev=41210&view=rev
Log:
we now correctly emit:
unused-expr.c:8:6: warning: comparison of distinct pointer types ('int volatile *' and 'int *')
  VP == P;
  ~~ ^  ~



Modified:
    cfe/trunk/test/Sema/unused-expr.c

Modified: cfe/trunk/test/Sema/unused-expr.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/unused-expr.c?rev=41210&r1=41209&r2=41210&view=diff

==============================================================================
--- cfe/trunk/test/Sema/unused-expr.c (original)
+++ cfe/trunk/test/Sema/unused-expr.c Mon Aug 20 20:19:46 2007
@@ -5,7 +5,8 @@
 void bar(volatile int *VP, int *P, int A,
          _Complex double C, volatile _Complex double VC) {
   
-  VP == P;             // expected-warning {{expression result unused}}
+  VP == P;             // expected-warning {{expression result unused}} \
+                          expected-warning {{comparison}}
   (void)A;             // expected-warning {{expression result unused}}
   (void)foo(1,2);      // no warning.
   





More information about the cfe-commits mailing list