[cfe-commits] r54342 - /cfe/trunk/test/CodeGen/const-init.c
Daniel Dunbar
daniel at zuster.org
Mon Aug 4 23:30:41 PDT 2008
Author: ddunbar
Date: Tue Aug 5 01:30:41 2008
New Revision: 54342
URL: http://llvm.org/viewvc/llvm-project?rev=54342&view=rev
Log:
Fix const-init test case
- Use -verify and added expected warnings for EXTWARN change.
Modified:
cfe/trunk/test/CodeGen/const-init.c
Modified: cfe/trunk/test/CodeGen/const-init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/const-init.c?rev=54342&r1=54341&r2=54342&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/const-init.c (original)
+++ cfe/trunk/test/CodeGen/const-init.c Tue Aug 5 01:30:41 2008
@@ -1,4 +1,4 @@
-// RUN: clang -emit-llvm %s 2>&1 | not grep warning
+// RUN: clang -verify -emit-llvm -o %t %s
#include <stdint.h>
@@ -7,9 +7,9 @@
// Double-implicit-conversions of array/functions (not legal C, but
// clang accepts it for gcc compat).
-intptr_t b = a;
+intptr_t b = a; // expected-warning {{incompatible pointer to integer conversion}}
int c();
void *d = c;
-intptr_t e = c;
+intptr_t e = c; // expected-warning {{incompatible pointer to integer conversion}}
int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f;
More information about the cfe-commits
mailing list