2008-05-29 19:22:45 +08:00
|
|
|
// RUN: clang -emit-llvm %s 2>&1 | not grep warning
|
2008-02-22 02:07:36 +08:00
|
|
|
|
|
|
|
#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;
|
|
|
|
int c();
|
|
|
|
void *d = c;
|
|
|
|
intptr_t e = c;
|
2008-05-29 19:22:45 +08:00
|
|
|
|
|
|
|
int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f;
|