blob: ccc34cf136843f6435f6b1825830b3c934b7d8d4 [file] [log] [blame]
Eli Friedmanbc5ed6e2008-05-29 11:22:45 +00001// RUN: clang -emit-llvm %s 2>&1 | not grep warning
Eli Friedmancca196b2008-02-21 18:07:36 +00002
3#include <stdint.h>
4
5// Brace-enclosed string array initializers
6char a[] = { "asdf" };
7
8// Double-implicit-conversions of array/functions (not legal C, but
9// clang accepts it for gcc compat).
10intptr_t b = a;
11int c();
12void *d = c;
13intptr_t e = c;
Eli Friedmanbc5ed6e2008-05-29 11:22:45 +000014
15int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f;