Some const initializer tests for stuff I just committed.

llvm-svn: 47442
This commit is contained in:
Eli Friedman 2008-02-21 18:07:36 +00:00
parent 7f0639b039
commit c62dd9d345
1 changed files with 13 additions and 0 deletions

View File

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