blob: 0efab6f903676a2bf3bb95f2bb868d8e8a5b1ae6 [file] [log] [blame]
// RUN: clang -verify -emit-llvm -o %t %s
#include <stdint.h>
// Brace-enclosed string array initializers
char a[] = { "asdf" };
// Double-implicit-conversions of array/functions (not legal C, but
// clang accepts it for gcc compat).
intptr_t b = a; // expected-warning {{incompatible pointer to integer conversion}}
int c();
void *d = c;
intptr_t e = c; // expected-warning {{incompatible pointer to integer conversion}}
int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f;