Some const initializer tests for stuff I just committed.
llvm-svn: 47442
This commit is contained in:
parent
7f0639b039
commit
c62dd9d345
|
@ -0,0 +1,13 @@
|
|||
// RUN: clang -emit-llvm %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;
|
||||
int c();
|
||||
void *d = c;
|
||||
intptr_t e = c;
|
Loading…
Reference in New Issue