summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/const-init.c
blob: ccc34cf136843f6435f6b1825830b3c934b7d8d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang -emit-llvm %s 2>&1 | not grep warning

#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;

int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f;
OpenPOWER on IntegriCloud