- Use -verify and added expected warnings for EXTWARN change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54342
91177308-0d34-0410-b5e6-
96231b3b80d8
-// RUN: clang -emit-llvm %s 2>&1 | not grep warning
+// RUN: clang -verify -emit-llvm -o %t %s
#include <stdint.h>
// 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;